[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.
Jan Kassens committed
May 2, 2025 at 16:03 UTC
0d695bea10c04d32df4fae7813aa5f448213014a
1 file changed
+9
-2
.github/workflows/runtime_commit_artifacts.yml
+9
-2
@@ -132,9 +132,9 @@ jobs:
132
mkdir ./compiled/facebook-www/__test_utils__
133
mv build/__test_utils__/ReactAllWarnings.js ./compiled/facebook-www/__test_utils__/ReactAllWarnings.js
134
135
- # Move eslint-plugin-react-hooks into eslint-plugin-react-hooks
135
+ # Copy eslint-plugin-react-hooks
136
mkdir ./compiled/eslint-plugin-react-hooks
137
- mv build/oss-experimental/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js \
137
+ cp build/oss-experimental/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js \
138
./compiled/eslint-plugin-react-hooks/index.js
139
140
# Move unstable_server-external-runtime.js into facebook-www
@@ -167,6 +167,13 @@ jobs:
167
rm $RENDERER_FOLDER/ReactFabric-{dev,prod,profiling}.js
168
rm $RENDERER_FOLDER/ReactNativeRenderer-{dev,prod,profiling}.js
169
170
+ # Copy eslint-plugin-react-hooks
171
+ # NOTE: This is different from www, here we include the full package
172
+ # including package.json to include dependencies in fbsource.
173
+ mkdir $BASE_FOLDER/RKJSModules/vendor/react/eslint-plugin-react-hooks
174
+ cp -r build/oss-experimental/eslint-plugin-react-hooks \
175
+ $BASE_FOLDER/RKJSModules/vendor/react/eslint-plugin-react-hooks
176
+
177
# Move React Native version file
178
mv build/facebook-react-native/VERSION_NATIVE_FB ./compiled-rn/VERSION_NATIVE_FB
179