mirror of
https://github.com/facebook/react-native.git
synced 2024-11-22 06:29:46 +00:00
b38f80aeb6
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44339 We require the wrapper code for in repository calls to these packages directly from node (i.e. using CommonJS). This wrapper code typically sits at the entrypoint of the build packages (i.e. `index.js`). NOTE: This unblocks an issue preventing me from landing further work on the `helloworld` cli replacing the community template. ## Problem: The [flow-api-translator](https://www.npmjs.com/package/flow-api-translator) library doesn't allow CommonJS `module.exports` when generating TypeScript Type Defintions. ## Change 1. At the built time, this strips out our wrapper code and sets up the dist/ folder appropriately for npm distribution. 2. Updated the `package.json` files to consistently share Flow types Changelog: [Internal] refactor build packages output to remove wrapper. NOTE: Added better error messages when users deviated from the current pattern: {F1501571608} Reviewed By: huntie Differential Revision: D56762162 fbshipit-source-id: f110b31e4ad780998dbc81a2482891ac8d8c6458 |
||
---|---|---|
.. | ||
babel | ||
babel-register.js | ||
build.js | ||
clean.js | ||
config.js |