From 50453a9977981963edf4c1dc0edebadebb368455 Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+ful1e5@users.noreply.github.com> Date: Wed, 19 Aug 2020 12:24:25 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=97=20bitmapsDir=20import=20from=20col?= =?UTF-8?q?or.ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/round/src/helpers/schema.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/round/src/helpers/schema.ts b/packages/round/src/helpers/schema.ts index ebcff757..974a9d78 100644 --- a/packages/round/src/helpers/schema.ts +++ b/packages/round/src/helpers/schema.ts @@ -2,18 +2,14 @@ import fs from "fs"; import path from "path"; import { staticCursors, animatedCursors, animatedClip } from "../cursors.json"; -import { schemesPath, bitmapsPath } from "../color"; +import { schemesPath, bitmapsPath, rawSvgsDir } from "../color"; import { ColorSchema, Configs } from "../types"; // --------------------------------------- Generate Configs 🛠 -const generateConfigs = ( - colorSchemes: ColorSchema, - dirPrefix: string, - rawSvgsDir: string -) => { +const generateConfigs = (colorSchemes: ColorSchema, dirPrefix: string) => { if (!fs.existsSync(rawSvgsDir)) { - console.error("🚨🚨 Raw files not Found 🚨🚨"); + console.error(`🚨 .svg files not found in ${rawSvgsDir}`); process.exit(1); }