Upgrade Relay to v20.1.1 and unify compiler config

Consolidate the two per-app relay configs (console and trust)
into a single multi-project relay.config.json at the repo root
with three projects: core, iam, and trust. Bump all relay
packages from v19 to v20.1.1 and move relay-compiler to the
root devDependencies. Replace per-workspace relay scripts with
a single root-level npm run relay command and update the
GNUmakefile, CI workflows, and docs accordingly.

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-04-14 15:59:11 +04:00
parent f08abf3be2
commit 74d7d3ff25
14 changed files with 82 additions and 91 deletions

View File

@@ -5,9 +5,6 @@
"type": "module",
"scripts": {
"dev": "vite --port 5173",
"relay-clean": "find src -type d -name \"__generated__\" -exec rm -rf {} +",
"relay-compile": "npx relay-compiler",
"relay": "npm run relay-clean && npm run relay-compile",
"build": "tsc -b && vite build",
"lint": "eslint . --concurrency 4",
"check": "tsc --noEmit -p tsconfig.app.json",
@@ -33,9 +30,9 @@
"react-error-boundary": "^6.0.0",
"react-hook-form": "^7.56.4",
"react-pdf": "^10.3.0",
"react-relay": "^19.0.0",
"react-relay": "^20.1.1",
"react-router": "^7.12.0",
"relay-runtime": "^19.0.0",
"relay-runtime": "^20.1.1",
"use-debounce": "^10.0.5",
"usehooks-ts": "^3.1.1",
"zod": "^3.25.17"
@@ -48,12 +45,11 @@
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.2",
"@types/react-relay": "^18.2.1",
"@types/relay-runtime": "^19.0.1",
"@types/relay-runtime": "^20.1.1",
"@vitejs/plugin-react": "^5.1.4",
"babel-plugin-relay": "^19.0.0",
"babel-plugin-relay": "^20.1.1",
"eslint": "^9.39.2",
"graphql": "^16.11.0",
"relay-compiler": "^19.0.0",
"tailwindcss": "^4.1.7",
"typescript": "~5.8.3",
"vite": "^7.3.2"