mirror of
https://github.com/facebook/react.git
synced 2026-02-26 05:05:06 +00:00
* Consolidate build process with GCC * Record sizes * Refactor header and footer wrapping It is easier to understand if we just explicitly type them out.
16 lines
477 B
Bash
Executable File
16 lines
477 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Make sure we don't introduce accidental @providesModule annotations.
|
|
EXPECTED='packages/react-cs-renderer/src/ReactNativeCSTypes.js
|
|
packages/react-native-renderer/src/ReactNativeTypes.js
|
|
scripts/rollup/wrappers.js'
|
|
ACTUAL=$(git grep -l @providesModule -- './*.js' ':!scripts/rollup/shims/*.js')
|
|
|
|
if [ "$EXPECTED" != "$ACTUAL" ]; then
|
|
echo "@providesModule crept into some new files?"
|
|
diff -u <(echo "$EXPECTED") <(echo "$ACTUAL") || true
|
|
exit 1
|
|
fi
|