mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
We only need the compiler built for `yarn test` in the root directory. Rather than always cache both for every step, let's just do it where it's needed explicitly. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32608). * #32609 * __->__ #32608
15 lines
405 B
Bash
Executable File
15 lines
405 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
set -eo pipefail
|
|
|
|
if [[ "$REACT_CLASS_EQUIVALENCE_TEST" == "true" ]]; then
|
|
exit 0
|
|
fi
|
|
|
|
echo "Building babel-plugin-react-compiler..."
|
|
yarn --cwd compiler workspace babel-plugin-react-compiler build --dts
|