diff --git a/src/config.ts b/src/config.ts index fd1bc03..1ebdd8e 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,4 +1,11 @@ import path from "path"; +import fs from "fs"; -// store config to /bitmaps/ -export const bitmapsPath = path.resolve(process.cwd(), "bitmaps"); +// Source Directory +const svgsDir = path.resolve(__dirname, "svg"); +const svgs = fs.readdirSync(svgsDir); + +// Out Directory +const bitmapsDir = path.resolve(process.cwd(), "bitmaps"); + +export { svgs, bitmapsDir };