chore(core-icons): migrate build to tsdown

vite8^2
xingyu4j 2026-03-15 19:40:17 +08:00
parent a1ca296fc0
commit 675d8b0179
2 changed files with 5 additions and 2 deletions

View File

@ -11,7 +11,7 @@
"license": "MIT", "license": "MIT",
"type": "module", "type": "module",
"scripts": { "scripts": {
"build": "tsdown" "build": "pnpm exec tsdown"
}, },
"files": [ "files": [
"dist" "dist"
@ -28,7 +28,7 @@
"publishConfig": { "publishConfig": {
"exports": { "exports": {
".": { ".": {
"types": "./dist/index.d.mts", "types": "./dist/index.d.ts",
"default": "./dist/index.mjs" "default": "./dist/index.mjs"
} }
} }

View File

@ -5,4 +5,7 @@ export default defineConfig({
dts: true, dts: true,
entry: ['src/index.ts'], entry: ['src/index.ts'],
format: ['esm'], format: ['esm'],
outExtensions: () => ({
dts: '.d.ts',
}),
}); });