diff --git a/package.json b/package.json index 47b3f87..b1509fb 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "start": "webpack serve", "bump": "npm version prerelease --preid=beta --no-git-tag-version && npm run bump:git", "bump:git": "git add --all && git commit -m \"New version $npm_package_version\" && git tag $npm_package_version && git push --tags origin HEAD:main", - "sync-icons": "node -r dotenv/config -r ts-node/register ./tools/sync-icons.ts" + "sync-icons": "node -r dotenv/config -r ts-node/register ./tools/scripts/sync-icons.ts" }, "devDependencies": { "@mappable-world/mappable-cli": "^0.0.28", diff --git a/tools/figma/get-image-links.ts b/tools/figma/get-image-links.ts index 1283138..3cc2fdd 100644 --- a/tools/figma/get-image-links.ts +++ b/tools/figma/get-image-links.ts @@ -1,7 +1,7 @@ import {Api as FigmaApi} from 'figma-api'; import {GetImageResult} from 'figma-api/lib/api-types'; +import {makeChunks} from '../utils/make-chunks'; import {ExportFormat, IconDescription} from './get-icon-descriptions'; -import {makeChunks} from '../make-chunks'; const IMAGE_SCALE = 1; const ICONS_PER_CHUNK = 100; diff --git a/tools/sync-icons.ts b/tools/scripts/sync-icons.ts similarity index 85% rename from tools/sync-icons.ts rename to tools/scripts/sync-icons.ts index 8d95dfe..ef9174b 100644 --- a/tools/sync-icons.ts +++ b/tools/scripts/sync-icons.ts @@ -1,4 +1,4 @@ -import {fetchFigmaIcons} from './figma/fetch-icons'; +import {fetchFigmaIcons} from '../figma/fetch-icons'; async function main() { try { diff --git a/tools/make-chunks.ts b/tools/utils/make-chunks.ts similarity index 100% rename from tools/make-chunks.ts rename to tools/utils/make-chunks.ts