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");