Skip to content

Commit 2067b9d

Browse files
committed
dont install compiler twice in ReactClassEquivalence tests
1 parent 47c15e8 commit 2067b9d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

scripts/react-compiler/build-compiler.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
set -eo pipefail
88

9+
if [[ "$REACT_CLASS_EQUIVALENCE_TEST" == "true" ]]; then
10+
exit 0
11+
fi
12+
913
echo "Building babel-plugin-react-compiler..."
1014
yarn --cwd compiler install --frozen-lockfile
1115
yarn --cwd compiler workspace babel-plugin-react-compiler build --dts

scripts/react-compiler/link-compiler.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
set -eo pipefail
88

9+
if [[ "$REACT_CLASS_EQUIVALENCE_TEST" == "true" ]]; then
10+
exit 0
11+
fi
12+
913
HERE=$(pwd)
1014

1115
cd compiler/packages/babel-plugin-react-compiler && yarn --silent link && cd $HERE

0 commit comments

Comments
 (0)