mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
Remove @providesModule remnants (#28720)
Remove @providesModule remnants Removes `@providesModule` from the generated RN modules and CI validation that no `@providesModule` is added which should no longer be needed as this has been the case for years now.
This commit is contained in:
parent
cb6dc7a6a0
commit
4e8121a75e
|
|
@ -84,7 +84,6 @@ jobs:
|
|||
- run: node ./scripts/prettier/index
|
||||
- run: node ./scripts/tasks/eslint
|
||||
- run: ./scripts/circleci/check_license.sh
|
||||
- run: ./scripts/circleci/check_modules.sh
|
||||
- run: ./scripts/circleci/test_print_warnings.sh
|
||||
|
||||
yarn_flow:
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# Make sure we don't introduce accidental @providesModule annotations.
|
||||
EXPECTED='scripts/rollup/wrappers.js'
|
||||
ACTUAL=$(git grep -l @providesModule -- './*.js' ':!scripts/rollup/shims/*.js')
|
||||
|
||||
# Colors
|
||||
red=$'\e[1;31m'
|
||||
end=$'\e[0m'
|
||||
|
||||
if [ "$EXPECTED" != "$ACTUAL" ]; then
|
||||
printf "%s\n" "${red}ERROR: @providesModule crept into some new files?${end}"
|
||||
diff -u <(echo "$EXPECTED") <(echo "$ACTUAL") || true
|
||||
exit 1
|
||||
fi
|
||||
|
|
@ -406,7 +406,6 @@ ${license}
|
|||
*
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @providesModule ${globalName}-dev
|
||||
* @preventMunge
|
||||
* ${getSigningToken()}
|
||||
*/
|
||||
|
|
@ -421,7 +420,6 @@ ${license}
|
|||
*
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @providesModule ${globalName}-prod
|
||||
* @preventMunge
|
||||
* ${getSigningToken()}
|
||||
*/
|
||||
|
|
@ -436,7 +434,6 @@ ${license}
|
|||
*
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @providesModule ${globalName}-profiling
|
||||
* @preventMunge
|
||||
* ${getSigningToken()}
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user