Skip to content

Commit 672e88a

Browse files
committed
chore: migrate to tsdown
1 parent d1c272a commit 672e88a

File tree

35 files changed

+876
-745
lines changed

35 files changed

+876
-745
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ node_modules/
2929
.eslintcache
3030
.parcel-cache
3131
.tmp
32-
tsup.config.bundled_*.mjs
3332
build.utils.d.ts
3433
worker-configuration.d.ts
3534
/.env
3635
/NOTES.md
3736

3837
# v7 reference docs
39-
/public
38+
/public
File renamed without changes.

packages/create-react-router/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@
2424
},
2525
"wireit": {
2626
"build": {
27-
"command": "tsup",
27+
"command": "tsdown",
2828
"files": [
2929
"*.ts",
30+
"*.mts",
3031
"tsconfig.json",
3132
"package.json"
3233
],
@@ -58,7 +59,7 @@
5859
"esbuild-register": "^3.6.0",
5960
"msw": "^2.7.5",
6061
"tiny-invariant": "^1.2.0",
61-
"tsup": "^8.3.0",
62+
"tsdown": "^0.15.6",
6263
"typescript": "^5.1.6",
6364
"wireit": "0.14.9"
6465
},

packages/create-react-router/tsup.config.ts renamed to packages/create-react-router/tsdown.config.mts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
import { defineConfig } from "tsup";
2-
3-
// @ts-ignore - out of scope
4-
import { createBanner } from "../../build.utils.js";
5-
6-
import pkg from "./package.json";
1+
import { defineConfig } from "tsdown";
2+
import { createBanner } from "../../build.utils.mts";
3+
import pkg from "./package.json" with { type: "json" };
74

85
const entry = ["cli.ts"];
96

packages/react-router-architect/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@
3737
},
3838
"wireit": {
3939
"build": {
40-
"command": "tsup",
40+
"command": "tsdown",
4141
"files": [
4242
"sessions/**",
4343
"*.ts",
44+
"*.mts",
4445
"tsconfig.json",
4546
"package.json"
4647
],
@@ -61,7 +62,7 @@
6162
"react": "^19.1.0",
6263
"react-dom": "^19.1.0",
6364
"react-router": "workspace:*",
64-
"tsup": "^8.3.0",
65+
"tsdown": "^0.15.6",
6566
"typescript": "^5.1.6",
6667
"wireit": "0.14.9"
6768
},
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { defineConfig } from "tsdown";
2+
import { createBanner } from "../../build.utils.mts";
3+
import pkg from "./package.json" with { type: "json" };
4+
5+
const entry = ["index.ts"];
6+
7+
export default defineConfig([
8+
{
9+
entry,
10+
format: ["cjs", "esm"],
11+
banner: {
12+
js: createBanner(pkg.name, pkg.version),
13+
},
14+
},
15+
]);

packages/react-router-architect/tsup.config.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

packages/react-router-cloudflare/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@
3232
},
3333
"wireit": {
3434
"build": {
35-
"command": "tsup",
35+
"command": "tsdown",
3636
"files": [
3737
"sessions/**",
3838
"*.ts",
39+
"*.mts",
3940
"tsconfig.json",
4041
"package.json"
4142
],
@@ -47,7 +48,7 @@
4748
"devDependencies": {
4849
"@cloudflare/workers-types": "^4.20250803.0",
4950
"react-router": "workspace:*",
50-
"tsup": "^8.3.0",
51+
"tsdown": "^0.15.6",
5152
"typescript": "^5.1.6",
5253
"wireit": "0.14.9"
5354
},
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { defineConfig } from "tsdown";
2+
import { createBanner } from "../../build.utils.mts";
3+
import pkg from "./package.json" with { type: "json" };
4+
5+
const entry = ["index.ts"];
6+
7+
export default defineConfig([
8+
{
9+
entry,
10+
format: ["cjs", "esm"],
11+
banner: {
12+
js: createBanner(pkg.name, pkg.version),
13+
},
14+
},
15+
]);

packages/react-router-cloudflare/tsup.config.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)