🔗 Bitmaps path set to <root>

This commit is contained in:
ful1e5 2020-08-18 17:48:00 +05:30
parent f51561a3c0
commit 288276f42e
3 changed files with 8 additions and 4 deletions

View file

@ -2,7 +2,7 @@ import fs from "fs";
import path from "path";
import { staticCursors, animatedCursors, animatedClip } from "../cursors.json";
import { schemesPath } from "../color";
import { schemesPath, bitmapsPath } from "../color";
import { ColorSchema, Configs } from "../types";
// --------------------------------------- Generate Configs 🛠
@ -65,7 +65,7 @@ const generateConfigs = (
}
// Creating Dir for store bitmaps
const bitmapsDir = path.resolve(process.cwd(), "bitmaps", schemaName);
const bitmapsDir = path.resolve(bitmapsPath, schemaName);
fs.mkdirSync(bitmapsDir, { recursive: true });
// push config to Object