From b83bcf4d8a14daac398b8cb9745377046a4311ee Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+ful1e5@users.noreply.github.com> Date: Tue, 1 Sep 2020 17:16:11 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=97=20return=20Schema=20.svg=20path=20?= =?UTF-8?q?in=20Config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/schema.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/core/src/schema.ts b/packages/core/src/schema.ts index 63100480..a6fe91c5 100644 --- a/packages/core/src/schema.ts +++ b/packages/core/src/schema.ts @@ -53,12 +53,14 @@ const generateConfigs = ({ .replace(new RegExp(outlineKeyColor, "g"), outline); // Save Schema + cursor = path.basename(cursor); writeSchemaData({ path: schemaSvgsPath, - fileName: path.basename(cursor), + fileName: cursor, content }); - return schemaSvgsPath; + + return path.resolve(schemaSvgsPath, cursor); }); const aCursors = animatedCursors.map((cursor: string) => { @@ -86,13 +88,14 @@ const generateConfigs = ({ } // Save Schema + cursor = path.basename(cursor); writeSchemaData({ path: schemaSvgsPath, - fileName: path.basename(cursor), + fileName: cursor, content }); - return schemaSvgsPath; + return path.resolve(schemaSvgsPath, cursor); }); // Creating Dir for store bitmaps