react-native/local-cli/util
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
..
__mocks__ Revert "Add folders to attempt to unblock sync" 2015-10-26 22:48:10 +00:00
Config.js Merge `rnpm config` with the `cli config`, step 1 2017-01-09 07:58:33 -08:00
assertRequiredOptions.js Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
copyAndReplace.js Rewrite 'react-native init' and 'react-native upgrade' without using Yeoman in preparation for templates support 2016-11-18 18:28:51 -08:00
findSymlinksPaths.js Add symlinks under node_modules as part of projectRoots 2017-01-31 03:43:39 -08:00
isPackagerRunning.js Fix comment typos 2016-06-03 02:43:57 -07:00
isValidPackageName.js Move `private-cli` commands to `local-cli` 2015-10-26 15:36:04 -07:00
log.js Add ability to silence packager logs to stdout 2016-03-15 12:10:31 -07:00
parseCommandLine.js Merge `rnpm cli` into react-native 2016-07-30 09:13:46 -07:00
walk.js Move `private-cli` commands to `local-cli` 2015-10-26 15:36:04 -07:00
yarn.js Fix a bug in determining if yarn is available 2016-12-05 06:13:33 -08:00