fix(ui): pin router-plugin version and commit deterministic route tree (#635)

TanStack router-plugin <1.168.21 sorted routes by coercing route nodes
to strings, so output order followed filesystem-walk order and flipped
depending on which generator version a contributor's node_modules
resolved. Pin the version so it cannot drift, commit the sorted output
from the fixed generator, and fail CI if a build produces a different
route tree than the one committed.
This commit is contained in:
Josh Siviour
2026-08-02 08:16:21 +10:00
committed by GitHub
parent 6873875248
commit 044d7af85e
4 changed files with 1050 additions and 1047 deletions
+3
View File
@@ -57,3 +57,6 @@ jobs:
- name: Build Frontend
run: pnpm build
- name: Check for generated route tree drift
run: git diff --exit-code -- src/routeTree.gen.ts
@@ -46,7 +46,7 @@
"@tailwindcss/vite": "^4.3.3",
"@tanstack/eslint-plugin-query": "^5.101.4",
"@tanstack/eslint-plugin-router": "^1.162.0",
"@tanstack/router-plugin": "^1.168.23",
"@tanstack/router-plugin": "1.168.23",
"@testing-library/jest-dom": "^7.0.0",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
+1 -1
View File
@@ -103,7 +103,7 @@ importers:
specifier: ^1.162.0
version: 1.162.0(eslint@9.39.4(jiti@2.7.0))(typescript@7.0.2)
'@tanstack/router-plugin':
specifier: ^1.168.23
specifier: 1.168.23
version: 1.168.23(@tanstack/react-router@1.170.18(react-dom@19.2.8(react@19.2.8))(react@19.2.8))(rolldown@1.1.5)(vite@8.1.5(@types/node@24.13.3)(jiti@2.7.0)(yaml@2.9.0))
'@testing-library/jest-dom':
specifier: ^7.0.0
File diff suppressed because it is too large Load Diff