Browse Source

chore(core-composables): migrate build to tsdown

pull/7666/head
xingyu4j 1 week ago
parent
commit
f154d53be9
  1. 4
      packages/@core/composables/package.json
  2. 3
      packages/@core/composables/tsdown.config.ts

4
packages/@core/composables/package.json

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

3
packages/@core/composables/tsdown.config.ts

@ -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',
}),
}); });

Loading…
Cancel
Save