Skip to content

Commit 3d7b69b

Browse files
committed
feat: use tsdown to build
1 parent 9d940c6 commit 3d7b69b

File tree

7 files changed

+431
-479
lines changed

7 files changed

+431
-479
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"changelogithub",
66
"commitlint",
77
"preid",
8+
"tsdown",
89
"unplugin"
910
],
1011
// Disable the default formatter, use eslint instead

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A typescript project startup template
66

77
- code lint & format with [eslint](https://eslint.org/) and [@antfu/eslint-config](https://www.npmjs.com/package/@antfu/eslint-config)
88
- commit lint with [husky](https://typicode.github.io/husky/) and [lint-staged](https://www.npmjs.com/package/lint-staged)
9-
- build with [vite](https://vite.dev/)
9+
- build with [tsdown](https://tsdown.dev/)
1010
- test by [vitest](https://vitest.dev/)
1111
- release with [bumpp](https://github.com/antfu-collective/bumpp)
1212
- auto publish by [github action](https://docs.github.com/en/actions)

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"scripts": {
3434
"lint": "eslint .",
3535
"format": "eslint --fix .",
36-
"build": "vite build",
36+
"dev": "tsdown --watch",
37+
"build": "tsdown",
3738
"test": "vitest",
3839
"coverage": "vitest run --coverage",
3940
"commit": "git-cz",
@@ -55,10 +56,9 @@
5556
"husky": "^9.1.7",
5657
"inquirer": "^12.3.3",
5758
"lint-staged": "^15.4.3",
59+
"tsdown": "^0.13.3",
5860
"typescript": "^5.7.3",
59-
"unplugin-external": "0.1.0-beta.3",
6061
"vite": "^6.1.1",
61-
"vite-plugin-dts": "^4.5.0",
6262
"vitest": "^3.0.6"
6363
},
6464
"config": {

0 commit comments

Comments
 (0)