Skip to content
Browse files

Remove unnecessary flag when running JS server (#25517)

This removes the `--projectRoot` flag in `launchPackager.bat` as it was removed,  fixing [this bundler not opening issue on cli repo](react-native-community/cli#484) when `yarn react-native run-android` is run.

This is Windows related only so should be only tested on Windows.

## Changelog

[Internal] [Fixed] - Fixed Metro Bundler not opening when running `yarn react-native run-android`
Pull Request resolved: #25517

Test Plan:
1. Create a new repo using `react-native init`
2. Edit the `launchPackager.bat` file
3. Run `yarn react-native run-android`

Differential Revision: D16162108

Pulled By: cpojer

fbshipit-source-id: c12d9853ad49f00d56b9a8254a5b2c40a358cb2e
  • Loading branch information...
thecodrr authored and grabbou committed Jul 9, 2019
1 parent 7a0a113 commit 5a4fac77fbe3f45f966b5f784cfb828a1436c082
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/launchPackager.bat
@@ -6,6 +6,7 @@
@echo off
title Metro Bundler
call .packager.bat
node "%~dp0..\cli.js" --projectRoot ../../../ start
cd ../../../
node "%~dp0..\cli.js" start

0 comments on commit 5a4fac7

Please sign in to comment.
You can’t perform that action at this time.