[ez] Add noformat etc headers into some files
These are only needed internally so I'm opting to just do it in the commit artifacts job instead of amending the build config. ghstack-source-id: 6a5382b0287d679f4515d79b140ab8248ce90c6b Pull Request resolved: https://github.com/facebook/react/pull/30775
Lauren Tan committed
Aug 21, 2024 at 11:41 UTC
1d989965a6aac11d71ecf28030796f5475a86642
1 file changed
+5
.github/workflows/runtime_commit_artifacts.yml
+5
@@ -85,6 +85,11 @@ jobs:
85
sed -i -e 's/ @license React*//' \
86
build/oss-experimental/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js \
87
build/oss-experimental/react-refresh/cjs/react-refresh-babel.development.js
88
+ - name: Insert @headers into eslint plugin and react-refresh
89
+ run: |
90
+ sed -i -e 's/ LICENSE file in the root directory of this source tree./ LICENSE file in the root directory of this source tree.\n * \n * @noformat\n * @nolint\n * @lightSyntaxTransform\n * @preventMunge\n * @oncall react_core/' \
91
+ build/oss-experimental/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js \
92
+ build/oss-experimental/react-refresh/cjs/react-refresh-babel.development.js
93
- name: Move relevant files for React in www into compiled
94
run: |
95
# Move the facebook-www folder into compiled