react-native/local-cli/server
Joel Arvidsson 9fca769e76 Fix ignored --projectRoot/watchFolders arguments (#21165)
Summary:
Due to Kureev's cleanup in c4a66a89a2 some arguments are no longer properly passed to metro, but just the default values. This broke the `--projectRoot` and `--watchFolders` arguments used by storybook to change the bundle entrypoint.

This PR simply fixes the regression by assigning these values from argv instead of reading config defaults.

Related: the undocumented `REACT_NATIVE_APP_ROOT` env var is broken, not sure for how long, but I can fix it as a part of this PR or make a new one.
Pull Request resolved: https://github.com/facebook/react-native/pull/21165

Differential Revision: D9929642

Pulled By: hramos

fbshipit-source-id: 00485a0429bd4301de03e5cb455e928878c4ba8f
2018-09-18 19:03:04 -07:00
..
middleware Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
util Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
checkNodeVersion.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
runServer.js Fix ignored --projectRoot/watchFolders arguments (#21165) 2018-09-18 19:03:04 -07:00
server.js Pass the maxWorkers config param correctly to Metro 2018-09-18 08:19:38 -07:00