From c9bc61b5a84b20bf1b00dca16324da639f2b7476 Mon Sep 17 00:00:00 2001 From: KaizIqbal <24286590+KaizIqbal@users.noreply.github.com> Date: Mon, 27 Jul 2020 10:24:02 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=82=20"bitmaps"=20Directory=20ensure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/config.ts b/src/config.ts index bea41f5..173b7e7 100644 --- a/src/config.ts +++ b/src/config.ts @@ -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 };