Skip to content

Commit 69ca0d2

Browse files
committed
[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.
1 parent 4c4a57c commit 69ca0d2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/runtime_commit_artifacts.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ jobs:
132132
mkdir ./compiled/facebook-www/__test_utils__
133133
mv build/__test_utils__/ReactAllWarnings.js ./compiled/facebook-www/__test_utils__/ReactAllWarnings.js
134134
135-
# Move eslint-plugin-react-hooks into eslint-plugin-react-hooks
135+
# Copy eslint-plugin-react-hooks
136136
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 \
138138
./compiled/eslint-plugin-react-hooks/index.js
139139
140140
# Move unstable_server-external-runtime.js into facebook-www
@@ -167,6 +167,13 @@ jobs:
167167
rm $RENDERER_FOLDER/ReactFabric-{dev,prod,profiling}.js
168168
rm $RENDERER_FOLDER/ReactNativeRenderer-{dev,prod,profiling}.js
169169
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+
170177
# Move React Native version file
171178
mv build/facebook-react-native/VERSION_NATIVE_FB ./compiled-rn/VERSION_NATIVE_FB
172179

0 commit comments

Comments
 (0)