react-native/local-cli/server
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
..
middleware JSC Heap Capture add other roots to visualization 2017-01-26 03:28:31 -08:00
util Prevent "/inspector/json" to be repeatedly output to the console 2017-01-30 11:13:41 -08:00
checkNodeVersion.js Use a separate babel config for the local-cli and the packager 2016-05-21 06:58:26 -07:00
formatBanner.js fix banner for old node version 2016-06-22 03:43:33 -07:00
runServer.js The jscProfileMiddleware require some FB only modules, so moving to internal 2017-01-25 10:43:54 -08:00
server.js Add symlinks under node_modules as part of projectRoots 2017-01-31 03:43:39 -08:00