🔧 Only Config

This commit is contained in:
ful1e5 2020-08-28 11:56:33 +05:30
parent 85d0083f40
commit 18716b180d

View file

@ -1,12 +1,10 @@
import path from "path"; import { resolve } from "path";
import fs from "fs";
import { staticCursors, animatedCursors, animatedClip } from "./cursors.json"; import { staticCursors, animatedCursors, animatedClip } from "./cursors.json";
// Source Directory // Source Directory
const svgsDir = path.resolve(__dirname, "svg"); const svgsDir = resolve(__dirname, "svg");
// Out Directory // Out Directory
const bitmapsDir = path.resolve(process.cwd(), "bitmaps"); const bitmapsDir = resolve(__dirname, "bitmaps");
if (!fs.existsSync(bitmapsDir)) fs.mkdirSync(bitmapsDir);
export { staticCursors, animatedCursors, svgsDir, bitmapsDir, animatedClip }; export { staticCursors, animatedCursors, svgsDir, bitmapsDir, animatedClip };