react-native/local-cli
Rafael Oleza 33ba5e8fa2 Stop using projectRoots from RN cli
Summary:
This diff tries to fix an issue that started appearing in RN master when the latest metro version is used (more info here: c5ce762697 (commitcomment-29443117)).

The problem is that RN is still reading `projectRoots` from the Metro config and trying to call `concat()` on them. Latest Metro sets the default `projectRoots` to null, so this fails.

Also, a couple other things have been done:

* Make sure that the `projectRoot` and `watchFolder` objects from args are passed to Metro (so they contain the overrides from the CLI arguments).
* Add a `--projectRoot` CLI arg, replacing the `--root` one (this is not actually needed, since it does the same as `--watchFolders`

Differential Revision: D8567229

fbshipit-source-id: 3b76fd8e23d201a4097e9dfba3a512d64f348cb0
2018-06-22 08:17:57 -07:00
..
__mocks__ metro-memory-fs: enforce explicit cwd() 2018-05-25 08:04:34 -07:00
bundle Flow strictify possible files in RN core 2018-06-20 00:47:21 -07:00
core Flow strictify possible files in RN core 2018-06-20 00:47:21 -07:00
dependencies Replace projectRoots with projectRoot + watchRoots 2018-06-19 13:47:32 -07:00
eject Prettier RN local-cli 2018-05-11 13:00:50 -07:00
generator Prettier RN local-cli 2018-05-11 13:00:50 -07:00
info cli: upgrade envinfo for new features in `react-native info` 2018-05-29 17:30:16 -07:00
init Fix iOS e2e tests: bump react-native-babel-preset to ^5 (#19625) 2018-06-10 17:08:56 -07:00
install Prettier RN local-cli 2018-05-11 13:00:50 -07:00
library Prettier RN local-cli 2018-05-11 13:00:50 -07:00
link use android build-tools 26.0.2 and set compileSdk to 26 (#19662) 2018-06-13 10:39:55 -07:00
logAndroid Prettier RN local-cli 2018-05-11 13:00:50 -07:00
logIOS Prettier RN local-cli 2018-05-11 13:00:50 -07:00
runAndroid Flow strictify possible files in RN core 2018-06-20 00:47:21 -07:00
runIOS Flow strictify possible files in RN core 2018-06-20 00:47:21 -07:00
server Stop using projectRoots from RN cli 2018-06-22 08:17:57 -07:00
templates Deploy Flow v0.75.0 to fbsource 2018-06-21 20:01:40 -07:00
upgrade Prettier RN local-cli 2018-05-11 13:00:50 -07:00
util Flow strictify possible files in RN core 2018-06-20 00:47:21 -07:00
.npmignore npmignore: ignore tests and fixtures 2018-02-27 08:42:14 -08:00
cli.js Prettier RN local-cli 2018-05-11 13:00:50 -07:00
cliEntry.js Prettier RN local-cli 2018-05-11 13:00:50 -07:00
commands.js Prettier RN local-cli 2018-05-11 13:00:50 -07:00
setup_env.bat Update license headers for MIT license 2018-02-16 18:31:53 -08:00
setup_env.sh Update license headers for MIT license 2018-02-16 18:31:53 -08:00
wrong-react-native.js Prettier files with shebang 2018-05-11 13:52:30 -07:00