Skip to content

Commit b08457a

Browse files
committed
build: optimize dependencies
1 parent af3c257 commit b08457a

4 files changed

Lines changed: 1553 additions & 1593 deletions

File tree

build.config.mjs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ export default defineBuildConfig({
77
type: "bundle",
88
input: "./src/cli.ts",
99
rolldown: {
10-
define: {
11-
"globalThis.__pkg_version__": JSON.stringify(pkg.version),
12-
"globalThis.__pkg_name__": JSON.stringify(pkg.name),
13-
"globalThis.__pkg_description__": JSON.stringify(pkg.description),
10+
transform: {
11+
define: {
12+
"globalThis.__pkg_version__": JSON.stringify(pkg.version),
13+
"globalThis.__pkg_name__": JSON.stringify(pkg.name),
14+
"globalThis.__pkg_description__": JSON.stringify(pkg.description),
15+
},
1416
},
1517
},
1618
},

package.json

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,24 @@
1818
"prepack": "pnpm build",
1919
"release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
2020
"test": "pnpm lint && pnpm test:types",
21-
"test:types": "tsc --noEmit --skipLibCheck"
22-
},
23-
"dependencies": {
24-
"citty": "^0.1.6",
25-
"consola": "^3.4.2",
26-
"giget": "^2.0.0",
27-
"nypm": "^0.6.2",
28-
"tinyexec": "^1.0.1"
21+
"test:types": "tsgo --noEmit --skipLibCheck"
2922
},
3023
"devDependencies": {
31-
"@types/node": "^24.7.1",
24+
"@types/node": "^25.0.9",
25+
"@typescript/native-preview": "7.0.0-dev.20260120.1",
3226
"automd": "^0.4.2",
3327
"changelogen": "^0.6.2",
34-
"eslint": "^9.37.0",
35-
"eslint-config-unjs": "^0.5.0",
36-
"obuild": "^0.2.1",
37-
"prettier": "^3.6.2",
28+
"citty": "^0.1.6",
29+
"consola": "^3.4.2",
30+
"eslint": "^9.39.2",
31+
"eslint-config-unjs": "^0.6.2",
32+
"giget": "^3.0.0",
33+
"nypm": "^0.6.3",
34+
"obuild": "^0.4.18",
35+
"prettier": "^3.8.0",
36+
"tinyexec": "^1.0.2",
3837
"typescript": "^5.9.3",
39-
"vitest": "^3.2.4"
38+
"vitest": "^4.0.17"
4039
},
41-
"packageManager": "pnpm@10.18.2"
40+
"packageManager": "pnpm@10.28.1"
4241
}

0 commit comments

Comments
 (0)