Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ node_modules/
.eslintcache
.parcel-cache
.tmp
tsup.config.bundled_*.mjs
build.utils.d.ts
worker-configuration.d.ts
/.env
/NOTES.md

# v7 reference docs
/public
/public
File renamed without changes.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@
- stmtk1
- sukvvon
- swalker326
- sxzz
- szhsin
- tanayv
- thecode00
Expand Down
5 changes: 3 additions & 2 deletions packages/create-react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
},
"wireit": {
"build": {
"command": "tsup",
"command": "tsdown",
"files": [
"*.ts",
"*.mts",
"tsconfig.json",
"package.json"
],
Expand Down Expand Up @@ -58,7 +59,7 @@
"esbuild-register": "^3.6.0",
"msw": "^2.7.5",
"tiny-invariant": "^1.2.0",
"tsup": "^8.3.0",
"tsdown": "^0.15.6",
"typescript": "^5.1.6",
"wireit": "0.14.9"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { defineConfig } from "tsup";

// @ts-ignore - out of scope
import { createBanner } from "../../build.utils.js";

import pkg from "./package.json";
import { defineConfig } from "tsdown";
import { createBanner } from "../../build.utils.mts";
import pkg from "./package.json" with { type: "json" };

const entry = ["cli.ts"];

Expand Down
5 changes: 3 additions & 2 deletions packages/react-router-architect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@
},
"wireit": {
"build": {
"command": "tsup",
"command": "tsdown",
"files": [
"sessions/**",
"*.ts",
"*.mts",
"tsconfig.json",
"package.json"
],
Expand All @@ -61,7 +62,7 @@
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-router": "workspace:*",
"tsup": "^8.3.0",
"tsdown": "^0.15.6",
"typescript": "^5.1.6",
"wireit": "0.14.9"
},
Expand Down
15 changes: 15 additions & 0 deletions packages/react-router-architect/tsdown.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { defineConfig } from "tsdown";
import { createBanner } from "../../build.utils.mts";
import pkg from "./package.json" with { type: "json" };

const entry = ["index.ts"];

export default defineConfig([
{
entry,
format: ["cjs", "esm"],
banner: {
js: createBanner(pkg.name, pkg.version),
},
},
]);
21 changes: 0 additions & 21 deletions packages/react-router-architect/tsup.config.ts

This file was deleted.

5 changes: 3 additions & 2 deletions packages/react-router-cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@
},
"wireit": {
"build": {
"command": "tsup",
"command": "tsdown",
"files": [
"sessions/**",
"*.ts",
"*.mts",
"tsconfig.json",
"package.json"
],
Expand All @@ -47,7 +48,7 @@
"devDependencies": {
"@cloudflare/workers-types": "^4.20250803.0",
"react-router": "workspace:*",
"tsup": "^8.3.0",
"tsdown": "^0.15.6",
"typescript": "^5.1.6",
"wireit": "0.14.9"
},
Expand Down
15 changes: 15 additions & 0 deletions packages/react-router-cloudflare/tsdown.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { defineConfig } from "tsdown";
import { createBanner } from "../../build.utils.mts";
import pkg from "./package.json" with { type: "json" };

const entry = ["index.ts"];

export default defineConfig([
{
entry,
format: ["cjs", "esm"],
banner: {
js: createBanner(pkg.name, pkg.version),
},
},
]);
21 changes: 0 additions & 21 deletions packages/react-router-cloudflare/tsup.config.ts

This file was deleted.

5 changes: 3 additions & 2 deletions packages/react-router-dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,15 @@
},
"wireit": {
"build": {
"command": "tsup",
"command": "tsdown",
"files": [
"cli/**",
"config/**",
"module-sync-enabled/**",
"typegen/**",
"vite/**",
"*.ts",
"*.mts",
"bin.js",
"tsconfig.json",
"package.json"
Expand Down Expand Up @@ -110,7 +111,7 @@
"express": "^4.19.2",
"fast-glob": "3.2.11",
"react-router": "workspace:^",
"tsup": "^8.3.0",
"tsdown": "^0.15.6",
"typescript": "^5.1.6",
"vite": "^6.1.0",
"wireit": "0.14.9",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import * as fsp from "fs/promises";

import { defineConfig } from "tsup";

// @ts-ignore - out of scope
import { createBanner } from "../../build.utils.js";

import pkg from "./package.json";
import { defineConfig } from "tsdown";
import { createBanner } from "../../build.utils.mts";
import pkg from "./package.json" with { type: "json" };

const entry = [
"cli/index.ts",
Expand All @@ -24,25 +21,17 @@ const external = [

export default defineConfig([
{
clean: true,
entry,
format: ["cjs"],
outDir: "dist",
dts: true,
external,
banner: {
js: createBanner(pkg.name, pkg.version),
},
dts: true,
plugins: [
{
name: "copy",
async buildEnd() {
await fsp.mkdir("dist/static", { recursive: true });
await fsp.copyFile(
"vite/static/refresh-utils.mjs",
"dist/static/refresh-utils.mjs",
);

await fsp.mkdir("dist/static", { recursive: true });
await fsp.copyFile(
"vite/static/refresh-utils.mjs",
Expand Down
5 changes: 3 additions & 2 deletions packages/react-router-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@
},
"wireit": {
"build": {
"command": "tsup",
"command": "tsdown",
"files": [
"*.ts",
"*.mts",
"tsconfig.json",
"package.json"
],
Expand All @@ -63,7 +64,7 @@
"devDependencies": {
"react": "^19.1.0",
"react-dom": "^19.1.0",
"tsup": "^8.3.0",
"tsdown": "^0.15.6",
"typescript": "^5.1.6",
"wireit": "0.14.9"
},
Expand Down
15 changes: 15 additions & 0 deletions packages/react-router-dom/tsdown.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { defineConfig } from "tsdown";
import { createBanner } from "../../build.utils.mts";
import pkg from "./package.json" with { type: "json" };

const entry = ["index.ts"];

export default defineConfig([
{
entry,
format: ["cjs", "esm"],
banner: {
js: createBanner(pkg.name, pkg.version),
},
},
]);
21 changes: 0 additions & 21 deletions packages/react-router-dom/tsup.config.ts

This file was deleted.

5 changes: 3 additions & 2 deletions packages/react-router-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@
},
"wireit": {
"build": {
"command": "tsup",
"command": "tsdown",
"files": [
"*.ts",
"*.mts",
"tsconfig.json",
"package.json"
],
Expand All @@ -58,7 +59,7 @@
"express": "^4.19.2",
"node-mocks-http": "^1.10.1",
"supertest": "^6.3.3",
"tsup": "^8.3.0",
"tsdown": "^0.15.6",
"typescript": "^5.1.6",
"wireit": "0.14.9"
},
Expand Down
15 changes: 15 additions & 0 deletions packages/react-router-express/tsdown.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { defineConfig } from "tsdown";
import { createBanner } from "../../build.utils.mts";
import pkg from "./package.json" with { type: "json" };

const entry = ["index.ts"];

export default defineConfig([
{
entry,
format: ["cjs", "esm"],
banner: {
js: createBanner(pkg.name, pkg.version),
},
},
]);
21 changes: 0 additions & 21 deletions packages/react-router-express/tsup.config.ts

This file was deleted.

5 changes: 3 additions & 2 deletions packages/react-router-fs-routes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
},
"wireit": {
"build": {
"command": "tsup",
"command": "tsdown",
"files": [
"*.ts",
"*.mts",
"tsconfig.json",
"package.json"
],
Expand All @@ -42,7 +43,7 @@
},
"devDependencies": {
"@react-router/dev": "workspace:*",
"tsup": "^8.3.0",
"tsdown": "^0.15.6",
"typescript": "^5.1.6",
"wireit": "0.14.9"
},
Expand Down
15 changes: 15 additions & 0 deletions packages/react-router-fs-routes/tsdown.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { defineConfig } from "tsdown";
import { createBanner } from "../../build.utils.mts";
import pkg from "./package.json" with { type: "json" };

const entry = ["index.ts"];

export default defineConfig([
{
entry,
format: ["cjs"],
banner: {
js: createBanner(pkg.name, pkg.version),
},
},
]);
Loading