diff --git a/.github/workflows/lucide-font.yml b/.github/workflows/lucide-font.yml index 19430dea3..9f76aece8 100644 --- a/.github/workflows/lucide-font.yml +++ b/.github/workflows/lucide-font.yml @@ -20,9 +20,6 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Outline svg Icons - run: pnpm build:outline-icons - - name: Create font in ./lucide-font run: pnpm build:font diff --git a/docs/api/tags/index.get.ts b/docs/api/tags/index.get.ts index cfd2151bc..5192496d0 100644 --- a/docs/api/tags/index.get.ts +++ b/docs/api/tags/index.get.ts @@ -1,5 +1,5 @@ -import iconMetaData from '~/.vitepress/data/iconMetaData'; import { eventHandler, setResponseHeader } from 'h3'; +import iconMetaData from '~/.vitepress/data/iconMetaData'; export default eventHandler((event) => { setResponseHeader(event, 'Cache-Control', 'public, max-age=86400'); diff --git a/docs/package.json b/docs/package.json index ff98550cd..749e6ef77 100644 --- a/docs/package.json +++ b/docs/package.json @@ -64,4 +64,4 @@ "svgson": "^5.3.1", "vue": "^3.5.24" } -} \ No newline at end of file +} diff --git a/docs/scripts/writeVercelOutput.mjs b/docs/scripts/writeVercelOutput.mjs index 3a55e2c4d..a8880181d 100644 --- a/docs/scripts/writeVercelOutput.mjs +++ b/docs/scripts/writeVercelOutput.mjs @@ -34,6 +34,12 @@ vercelRouteConfig.routes = [...iconAliasesRedirectRoutes, ...vercelRouteConfig.r const allCatchRoute = '/(.*)'; const fallBackIndex = vercelRouteConfig.routes.findIndex((route) => route.src === allCatchRoute); +if (fallBackIndex === -1) { + throw new Error( + `Could not find the expected catch-all route with src "${allCatchRoute}" in the existing Vercel config. Please make sure that the existing config has a catch-all route and that its src is "${allCatchRoute}".`, + ); +} + vercelRouteConfig.routes[fallBackIndex].src = '/api/(.*)'; vercelRouteConfig.routes.push({ src: allCatchRoute, diff --git a/icons/bitcoin.json b/icons/bitcoin.json index 6c94334ea..aa065daeb 100644 --- a/icons/bitcoin.json +++ b/icons/bitcoin.json @@ -5,6 +5,15 @@ "mittalyashu" ], "tags": [ + "cryptocurrency", + "digital", + "blockchain", + "finance", + "coin", + "market", + "decentralized", + "investment", + "crypto", "currency", "money", "payment" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 502a45764..43473cde6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8507,11 +8507,11 @@ packages: glob@7.2.0: resolution: {integrity: sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==} - deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me + deprecated: Glob versions prior to v9 are no longer supported glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} - deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me + deprecated: Glob versions prior to v9 are no longer supported glob@8.1.0: resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==} @@ -14707,14 +14707,14 @@ snapshots: '@babel/helper-simple-access@7.24.7': dependencies: '@babel/traverse': 7.28.5 - '@babel/types': 7.28.6 + '@babel/types': 7.29.0 transitivePeerDependencies: - supports-color '@babel/helper-skip-transparent-expression-wrappers@7.24.7': dependencies: '@babel/traverse': 7.28.5 - '@babel/types': 7.28.6 + '@babel/types': 7.29.0 transitivePeerDependencies: - supports-color @@ -14739,7 +14739,7 @@ snapshots: dependencies: '@babel/template': 7.28.6 '@babel/traverse': 7.28.5 - '@babel/types': 7.28.6 + '@babel/types': 7.29.0 transitivePeerDependencies: - supports-color diff --git a/tools/build-font/src/allocateCodepoints.ts b/tools/build-font/src/allocateCodepoints.ts index e029551e9..3f2480a51 100644 --- a/tools/build-font/src/allocateCodepoints.ts +++ b/tools/build-font/src/allocateCodepoints.ts @@ -1,5 +1,4 @@ import { type IconAliases } from '@lucide/helpers'; -import path from 'path'; import { promises as fs } from 'fs'; import { cwd } from 'process'; import { put } from '@vercel/blob'; @@ -50,11 +49,10 @@ export async function allocateCodePoints({ if (saveCodePoints) { const content = JSON.stringify(baseCodePoints, null, 2); - await fs.writeFile(path.join(cwd(), 'codepoints.json'), content, 'utf-8'); await put(VERCEL_BLOB_CODEPOINTS_PATH, content, { access: 'public', allowOverwrite: true }); - console.log('Code points saved to codepoints.json and uploaded to Vercel Blob Storage.'); + console.log('Code points uploaded to Vercel Blob Storage.'); } return baseCodePoints; diff --git a/tools/build-font/src/main.ts b/tools/build-font/src/main.ts index f3d5fa613..ea0dfe2de 100644 --- a/tools/build-font/src/main.ts +++ b/tools/build-font/src/main.ts @@ -52,7 +52,5 @@ await buildFont({ startUnicode, }); -await fs.copyFile( - path.join(process.cwd(), 'codepoints.json'), - path.join(targetDir, 'codepoints.json'), -); +const codepointsContent = JSON.stringify(codePoints, null, 2); +await fs.writeFile(path.join(targetDir, 'codepoints.json'), codepointsContent, 'utf-8');