Skip to content

Commit 6584fb5

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

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

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 --filter ./react 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:",

react/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@
9696
"build:only": "pnpm run relay && vite build",
9797
"test": "vitest run",
9898
"relay": "relay-compiler",
99-
"relay:watch": "nodemon --watch schema.graphql --watch client-directives.graphql --exec 'pnpm run relay --watch'",
10099
"lint": "eslint ./src --max-warnings=0",
101100
"format": "prettier --check 'src/**/*.{js,jsx,ts,tsx}'",
102101
"format-fix": "prettier --write './src/**/*.{js,jsx,ts,tsx}'"
@@ -150,7 +149,6 @@
150149
"eslint-plugin-relay": "^2.0.0",
151150
"globals": "catalog:",
152151
"jsdom": "^29.0.2",
153-
"nodemon": "^3.1.14",
154152
"prop-types": "^15.8.1",
155153
"react-grab": "^0.1.32",
156154
"react-test-renderer": "^19.2.5",

scripts/dev.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const args = [
5757
'-c', 'auto',
5858
'--names', 'tsc,react-relay,react',
5959
'tsc --watch --preserveWatchOutput',
60-
'cd react && pnpm run relay:watch',
60+
'pnpm run relay:watch',
6161
`${portlessSpec}-- pnpm --prefix ./react run start`,
6262
];
6363

0 commit comments

Comments
 (0)