react-native
react-native copied to clipboard
[Codegen 92] move getCommandOptions to parsers-commons
Summary
Part of Codegen Umbrella Issue: #34872
[Codegen 92] The getCommandOptions function in parsers/typescript/components/options.js and parsers/flow/components/options.js is the same. move it in parser-commons and use it in the original files. If the file two options.js files are empty, delete them.
Changelog
[Internal][Changed] - Move getCommandOptions from both parsers components options file
Test Plan
yarn jest react-native-codegen
| Platform | Engine | Arch | Size (bytes) | Diff |
|---|---|---|---|---|
| android | hermes | arm64-v8a | 8,516,930 | -211 |
| android | hermes | armeabi-v7a | 7,832,996 | -198 |
| android | hermes | x86 | 8,997,196 | -211 |
| android | hermes | x86_64 | 8,852,303 | -210 |
| android | jsc | arm64-v8a | 9,141,112 | -56 |
| android | jsc | armeabi-v7a | 8,332,996 | -66 |
| android | jsc | x86 | 9,195,811 | -47 |
| android | jsc | x86_64 | 9,453,760 | -62 |
Base commit: ccbbcaab9cf3e6148e72f94fe63f77ce5f92416c Branch: main
Thanks for contributing to the umbrella project to Improve Codegen!
@ryancat has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
/rebase
/rebase