mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 00:20:04 +01:00
[eslint-plugin-react-hooks] update fbsource build (#33104)
In order to sync the lint rules directly to internal, include the eslint plugin in the build output for fbsource.
This commit is contained in:
parent
4c4a57c4f9
commit
0d695bea10
11
.github/workflows/runtime_commit_artifacts.yml
vendored
11
.github/workflows/runtime_commit_artifacts.yml
vendored
|
|
@ -132,9 +132,9 @@ jobs:
|
|||
mkdir ./compiled/facebook-www/__test_utils__
|
||||
mv build/__test_utils__/ReactAllWarnings.js ./compiled/facebook-www/__test_utils__/ReactAllWarnings.js
|
||||
|
||||
# Move eslint-plugin-react-hooks into eslint-plugin-react-hooks
|
||||
# Copy eslint-plugin-react-hooks
|
||||
mkdir ./compiled/eslint-plugin-react-hooks
|
||||
mv build/oss-experimental/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js \
|
||||
cp build/oss-experimental/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js \
|
||||
./compiled/eslint-plugin-react-hooks/index.js
|
||||
|
||||
# Move unstable_server-external-runtime.js into facebook-www
|
||||
|
|
@ -167,6 +167,13 @@ jobs:
|
|||
rm $RENDERER_FOLDER/ReactFabric-{dev,prod,profiling}.js
|
||||
rm $RENDERER_FOLDER/ReactNativeRenderer-{dev,prod,profiling}.js
|
||||
|
||||
# Copy eslint-plugin-react-hooks
|
||||
# NOTE: This is different from www, here we include the full package
|
||||
# including package.json to include dependencies in fbsource.
|
||||
mkdir $BASE_FOLDER/RKJSModules/vendor/react/eslint-plugin-react-hooks
|
||||
cp -r build/oss-experimental/eslint-plugin-react-hooks \
|
||||
$BASE_FOLDER/RKJSModules/vendor/react/eslint-plugin-react-hooks
|
||||
|
||||
# Move React Native version file
|
||||
mv build/facebook-react-native/VERSION_NATIVE_FB ./compiled-rn/VERSION_NATIVE_FB
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user