diff --git a/src/config.ts b/src/config.ts index c4dbd76..ca40d5f 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,18 +1,13 @@ import path from "path"; -import fs from "fs"; +import { cursors } from "./cursors.json"; // Source Directory const svgsDir = path.resolve(__dirname, "svg"); -// .svg -let svgs = fs - .readdirSync(svgsDir) - .filter((file) => path.extname(file) === ".svg"); -svgs = svgs.map((svg: string) => path.resolve(svgsDir, svg)); - -const animatedCursor = ["watch", "left_ptr_watch"]; +// Resolve Paths for svg +const svgs = cursors.map((svg: string) => path.resolve(svgsDir, svg)); // Out Directory const bitmapsDir = path.resolve(process.cwd(), "bitmaps"); -export { svgs, animatedCursor, bitmapsDir }; +export { svgs, bitmapsDir };