mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41534 This diff deletes calls to `node` from `generate-artifacts-executor.js`, and replaces them with normal `requires` of JS sources. This is a squashed version of (D51116291 ... D51158799). The following sequence of changes has been made: 1. Require and directly invoke `generate-specs-cli-executor` instead of using `node`. 2. Use `codegen-util` to get `RNCodegen` in `generate-provider-cli.js`. 3. Use `RNCodegen` directly instead of using `node`. 4. Move all implementation code from `combine-js-to-schema-cli.js` to `combine-js-to-schema.js`. 5. Decouple building the codegen from getting the codegen CLI. 6. Use `combine-js-to-schema` directly instead of using `node`. 7. Delete unit test that was testing node invocation. 8. Delete `nodeBinary` argument form `generate-codegen-artifacts.js` and its callsites. Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D51158845 fbshipit-source-id: 5e039801c8045a42349f7cb6ca28e2df24634589