Skip to content

Commit 8204d6b

Browse files
committed
build: migrate from tsup to tsdown
Tsdown simplifies build processes with a zero-config bundling and better integration with modern tooling. Changes: - Replace `tsup` with `tsdown` - Remove @arethetypeswrong/cli (attw) - no longer needed - Remove attw validation step from CI workflow
1 parent bf5611b commit 8204d6b

File tree

4 files changed

+427
-995
lines changed

4 files changed

+427
-995
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
- run: pnpm build
2222
- run: pnpm exec biome ci
2323
- run: tsc
24-
- run: pnpm attw
2524

2625
test:
2726
needs: check

package.json

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"type": "module",
1010
"exports": {
1111
".": {
12-
"types": "./dist/lib.d.ts",
13-
"import": "./dist/lib.js"
12+
"types": "./dist/lib.d.mts",
13+
"import": "./dist/lib.mjs"
1414
},
1515
"./package.json": "./package.json"
1616
},
@@ -20,8 +20,7 @@
2020
"install-hooks": "lefthook install",
2121
"test": "vitest --run",
2222
"build:proto": "npx buf generate",
23-
"build": "pnpm build:proto && tsup",
24-
"attw": "attw --profile esm-only --pack ."
23+
"build": "pnpm build:proto && tsdown"
2524
},
2625
"peerDependencies": {
2726
"pino": "^9.7.0"
@@ -41,7 +40,6 @@
4140
"zod": "^4.1.12"
4241
},
4342
"devDependencies": {
44-
"@arethetypeswrong/cli": "^0.18.2",
4543
"@biomejs/biome": "2.3.5",
4644
"@bufbuild/buf": "^1.59.0",
4745
"@bufbuild/protoc-gen-es": "^2.10.1",
@@ -53,12 +51,13 @@
5351
"@types/node": "^24.10.1",
5452
"@types/semver": "^7.7.1",
5553
"@vitest/coverage-v8": "^4.0.9",
54+
"abitype": "^1.1.1",
5655
"docker-compose": "^1.3.0",
5756
"dotenv": "^17.2.3",
5857
"fast-check": "^4.3.0",
5958
"lefthook": "^2.0.4",
6059
"semver": "^7.7.3",
61-
"tsup": "^8.5.1",
60+
"tsdown": "^0.16.4",
6261
"tsx": "^4.20.6",
6362
"type-fest": "^5.2.0",
6463
"typedoc": "^0.28.14",
@@ -74,5 +73,14 @@
7473
"README.md",
7574
"DOCUMENTATION.md",
7675
"CONTRIBUTING.md"
77-
]
76+
],
77+
"tsdown": {
78+
"entry": "./src/lib.ts",
79+
"format": "esm",
80+
"clean": true,
81+
"alias": {
82+
"#": "./src",
83+
"#tests": "./tests"
84+
}
85+
}
7886
}

0 commit comments

Comments
 (0)