CLI: Assign project root concat back to project roots.
Summary:
With the latest version of React Native I noted my setup with React Native Storybook stopped working because it stopped searching all the right project roots. I found that it had to do with the change here bce6ece5f6
**Test plan (required)**
Run the CLI with a project root other then the root directory and ensure that it displays both the specified project root and the actual root directory.
Closes https://github.com/facebook/react-native/pull/12659
Differential Revision: D4658137
Pulled By: ericvicenti
fbshipit-source-id: 97d3784348f92394df111f189c6b00dd0165b75e
This commit is contained in:
parent
7d06c35d1c
commit
4471c32b08
|
@ -17,7 +17,7 @@ const runServer = require('./runServer');
|
|||
* Starts the React Native Packager Server.
|
||||
*/
|
||||
function server(argv, config, args) {
|
||||
args.projectRoots.concat(args.root);
|
||||
args.projectRoots = args.projectRoots.concat(args.root);
|
||||
|
||||
console.log(formatBanner(
|
||||
'Running packager on port ' + args.port + '.\n\n' +
|
||||
|
|
Loading…
Reference in New Issue