From ac296df1d783745717e64770930688087d2fd631 Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+ful1e5@users.noreply.github.com> Date: Sun, 27 Sep 2020 12:45:17 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20SvgDirectoryParser=20=20added?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/Schema/{CursorSvgParser.ts => SvgDirectoryParser.ts} | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) rename packages/core/src/Schema/{CursorSvgParser.ts => SvgDirectoryParser.ts} (90%) diff --git a/packages/core/src/Schema/CursorSvgParser.ts b/packages/core/src/Schema/SvgDirectoryParser.ts similarity index 90% rename from packages/core/src/Schema/CursorSvgParser.ts rename to packages/core/src/Schema/SvgDirectoryParser.ts index c1b36746..5fd19d37 100644 --- a/packages/core/src/Schema/CursorSvgParser.ts +++ b/packages/core/src/Schema/SvgDirectoryParser.ts @@ -1,7 +1,7 @@ import fs from "fs"; import path from "path"; -export class CursorSvgParser { +export default class SvgDirectoryParser { constructor(private svgDir: string) { if (!fs.existsSync(this.svgDir)) { throw new Error(`🚨 .svg files not found in ${this.svgDir}`); @@ -9,8 +9,7 @@ export class CursorSvgParser { } /** - * Return all static cursors absolute paths. - * Looking inside /static directory. + * Return all static cursors absolute paths from `svgDir/static` directory. */ public getStaticCursors(): string[] { const cursorDir = path.resolve(this.svgDir, "static");