react-native/local-cli
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__ Fix lint in local-cli 2016-11-14 11:13:42 -08:00
bundle Use a project's custom platforms when creating a production bundle 2017-01-26 16:13:49 -08:00
core Add symlinks under node_modules as part of projectRoots 2017-01-31 03:43:39 -08:00
dependencies BREAKING: expose `getTransformOptions` directly in configuration 2016-11-28 07:28:33 -08:00
generator Fix instructions in 'react-native init' 2016-12-12 09:13:30 -08:00
init CLI: Show npm / yarn output during 'react-native-init' when installing React and Jest 2016-12-06 13:58:31 -08:00
install Further RNPM integration 2016-08-22 08:58:37 -07:00
library Fix lint in local-cli 2016-11-21 10:28:34 -08:00
link Fully support new import system on iOS 2017-01-12 14:58:28 -08:00
logAndroid Use native Promise in local-cli 2016-11-21 10:28:34 -08:00
logIOS Use native Promise in local-cli 2016-11-21 10:28:34 -08:00
runAndroid Feat/run android specify activity 2017-01-09 04:13:32 -08:00
runIOS Add no-packager option to run-android and run-ios commands 2017-01-09 03:28:29 -08:00
server Add symlinks under node_modules as part of projectRoots 2017-01-31 03:43:39 -08:00
templates/HelloWorld Remove unused imports 2017-01-26 14:13:30 -08:00
upgrade New upgrading process, relying on Git 2016-11-28 08:28:35 -08:00
util Add symlinks under node_modules as part of projectRoots 2017-01-31 03:43:39 -08:00
.eslintrc Support copy to clipboard on Windows 2017-01-19 16:28:39 -08:00
cli.js packager: centralize babelRegisterOnly callsites 2017-01-06 06:13:54 -08:00
cliEntry.js Merge `rnpm config` with the `cli config`, step 1 2017-01-09 07:58:33 -08:00
commands.js Merge `rnpm config` with the `cli config`, step 1 2017-01-09 07:58:33 -08:00
setup_env.bat Fix comments on .bat file 2015-10-28 21:36:07 -04:00
setup_env.sh Change ulimit to 2048 for non root Mac users 2016-02-06 11:45:37 -08:00
wrong-react-native.js Fix usage of react-native cli inside package.json scripts 2016-04-26 15:42:35 -07:00