Skip to content

Commit 2e90664

Browse files
committed
Fix scripts
1 parent 3991e6d commit 2e90664

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
"testRegex": "/scripts/jest/dont-run-jest-directly\\.js$"
117117
},
118118
"scripts": {
119+
"prebuild": "./scripts/react-compiler/link-compiler.sh && cd compiler && yarn install --frozen-lockfile",
119120
"build": "node ./scripts/rollup/build-all-release-channels.js",
120121
"build-for-devtools": "cross-env RELEASE_CHANNEL=experimental yarn build react/index,react/jsx,react/compiler-runtime,react-dom/index,react-dom/client,react-dom/unstable_testing,react-dom/test-utils,react-is,react-debug-tools,scheduler,react-test-renderer,react-refresh,react-art --type=NODE",
121122
"build-for-devtools-dev": "yarn build-for-devtools --type=NODE_DEV",
@@ -126,7 +127,8 @@
126127
"lint": "node ./scripts/tasks/eslint.js",
127128
"lint-build": "node ./scripts/rollup/validate/index.js",
128129
"extract-errors": "node scripts/error-codes/extract-errors.js",
129-
"postinstall": "node ./scripts/flow/createFlowConfigs.js && ./scripts/react-compiler/link-compiler.sh",
130+
"postinstall": "node ./scripts/flow/createFlowConfigs.js",
131+
"pretest": "./scripts/react-compiler/link-compiler.sh && cd compiler && yarn install --frozen-lockfile",
130132
"test": "node ./scripts/jest/jest-cli.js",
131133
"test-stable": "node ./scripts/jest/jest-cli.js --release-channel=stable",
132134
"test-www": "node ./scripts/jest/jest-cli.js --release-channel=www-modern",

0 commit comments

Comments
 (0)