mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
[compiler] Ensure builds use the current checkout's compiler (#36881)
This commit is contained in:
committed by
GitHub
parent
e0ab3b0cde
commit
ff51e873f0
@@ -12,6 +12,11 @@ fi
|
||||
|
||||
HERE=$(pwd)
|
||||
|
||||
cd compiler/packages/babel-plugin-react-compiler && yarn --silent link && cd "$HERE"
|
||||
cd compiler/packages/babel-plugin-react-compiler
|
||||
# Free the global link name first — it may be held by another React checkout,
|
||||
# and `yarn link` (register) won't overwrite an existing owner.
|
||||
yarn --silent unlink 2>/dev/null || true
|
||||
yarn --silent link
|
||||
cd "$HERE"
|
||||
|
||||
yarn --silent link babel-plugin-react-compiler
|
||||
|
||||
Reference in New Issue
Block a user