From 062d4ac171d11b1bbf9b5f448c7e07824cb1e6c4 Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+KaizIqbal@users.noreply.github.com> Date: Sun, 16 Aug 2020 16:21:31 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=81=20use=20schemePath?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/round/src/helpers/schema.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/round/src/helpers/schema.ts b/packages/round/src/helpers/schema.ts index 71599187..5d52eed5 100644 --- a/packages/round/src/helpers/schema.ts +++ b/packages/round/src/helpers/schema.ts @@ -3,6 +3,7 @@ import path from "path"; import rimraf from "rimraf"; import { staticCursors, animatedCursors, animatedClip } from "../cursors.json"; +import { schemesPath } from "../config"; import { ColorSchema, Config } from "../types"; const generateConfigs = ( @@ -16,7 +17,7 @@ const generateConfigs = ( const { base, outline } = colorSchemes[schema]; const schemaName = `${dirPrefix} ${schema}`; - const schemaSvgsPath = path.resolve("./src/svg", schemaName); + const schemaSvgsPath = path.resolve(schemesPath, schemaName); try { if (fs.existsSync(schemaSvgsPath)) {