diff --git a/packages/shared/src/config.ts b/packages/shared/src/config.ts new file mode 100644 index 00000000..73d9c8a4 --- /dev/null +++ b/packages/shared/src/config.ts @@ -0,0 +1,17 @@ +import path from "path"; +import fs from "fs"; +import { staticCursors, animatedCursors, animatedClip } from "./cursors.json"; + +// Source Directory +const svgsDir = path.resolve(__dirname, "svg"); + +// Resolve Paths for svg +const staticSvgs = staticCursors.map((svg: string) => + path.resolve(svgsDir, svg) +); + +// Out Directory +const bitmapsDir = path.resolve(process.cwd(), "bitmaps"); +if (!fs.existsSync(bitmapsDir)) fs.mkdirSync(bitmapsDir); + +export { staticSvgs, animatedCursors, svgsDir, bitmapsDir, animatedClip }; \ No newline at end of file