Update projectRoot in launchPackager.bat (#24115)

Summary:
`launchPackager.bat` starts metro server but does not pass projectRoot to it. So metro server starts in the wrong directory, It is because `startServerInNewWindow` pass `react-native` directory instead of `projectRoot` in the third argument of `spawn()` in `runAndroid.js`

Its working for people
See https://github.com/facebook/react-native/issues/23908#issuecomment-475889443

[Android] [Fixed] - projectRoot in launchPackager.bat
Pull Request resolved: https://github.com/facebook/react-native/pull/24115

Differential Revision: D14597101

Pulled By: cpojer

fbshipit-source-id: fb4155b72e35062cfb41fe1b3ecca0e2b4e849ce
This commit is contained in:
Mr. Anonymous 2019-03-25 07:19:41 -07:00 committed by Lorenzo Sciandra
parent 581dc3ed21
commit 775553b7da

View File

@ -6,6 +6,6 @@
@echo off
title Metro Bundler
call .packager.bat
node "%~dp0..\cli.js" --reactNativePath ../ start
node "%~dp0..\cli.js" --reactNativePath ../ --projectRoot ../../../ start
pause
exit