Skip to content

Commit 787297e

Browse files
committed
chore: migrate to tsdown
1 parent 915e6f0 commit 787297e

File tree

3 files changed

+353
-254
lines changed

3 files changed

+353
-254
lines changed

packages/dragswag/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,20 @@
6464
"LICENSE"
6565
],
6666
"scripts": {
67-
"build": "tsup --clean",
67+
"build": "tsdown --clean",
6868
"postbuild": "pnpm copy-files && pnpm publint",
6969
"copy-files": "rm -f README.md LICENSE && cp ../../README.md ../../LICENSE ./",
70-
"dev": "tsup --watch",
71-
"lint": "pnpm typecheck",
70+
"dev": "tsdown --watch",
71+
"lint": "pnpm typecheck && pnpm publint",
7272
"typecheck": "tsc --noEmit"
7373
},
7474
"devDependencies": {
75+
"@oxc-project/runtime": "^0.76.0",
7576
"@types/node": "^24.0.12",
7677
"@types/react": "^19.1.8",
7778
"publint": "^0.3.12",
7879
"react": "^19.1.0",
79-
"tsup": "^8.5.0"
80+
"tsdown": "^0.12.9"
8081
},
8182
"peerDependencies": {
8283
"react": ">=19.0.0"

packages/dragswag/tsup.config.ts renamed to packages/dragswag/tsdown.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type Options, defineConfig } from 'tsup'
1+
import { type Options, defineConfig } from 'tsdown'
22

33
const config: Options = {
44
entry: {
@@ -13,7 +13,7 @@ const config: Options = {
1313
// clean: true,
1414
dts: true,
1515
sourcemap: true,
16-
splitting: true,
16+
// splitting: true, // not implemented yet. check https://github.com/rolldown/rolldown/issues/4437
1717
treeshake: true,
1818
minify: process.env['NODE_ENV'] === 'production',
1919
skipNodeModulesBundle: true,

0 commit comments

Comments
 (0)