Skip to content

Commit ddde237

Browse files
committed
Switch from tsup to tsdown
1 parent 0da4c14 commit ddde237

File tree

3 files changed

+823
-749
lines changed

3 files changed

+823
-749
lines changed

packages/create-vue-lib/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"prompts": "^2.4.2",
3232
"publint": "^0.3.16",
3333
"rimraf": "^6.1.2",
34-
"tsup": "^8.5.1",
34+
"tsdown": "^0.21.9",
3535
"typescript": "~5.9.3"
3636
},
3737
"scripts": {
@@ -40,7 +40,7 @@
4040
"lint:package": "publint",
4141
"build:copy": "copyfiles -f ../../LICENSE ../../README.md .",
4242
"build:templates": "copyfiles -u 1 -a \"src/template/**\" dist",
43-
"build:ts": "tsup src/index.ts --format cjs --target node18",
43+
"build:ts": "tsdown",
4444
"build": "run-s clean build:copy build:templates build:ts lint:package",
4545
"start": "node ./dist/index.cjs"
4646
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineConfig } from 'tsdown'
2+
3+
export default defineConfig({
4+
entry: 'src/index.ts',
5+
clean: false,
6+
format: ['cjs'],
7+
target: 'node18',
8+
deps: {
9+
onlyBundle: false
10+
}
11+
})

0 commit comments

Comments
 (0)