Skip to content

Commit 8e1835e

Browse files
committed
chore: use tsdown replace tsup
1 parent 1a2bacf commit 8e1835e

File tree

4 files changed

+1516
-2730
lines changed

4 files changed

+1516
-2730
lines changed

.vscode/settings.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
// Disable the default formatter, use eslint instead
3+
"prettier.enable": false,
4+
"editor.formatOnSave": false,
5+
6+
// Auto fix
7+
"editor.codeActionsOnSave": {
8+
"source.fixAll.eslint": "explicit",
9+
"source.organizeImports": "never"
10+
},
11+
12+
// Silent the stylistic rules in your IDE, but still auto fix them
13+
"eslint.rules.customizations": [
14+
{ "rule": "style/*", "severity": "off", "fixable": true },
15+
{ "rule": "format/*", "severity": "off", "fixable": true },
16+
{ "rule": "*-indent", "severity": "off", "fixable": true },
17+
{ "rule": "*-spacing", "severity": "off", "fixable": true },
18+
{ "rule": "*-spaces", "severity": "off", "fixable": true },
19+
{ "rule": "*-order", "severity": "off", "fixable": true },
20+
{ "rule": "*-dangle", "severity": "off", "fixable": true },
21+
{ "rule": "*-newline", "severity": "off", "fixable": true },
22+
{ "rule": "*quotes", "severity": "off", "fixable": true },
23+
{ "rule": "*semi", "severity": "off", "fixable": true }
24+
],
25+
26+
// Enable eslint for all supported languages
27+
"eslint.validate": [
28+
"javascript",
29+
"javascriptreact",
30+
"typescript",
31+
"typescriptreact",
32+
"vue",
33+
"html",
34+
"markdown",
35+
"json",
36+
"jsonc",
37+
"yaml",
38+
"toml",
39+
"xml",
40+
"gql",
41+
"graphql",
42+
"astro",
43+
"svelte",
44+
"css",
45+
"less",
46+
"scss",
47+
"pcss",
48+
"postcss"
49+
]
50+
}

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -37,53 +37,53 @@
3737
"registry": "https://registry.npmjs.org/"
3838
},
3939
"scripts": {
40-
"dev": "tsup --watch",
41-
"build": "tsup",
40+
"dev": "tsdown --watch",
41+
"build": "tsdown",
4242
"test": "vitest",
4343
"lint": "eslint --fix",
4444
"prepare": "simple-git-hooks",
4545
"prepublishOnly": "pnpm build"
4646
},
4747
"dependencies": {
48-
"@antfu/eslint-config": "^4.13.0",
49-
"@manypkg/get-packages": "^2.2.1",
48+
"@manypkg/get-packages": "^2.2.2",
5049
"@tomjs/logger": "^1.4.0",
5150
"@tomjs/pkg": "^1.0.4",
52-
"chalk": "^5.4.1",
51+
"chalk": "^5.6.2",
5352
"cosmiconfig": "^9.0.0",
54-
"dayjs": "^1.11.13",
55-
"execa": "^9.5.3",
53+
"dayjs": "^1.11.19",
54+
"execa": "^9.6.0",
5655
"hosted-git-info": "^7.0.2",
5756
"inquirer": "9.2.17",
5857
"is-subdir": "^1.2.0",
5958
"log-symbols": "^6.0.0",
6059
"meow": "^13.2.0",
6160
"open": "^10.1.2",
6261
"ora": "^8.2.0",
63-
"publint": "^0.3.12",
6462
"semver": "^7.7.1",
6563
"strip-ansi": "^7.1.0"
6664
},
6765
"devDependencies": {
68-
"@commitlint/cli": "^19.8.1",
69-
"@tomjs/commitlint": "^4.0.0",
70-
"@tomjs/eslint": "^5.0.0",
71-
"@tomjs/tsconfig": "^1.7.2",
66+
"@antfu/eslint-config": "^6.2.0",
67+
"@commitlint/cli": "^20.1.0",
68+
"@tomjs/commitlint": "^5.0.0",
69+
"@tomjs/eslint": "^6.0.0",
70+
"@tomjs/tsconfig": "^2.0.0",
7271
"@types/hosted-git-info": "^3.0.5",
73-
"@types/inquirer": "^9.0.8",
74-
"@types/node": "^18.19.100",
75-
"@types/semver": "^7.7.0",
72+
"@types/inquirer": "^9.0.9",
73+
"@types/node": "^20.19.25",
74+
"@types/semver": "^7.7.1",
7675
"cross-env": "^7.0.3",
77-
"eslint": "^9.26.0",
76+
"eslint": "^9.39.1",
7877
"husky": "^9.1.7",
79-
"lint-staged": "^15.5.2",
78+
"lint-staged": "^16.2.6",
8079
"npm-run-all": "^4.1.5",
80+
"publint": "^0.3.12",
8181
"rimraf": "^6.0.1",
82-
"simple-git-hooks": "^2.13.0",
83-
"tsup": "^8.4.0",
82+
"simple-git-hooks": "^2.13.1",
83+
"tsdown": "^0.16.4",
8484
"tsx": "^4.19.4",
85-
"type-fest": "^4.41.0",
85+
"type-fest": "^5.2.0",
8686
"typescript": "^5.8.3",
87-
"vitest": "^3.1.3"
87+
"vitest": "^4.0.9"
8888
}
8989
}

0 commit comments

Comments
 (0)