Skip to content

Commit d69b806

Browse files
committed
refactor: migrate to tsdown
1 parent 77918ed commit d69b806

File tree

6 files changed

+740
-583
lines changed

6 files changed

+740
-583
lines changed

package.json

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"dist"
4444
],
4545
"scripts": {
46-
"build": "tsup ./src/index.ts ./src/cli.ts",
46+
"build": "tsdown ./src/index.ts ./src/cli.ts",
4747
"dev": "npm run build -- --watch src",
4848
"format": "prettier --write --cache .",
4949
"lint": "eslint . --cache",
@@ -59,39 +59,41 @@
5959
},
6060
"dependencies": {
6161
"@babel/core": "^7.26.10",
62+
"@rollup/pluginutils": "^5.1.4",
6263
"@simon_he/clack-prompts": "^0.8.11",
63-
"fast-glob": "^3.3.3"
64+
"@unocss/core": "^0.50.8",
65+
"@unocss/preset-uno": "^0.50.8",
66+
"@vue/babel-plugin-jsx": "^1.4.0",
67+
"@vue/compiler-sfc": "^3.5.13",
68+
"fast-glob": "^3.3.3",
69+
"less": "^4.3.0",
70+
"less-plugin-module-resolver": "^1.0.3",
71+
"picocolors": "^1.1.1",
72+
"sass": "^1.86.3",
73+
"stylus": "^0.63.0",
74+
"transform-to-unocss-core": "^0.0.46",
75+
"unplugin": "^1.16.1"
6476
},
6577
"devDependencies": {
6678
"@antfu/eslint-config": "^4.12.0",
67-
"@rollup/pluginutils": "^5.1.4",
6879
"@simon_he/colorize": "^0.0.1",
6980
"@types/babel__core": "^7.20.5",
7081
"@types/less": "^3.0.8",
7182
"@types/node": "^18.19.86",
7283
"@types/stylus": "^0.48.43",
73-
"@unocss/preset-uno": "^0.50.8",
74-
"@vue/babel-plugin-jsx": "^1.4.0",
7584
"bumpp": "^8.2.1",
7685
"eslint": "^8.57.1",
7786
"esno": "^0.16.3",
7887
"find-up": "^6.3.0",
79-
"less": "^4.3.0",
80-
"less-plugin-module-resolver": "^1.0.3",
8188
"lint-staged": "^13.3.0",
8289
"magic-string": "^0.30.17",
83-
"picocolors": "^1.1.1",
8490
"prettier": "^3.5.3",
8591
"rimraf": "^6.0.1",
86-
"sass": "^1.86.3",
8792
"simple-git-hooks": "^2.12.1",
88-
"stylus": "^0.63.0",
8993
"transform-to-unocss": "workspace:^",
90-
"transform-to-unocss-core": "^0.0.46",
91-
"tsup": "^6.7.0",
94+
"tsdown": "^0.9.3",
9295
"tsx": "^3.14.0",
9396
"typescript": "^5.8.3",
94-
"unplugin": "^1.16.1",
9597
"vitest": "^3.1.1"
9698
},
9799
"lint-staged": {

playground/components.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
declare module 'vue' {
66
export interface GlobalComponents {
7-
Footer: (typeof import('./src/components/Footer.vue'))['default']
7+
Footer: typeof import('./src/components/Footer.vue')['default']
88
}
99
}
1010

11-
export {}
11+
export { }

0 commit comments

Comments
 (0)