Add build script to react-native-babel-preset
Summary:
When metro-react-native-babel-preset was part of Metro, Metro would take care of building flow-typed src before publishing. React Native doesn't do that.
This diff adds build script, prepare and postpublish hooks to react-native-babel-preset. The script is effectively is a copy-paste from react-native-codegen, we'll deduplicate them in the future.
Changelog: [Internal] - Add build script to react-native-babel-preset
Differential Revision: D47006597
This pull request was exported from Phabricator. Differential Revision: D47006597
This pull request was exported from Phabricator. Differential Revision: D47006597
| Platform | Engine | Arch | Size (bytes) | Diff |
|---|---|---|---|---|
| android | hermes | arm64-v8a | 9,001,457 | -5 |
| android | hermes | armeabi-v7a | 8,255,371 | -4 |
| android | hermes | x86 | 9,510,503 | -3 |
| android | hermes | x86_64 | 9,356,367 | -2 |
| android | jsc | arm64-v8a | 9,614,528 | -1 |
| android | jsc | armeabi-v7a | 8,741,023 | -4 |
| android | jsc | x86 | 9,701,380 | -4 |
| android | jsc | x86_64 | 9,947,942 | -1 |
Base commit: 0519c11acd0c347db378bbc9238c7dabfd38f6fa Branch: main
This pull request was exported from Phabricator. Differential Revision: D47006597
| Warnings | |
|---|---|
| :warning: | :lock: package.json - Changes were made to package.json. This will require a manual import by a Facebook employee. |
Generated by :no_entry_sign: dangerJS against 37e7a23f98680cace4c564f57bae37674bf0583d
Closing as abandoned internally