[compiler] Ensure builds use the current checkout's compiler (#36881)
Sebastian "Sebbie" Silbermann committed
Jun 30, 2026 at 17:03 UTC
3a620bb78b2f6e39342099360324f0cd6ad6970e
1 file changed
+6
-1
scripts/react-compiler/link-compiler.sh
+6
-1
@@ -12,6 +12,11 @@ fi
12
13
HERE=$(pwd)
14
15
-cd compiler/packages/babel-plugin-react-compiler && yarn --silent link && cd "$HERE"
15
+cd compiler/packages/babel-plugin-react-compiler
16
+# Free the global link name first — it may be held by another React checkout,
17
+# and `yarn link` (register) won't overwrite an existing owner.
18
+yarn --silent unlink 2>/dev/null || true
19
+yarn --silent link
20
+cd "$HERE"
21
22
yarn --silent link babel-plugin-react-compiler