Skip to content

Commit ea04050

Browse files
committed
chore: replace unbuild with tsdown (#621)
Replaced the per-package unbuild setup with a single unified tsdown workspace setup.
1 parent e6490f2 commit ea04050

File tree

31 files changed

+354
-421
lines changed

31 files changed

+354
-421
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"packageManager": "pnpm@10.11.0",
77
"scripts": {
88
"prepare": "simple-git-hooks",
9-
"build": "pnpm run -r build",
10-
"build:packages": "pnpm --filter=\"./packages/*\" run -r build",
9+
"build": "pnpm run build:packages && pnpm run -r build",
10+
"build:packages": "tsdown",
1111
"preview": "pnpm run --parallel preview",
1212
"type:check": "pnpm run -r type:check && pnpm run -r type:check:test && tsc --noEmit",
1313
"test": "vitest run",
@@ -44,8 +44,8 @@
4444
"lint-staged": "^16.0.0",
4545
"msw": "^2.8.4",
4646
"simple-git-hooks": "^2.11.1",
47+
"tsdown": "0.12.7",
4748
"typescript": "^5.8.3",
48-
"unbuild": "^3.5.0",
4949
"vite-plugin-solid": "^2.11.6",
5050
"vitest": "^3.0.4"
5151
},

packages/arktype/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"dist"
3030
],
3131
"scripts": {
32-
"build": "unbuild",
3332
"build:watch": "pnpm run build --watch",
3433
"type:check": "tsc -b"
3534
},

packages/client/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"dist"
6060
],
6161
"scripts": {
62-
"build": "unbuild",
6362
"build:watch": "pnpm run build --watch",
6463
"type:check": "tsc -b"
6564
},

packages/client/tsdown.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { defineConfig } from 'tsdown'
2+
3+
export default defineConfig({
4+
entry: ['./src/index.ts', './src/plugins/index.ts', './src/adapters/*/index.ts'],
5+
})

packages/contract/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"dist"
3030
],
3131
"scripts": {
32-
"build": "unbuild",
3332
"build:watch": "pnpm run build --watch",
3433
"type:check": "tsc -b"
3534
},

packages/hey-api/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"dist"
3131
],
3232
"scripts": {
33-
"build": "unbuild",
3433
"build:watch": "pnpm run build --watch",
3534
"type:check": "tsc -b",
3635
"prepare": "openapi-ts -i ./tests/spec.json -o ./tests/client -c @hey-api/client-fetch"

packages/nest/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"dist"
3030
],
3131
"scripts": {
32-
"build": "unbuild",
3332
"build:watch": "pnpm run build --watch",
3433
"type:check": "tsc -b",
3534
"type:check:test": "tsc -p tsconfig.test.json --noEmit"

packages/openapi-client/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"dist"
4242
],
4343
"scripts": {
44-
"build": "unbuild",
4544
"build:watch": "pnpm run build --watch",
4645
"type:check": "tsc -b"
4746
},

packages/openapi/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"dist"
6060
],
6161
"scripts": {
62-
"build": "unbuild",
6362
"build:watch": "pnpm run build --watch",
6463
"type:check": "tsc -b"
6564
},

packages/react-query/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"dist"
3333
],
3434
"scripts": {
35-
"build": "unbuild",
3635
"build:watch": "pnpm run build --watch",
3736
"type:check": "tsc -b"
3837
},

0 commit comments

Comments
 (0)