mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
This change merges the `react-compiler` rule from `eslint-plugin-react-compiler` into the `eslint-plugin-react-hooks` plugin. In order to do the move in a way that keeps commit history with the moved files, but also no remove them from their origin until a future cleanup change can be done, I did the `git mv` first, and then recreated the files that were moved in their original places, as a separate commit. Unfortunately GH shows the moved files as new instead of the ones that are truly new. But in the IDE and `git blame`, commit history is intact with the moved files. Since this change adds new dependencies, and one of those dependencies has a higher `engines` declaration for `node` than what the plugin currently has, this is technically a breaking change and will have to go out as part of a major release. ### Related Changes - https://github.com/facebook/react/pull/32458 --------- Co-authored-by: Lauren Tan <poteto@users.noreply.github.com>
16 lines
451 B
Bash
Executable File
16 lines
451 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 install --frozen-lockfile
|
|
yarn --cwd compiler workspace babel-plugin-react-compiler build --dts
|