mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-16 21:57:41 +01:00
fix(packages/icons): update package, remove UMD export
This commit is contained in:
@@ -67,11 +67,11 @@
|
|||||||
"@rollup/plugin-replace": "^6.0.2",
|
"@rollup/plugin-replace": "^6.0.2",
|
||||||
"@testing-library/jest-dom": "^6.6.3",
|
"@testing-library/jest-dom": "^6.6.3",
|
||||||
"jest-serializer-html": "^7.1.0",
|
"jest-serializer-html": "^7.1.0",
|
||||||
"rollup": "^4.40.0",
|
"rollup": "^4.53.3",
|
||||||
"rollup-plugin-dts": "^6.2.1",
|
"rollup-plugin-dts": "^6.2.3",
|
||||||
"rollup-plugin-preserve-directives": "^0.4.0",
|
"rollup-plugin-preserve-directives": "^0.4.0",
|
||||||
"typescript": "^4.9.5",
|
"typescript": "^5.8.3",
|
||||||
"vite": "5.4.14",
|
"vite": "^7.2.4",
|
||||||
"vitest": "^1.6.1"
|
"vitest": "^4.0.12"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,15 +6,6 @@ const packageName = '@lucide/icons';
|
|||||||
const outputFileName = 'lucide-icons';
|
const outputFileName = 'lucide-icons';
|
||||||
const inputs = [`src/lucide-icons.ts`];
|
const inputs = [`src/lucide-icons.ts`];
|
||||||
const bundles = [
|
const bundles = [
|
||||||
{
|
|
||||||
format: 'umd',
|
|
||||||
inputs,
|
|
||||||
minify: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
format: 'umd',
|
|
||||||
inputs,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
inputs,
|
inputs,
|
||||||
@@ -26,34 +17,6 @@ const bundles = [
|
|||||||
preserveModules: true,
|
preserveModules: true,
|
||||||
extension: 'mjs',
|
extension: 'mjs',
|
||||||
},
|
},
|
||||||
/*
|
|
||||||
{
|
|
||||||
format: 'esm',
|
|
||||||
inputs: ['src/dynamic.ts'],
|
|
||||||
outputFileName: 'dynamic',
|
|
||||||
external: [/src/],
|
|
||||||
paths: (id) => {
|
|
||||||
if (id.match(/src/)) {
|
|
||||||
const [, modulePath] = id.match(/src\/(.*)\.ts/);
|
|
||||||
|
|
||||||
return `${modulePath}.js`;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
format: 'esm',
|
|
||||||
inputs: ['src/build.ts'],
|
|
||||||
outputFileName: 'build.mjs',
|
|
||||||
external: [/src/],
|
|
||||||
paths: (id) => {
|
|
||||||
if (id.match(/src/)) {
|
|
||||||
const [, modulePath] = id.match(/src\/(.*)\.ts/);
|
|
||||||
|
|
||||||
return `${modulePath}.js`;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
*/
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const configs = bundles
|
const configs = bundles
|
||||||
@@ -113,8 +76,6 @@ export default [
|
|||||||
file: `dist/esm/${filename}.d.ts`, format: 'esm'
|
file: `dist/esm/${filename}.d.ts`, format: 'esm'
|
||||||
}, {
|
}, {
|
||||||
file: `dist/cjs/${filename}.d.cts`, format: 'cjs'
|
file: `dist/cjs/${filename}.d.cts`, format: 'cjs'
|
||||||
}, {
|
|
||||||
file: `dist/umd/${filename}.d.ts`, format: 'umd'
|
|
||||||
}],
|
}],
|
||||||
plugins: [dts()],
|
plugins: [dts()],
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* eslint-disable import/no-extraneous-dependencies */
|
/* eslint-disable import/no-extraneous-dependencies */
|
||||||
import base64SVG from '@lucide/build-icons/utils/base64SVG.mjs';
|
import base64SVG from '@lucide/build-icons/utils/base64SVG';
|
||||||
|
|
||||||
export default async ({
|
export default async ({
|
||||||
componentName,
|
componentName,
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ exports[`buildLucideIconElement > should match the snapshot 1`] = `
|
|||||||
key="5wwlr5"
|
key="5wwlr5"
|
||||||
>
|
>
|
||||||
</path>
|
</path>
|
||||||
<path d="M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"
|
<path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"
|
||||||
key="1d0kgt"
|
key="r6nss1"
|
||||||
>
|
>
|
||||||
</path>
|
</path>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
@@ -16,11 +16,11 @@ exports[`buildLucideSvg > should match the snapshot 1`] = `
|
|||||||
key="5wwlr5"
|
key="5wwlr5"
|
||||||
>
|
>
|
||||||
</path>
|
</path>
|
||||||
<path d="M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"
|
<path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"
|
||||||
key="1d0kgt"
|
key="r6nss1"
|
||||||
>
|
>
|
||||||
</path>
|
</path>
|
||||||
</svg>
|
</svg>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`buildLucideSvgDataUri > should match the snapshot 1`] = `"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWhvdXNlIj48cGF0aCBkPSJNMTUgMjF2LThhMSAxIDAgMCAwLTEtMWgtNGExIDEgMCAwIDAtMSAxdjgiIGtleT0iNXd3bHI1Ij48L3BhdGg+PHBhdGggZD0iTTMgMTBhMiAyIDAgMCAxIC43MDktMS41MjhsNy01Ljk5OWEyIDIgMCAwIDEgMi41ODIgMGw3IDUuOTk5QTIgMiAwIDAgMSAyMSAxMHY5YTIgMiAwIDAgMS0yIDJINWEyIDIgMCAwIDEtMi0yeiIga2V5PSIxZDBrZ3QiPjwvcGF0aD48L3N2Zz4="`;
|
exports[`buildLucideSvgDataUri > should match the snapshot 1`] = `"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWhvdXNlIj48cGF0aCBkPSJNMTUgMjF2LThhMSAxIDAgMCAwLTEtMWgtNGExIDEgMCAwIDAtMSAxdjgiIGtleT0iNXd3bHI1Ij48L3BhdGg+PHBhdGggZD0iTTMgMTBhMiAyIDAgMCAxIC43MDktMS41MjhsNy02YTIgMiAwIDAgMSAyLjU4MiAwbDcgNkEyIDIgMCAwIDEgMjEgMTB2OWEyIDIgMCAwIDEtMiAySDVhMiAyIDAgMCAxLTItMnoiIGtleT0icjZuc3MxIj48L3BhdGg+PC9zdmc+"`;
|
||||||
|
|||||||
68
pnpm-lock.yaml
generated
68
pnpm-lock.yaml
generated
@@ -385,6 +385,45 @@ importers:
|
|||||||
version: 0.11.8
|
version: 0.11.8
|
||||||
publishDirectory: dist
|
publishDirectory: dist
|
||||||
|
|
||||||
|
packages/lucide-icons:
|
||||||
|
devDependencies:
|
||||||
|
'@lucide/build-icons':
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../../tools/build-icons
|
||||||
|
'@lucide/helpers':
|
||||||
|
specifier: ^1.0.0
|
||||||
|
version: 1.0.0
|
||||||
|
'@lucide/rollup-plugins':
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../../tools/rollup-plugins
|
||||||
|
'@rollup/plugin-replace':
|
||||||
|
specifier: ^6.0.2
|
||||||
|
version: 6.0.3(rollup@4.53.3)
|
||||||
|
'@testing-library/jest-dom':
|
||||||
|
specifier: ^6.6.3
|
||||||
|
version: 6.9.1
|
||||||
|
jest-serializer-html:
|
||||||
|
specifier: ^7.1.0
|
||||||
|
version: 7.1.0
|
||||||
|
rollup:
|
||||||
|
specifier: ^4.53.3
|
||||||
|
version: 4.53.3
|
||||||
|
rollup-plugin-dts:
|
||||||
|
specifier: ^6.2.3
|
||||||
|
version: 6.2.3(rollup@4.53.3)(typescript@5.9.3)
|
||||||
|
rollup-plugin-preserve-directives:
|
||||||
|
specifier: ^0.4.0
|
||||||
|
version: 0.4.0(rollup@4.53.3)
|
||||||
|
typescript:
|
||||||
|
specifier: ^5.8.3
|
||||||
|
version: 5.9.3
|
||||||
|
vite:
|
||||||
|
specifier: ^7.2.4
|
||||||
|
version: 7.2.4(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0)
|
||||||
|
vitest:
|
||||||
|
specifier: ^4.0.12
|
||||||
|
version: 4.0.12(@types/debug@4.1.12)(@types/node@24.10.1)(jiti@2.6.1)(jsdom@20.0.3)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0)
|
||||||
|
|
||||||
packages/lucide-preact:
|
packages/lucide-preact:
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@lucide/build-icons':
|
'@lucide/build-icons':
|
||||||
@@ -3850,6 +3889,9 @@ packages:
|
|||||||
'@lezer/lr@1.4.3':
|
'@lezer/lr@1.4.3':
|
||||||
resolution: {integrity: sha512-yenN5SqAxAPv/qMnpWW0AT7l+SxVrgG+u0tNsRQWqbrz66HIl8DnEbBObvy21J5K7+I1v7gsAnlE2VQ5yYVSeA==}
|
resolution: {integrity: sha512-yenN5SqAxAPv/qMnpWW0AT7l+SxVrgG+u0tNsRQWqbrz66HIl8DnEbBObvy21J5K7+I1v7gsAnlE2VQ5yYVSeA==}
|
||||||
|
|
||||||
|
'@lucide/helpers@1.0.0':
|
||||||
|
resolution: {integrity: sha512-9dfxrgLLaoCfr3R/eh6wwlUcY+ZPdEv6SDwFMUhYoO6HhGL8yN8hb5ZwI/OfzbK9mdJpa+jYfwP4nF4ZlZwZLA==}
|
||||||
|
|
||||||
'@mapbox/node-pre-gyp@1.0.11':
|
'@mapbox/node-pre-gyp@1.0.11':
|
||||||
resolution: {integrity: sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==}
|
resolution: {integrity: sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
@@ -15834,7 +15876,7 @@ snapshots:
|
|||||||
'@babel/parser': 7.28.5
|
'@babel/parser': 7.28.5
|
||||||
'@babel/template': 7.27.2
|
'@babel/template': 7.27.2
|
||||||
'@babel/types': 7.28.5
|
'@babel/types': 7.28.5
|
||||||
debug: 4.3.5
|
debug: 4.4.3
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
@@ -17066,6 +17108,8 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@lezer/common': 1.3.0
|
'@lezer/common': 1.3.0
|
||||||
|
|
||||||
|
'@lucide/helpers@1.0.0': {}
|
||||||
|
|
||||||
'@mapbox/node-pre-gyp@1.0.11(encoding@0.1.13)':
|
'@mapbox/node-pre-gyp@1.0.11(encoding@0.1.13)':
|
||||||
dependencies:
|
dependencies:
|
||||||
detect-libc: 2.1.2
|
detect-libc: 2.1.2
|
||||||
@@ -17880,7 +17924,7 @@ snapshots:
|
|||||||
|
|
||||||
'@rollup/pluginutils@5.1.0(rollup@4.53.3)':
|
'@rollup/pluginutils@5.1.0(rollup@4.53.3)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/estree': 1.0.6
|
'@types/estree': 1.0.8
|
||||||
estree-walker: 2.0.2
|
estree-walker: 2.0.2
|
||||||
picomatch: 2.3.1
|
picomatch: 2.3.1
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
@@ -18175,7 +18219,7 @@ snapshots:
|
|||||||
'@sveltejs/vite-plugin-svelte-inspector@4.0.1(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0)))(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0))':
|
'@sveltejs/vite-plugin-svelte-inspector@4.0.1(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0)))(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0))':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@sveltejs/vite-plugin-svelte': 5.1.1(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0))
|
'@sveltejs/vite-plugin-svelte': 5.1.1(svelte@5.43.14)(vite@6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0))
|
||||||
debug: 4.4.1
|
debug: 4.4.3
|
||||||
svelte: 5.43.14
|
svelte: 5.43.14
|
||||||
vite: 6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0)
|
vite: 6.4.1(@types/node@24.10.1)(jiti@2.6.1)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.44.1)(yaml@2.8.0)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
@@ -18486,11 +18530,11 @@ snapshots:
|
|||||||
'@types/eslint-scope@3.7.7':
|
'@types/eslint-scope@3.7.7':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/eslint': 9.6.0
|
'@types/eslint': 9.6.0
|
||||||
'@types/estree': 0.0.51
|
'@types/estree': 1.0.8
|
||||||
|
|
||||||
'@types/eslint@9.6.0':
|
'@types/eslint@9.6.0':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/estree': 0.0.51
|
'@types/estree': 1.0.8
|
||||||
'@types/json-schema': 7.0.15
|
'@types/json-schema': 7.0.15
|
||||||
|
|
||||||
'@types/estree@0.0.39': {}
|
'@types/estree@0.0.39': {}
|
||||||
@@ -19311,7 +19355,7 @@ snapshots:
|
|||||||
|
|
||||||
acorn-walk@8.3.3:
|
acorn-walk@8.3.3:
|
||||||
dependencies:
|
dependencies:
|
||||||
acorn: 8.14.1
|
acorn: 8.15.0
|
||||||
|
|
||||||
acorn@8.12.1: {}
|
acorn@8.12.1: {}
|
||||||
|
|
||||||
@@ -20365,7 +20409,7 @@ snapshots:
|
|||||||
code-red@1.0.4:
|
code-red@1.0.4:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@jridgewell/sourcemap-codec': 1.5.5
|
'@jridgewell/sourcemap-codec': 1.5.5
|
||||||
'@types/estree': 1.0.6
|
'@types/estree': 1.0.8
|
||||||
acorn: 8.14.0
|
acorn: 8.14.0
|
||||||
estree-walker: 3.0.3
|
estree-walker: 3.0.3
|
||||||
periscopic: 3.1.0
|
periscopic: 3.1.0
|
||||||
@@ -22628,7 +22672,7 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@tootallnate/once': 1.1.2
|
'@tootallnate/once': 1.1.2
|
||||||
agent-base: 6.0.2
|
agent-base: 6.0.2
|
||||||
debug: 4.3.3
|
debug: 4.4.3
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
@@ -22997,7 +23041,7 @@ snapshots:
|
|||||||
|
|
||||||
is-reference@3.0.3:
|
is-reference@3.0.3:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/estree': 1.0.6
|
'@types/estree': 1.0.8
|
||||||
|
|
||||||
is-regex@1.2.1:
|
is-regex@1.2.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -25392,7 +25436,7 @@ snapshots:
|
|||||||
|
|
||||||
periscopic@3.1.0:
|
periscopic@3.1.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/estree': 1.0.6
|
'@types/estree': 1.0.8
|
||||||
estree-walker: 3.0.3
|
estree-walker: 3.0.3
|
||||||
is-reference: 3.0.3
|
is-reference: 3.0.3
|
||||||
|
|
||||||
@@ -26991,7 +27035,7 @@ snapshots:
|
|||||||
socks-proxy-agent@6.2.1:
|
socks-proxy-agent@6.2.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
agent-base: 6.0.2
|
agent-base: 6.0.2
|
||||||
debug: 4.3.3
|
debug: 4.4.3
|
||||||
socks: 2.8.3
|
socks: 2.8.3
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
@@ -26999,7 +27043,7 @@ snapshots:
|
|||||||
socks-proxy-agent@7.0.0:
|
socks-proxy-agent@7.0.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
agent-base: 6.0.2
|
agent-base: 6.0.2
|
||||||
debug: 4.3.3
|
debug: 4.4.3
|
||||||
socks: 2.8.3
|
socks: 2.8.3
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|||||||
Reference in New Issue
Block a user