From 18716b180dfdf52ee3cebe0a755b74f824d01c70 Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+ful1e5@users.noreply.github.com> Date: Fri, 28 Aug 2020 11:56:33 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Only=20Config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/config.ts b/src/config.ts index d1bc03e..18ceb62 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,12 +1,10 @@ -import path from "path"; -import fs from "fs"; +import { resolve } from "path"; import { staticCursors, animatedCursors, animatedClip } from "./cursors.json"; // Source Directory -const svgsDir = path.resolve(__dirname, "svg"); +const svgsDir = resolve(__dirname, "svg"); // Out Directory -const bitmapsDir = path.resolve(process.cwd(), "bitmaps"); -if (!fs.existsSync(bitmapsDir)) fs.mkdirSync(bitmapsDir); +const bitmapsDir = resolve(__dirname, "bitmaps"); export { staticCursors, animatedCursors, svgsDir, bitmapsDir, animatedClip };