react-native/local-cli/core
Harshil Shah bce6ece5f6 Add symlinks under node_modules as part of projectRoots
Summary:
Support symlinks under `node_modules` for all local-cli commands. PR https://github.com/facebook/react-native/pull/9009 only adds symlink support to the packager.

But other cli commands like `react-native bundle` creates its own instance of packager that doesn't have symlinks as part of its project roots, which results in the bundler breaking since it cannot find modules that you have symlinked.

This change ensures all `local-cli` commands add symlinks to its project roots.

Test plan (required)

1.  Create a symlink in node_modules (for instance use npm/yarn link)
2. Run `react-native bundle`.
Closes https://github.com/facebook/react-native/pull/11810

Differential Revision: D4487741

fbshipit-source-id: 87fe44194134d086dca4eaca99ee5742d6eadb69
2017-01-31 03:43:39 -08:00
..
__fixtures__ Update React Native minimum OS version to iOS8 2016-09-01 19:43:47 -07:00
__tests__ Merge `rnpm config` with the `cli config`, step 1 2017-01-09 07:58:33 -08:00
android Merge `rnpm config` with the `cli config`, step 1 2017-01-09 07:58:33 -08:00
ios Merge `rnpm config` with the `cli config`, step 1 2017-01-09 07:58:33 -08:00
windows Merge `rnpm config` with the `cli config`, step 1 2017-01-09 07:58:33 -08:00
default.config.js Add symlinks under node_modules as part of projectRoots 2017-01-31 03:43:39 -08:00
findAssets.js Merge `rnpm config` with the `cli config`, step 1 2017-01-09 07:58:33 -08:00
findPlugins.js Fix lint in local-cli 2016-11-14 11:13:42 -08:00
index.js Allow project-specific config for RN CLI using providesModuleNodeModules 2017-01-12 21:13:36 -08:00
makeCommand.js Fix lint in local-cli 2016-11-14 11:13:42 -08:00
wrapCommands.js Merge `rnpm config` with the `cli config`, step 1 2017-01-09 07:58:33 -08:00