mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-20 02:05:12 -04:00
📁 use schemePath
This commit is contained in:
parent
435314b4a6
commit
062d4ac171
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ import path from "path";
|
||||||
import rimraf from "rimraf";
|
import rimraf from "rimraf";
|
||||||
|
|
||||||
import { staticCursors, animatedCursors, animatedClip } from "../cursors.json";
|
import { staticCursors, animatedCursors, animatedClip } from "../cursors.json";
|
||||||
|
import { schemesPath } from "../config";
|
||||||
import { ColorSchema, Config } from "../types";
|
import { ColorSchema, Config } from "../types";
|
||||||
|
|
||||||
const generateConfigs = (
|
const generateConfigs = (
|
||||||
|
@ -16,7 +17,7 @@ const generateConfigs = (
|
||||||
const { base, outline } = colorSchemes[schema];
|
const { base, outline } = colorSchemes[schema];
|
||||||
const schemaName = `${dirPrefix} ${schema}`;
|
const schemaName = `${dirPrefix} ${schema}`;
|
||||||
|
|
||||||
const schemaSvgsPath = path.resolve("./src/svg", schemaName);
|
const schemaSvgsPath = path.resolve(schemesPath, schemaName);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (fs.existsSync(schemaSvgsPath)) {
|
if (fs.existsSync(schemaSvgsPath)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue