[DiffTrain] Strip @license from files (#25821)
We need to remove this for some internal tests. This was previously in our upgrade script so adding it back here for parity. Test plan: files were updated correctly [[1]](https://github.com/facebook/react/commit/1704bbb8268345bf7aa405101313b3639e03e221#diff-80b968e05ce2ceeff6e17c938dc722aff2c1c660f8ef402e6664bc5b2cafa5fbL2) [[2]](https://github.com/facebook/react/commit/1704bbb8268345bf7aa405101313b3639e03e221#diff-6ecd07a61c8e0e28793dace3f9f62751e4808de9c2965aa1ddeb0157f3c9b4ecL2) Co-authored-by: Jan Kassens <jkassens@meta.com>
lauren committed
Dec 6, 2022 at 09:01 UTC
7c39922891bf8e0ce179a78a373a61b3afe3c1c7
1 file changed
+5
.github/workflows/commit_artifacts.yml
+5
@@ -99,6 +99,11 @@ jobs:
99
} else {
100
process.exitCode = 1;
101
}
102
+ - name: Strip @license from eslint plugin and react-refresh
103
+ run: |
104
+ sed -i -e 's/ @license React*//' \
105
+ build/oss-stable/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js \
106
+ build/oss-stable/react-refresh/cjs/react-refresh-babel.development.js
107
- name: Move relevant files into compiled
108
run: |
109
mkdir -p ./compiled