mirror of
https://github.com/ful1e5/apple_cursor.git
synced 2025-05-15 07:34:44 -04:00
🗂 "bitmaps" Directory ensure
This commit is contained in:
parent
1a05881f4a
commit
c9bc61b5a8
1 changed files with 2 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
import path from "path";
|
||||
import fs from "fs";
|
||||
import { staticCursors } from "./cursors.json";
|
||||
|
||||
// Source Directory
|
||||
|
@ -11,5 +12,6 @@ const staticSvgs = staticCursors.map((svg: string) =>
|
|||
|
||||
// Out Directory
|
||||
const bitmapsDir = path.resolve(process.cwd(), "bitmaps");
|
||||
if (!fs.existsSync(bitmapsDir)) fs.mkdirSync(bitmapsDir);
|
||||
|
||||
export { staticSvgs, bitmapsDir };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue