From 69ca0d20ca8c2ba4499c9b9ab5d9400a43cb3bbb Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Fri, 2 May 2025 15:44:43 -0400 Subject: [PATCH] [eslint-plugin-react-hooks] update fbsource build In order to sync the lint rules directly to internal, include the eslint plugin in the build output for fbsource. --- .github/workflows/runtime_commit_artifacts.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/runtime_commit_artifacts.yml b/.github/workflows/runtime_commit_artifacts.yml index cc600d2085e..a1c739331b0 100644 --- a/.github/workflows/runtime_commit_artifacts.yml +++ b/.github/workflows/runtime_commit_artifacts.yml @@ -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