Skip to content

Commit 1624c5d

Browse files
committed
fix(FR-2829): move relay:watch to root and fix schema watch paths
1 parent 731574c commit 1624c5d

5 files changed

Lines changed: 25955 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ If your branch name contains an `FR-XXXX` issue number, the URL is `https://fr-X
231231
| `pnpm run build` | Full production build |
232232
| `pnpm run build:react-only` | Build only React app |
233233
| `pnpm run relay` | One-time Relay/GraphQL compile (project root) |
234-
| `cd react && pnpm run relay:watch` | Relay watch mode (uses nodemon) |
234+
| `pnpm run relay:watch` | Relay watch mode (uses nodemon) |
235235
| `pnpm run lint` | ESLint check |
236236
| `pnpm run lint-fix` | Auto-fix ESLint issues |
237237
| `pnpm run format` | Prettier format check |

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"electron:d": "electron build/electron-app --dev",
2727
"electron:d:hmr": "LIVE_DEBUG=1 electron build/electron-app --dev",
2828
"relay": "relay-compiler",
29+
"relay:watch": "nodemon --watch data/schema.graphql --watch data/client-directives.graphql --exec 'pnpm run relay --watch'",
2930
"copyresource": "cp -Rp resources build/web && cp -Rp manifest build/web",
3031
"copyconfig": "./scripts/copy-config.js && cp version.json build/web && cp manifest.json build/web",
3132
"copyindex": "cp index.html build/web",
@@ -86,6 +87,7 @@
8687
"jsonc-eslint-parser": "catalog:",
8788
"lint-staged": "^15.5.2",
8889
"lodash": "catalog:",
90+
"nodemon": "^3.1.14",
8991
"portless": "^0.10.3",
9092
"prettier": "catalog:",
9193
"prettier-plugin-sort-json": "catalog:",

0 commit comments

Comments
 (0)