Skip to content

Commit

Permalink
Remove unnecessary flag when running JS server (#25517)
Browse files Browse the repository at this point in the history
Summary:
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 facebook-github-bot committed Jul 9, 2019
1 parent 5b448ec commit a162554
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/launchPackager.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@echo off
title Metro Bundler
call .packager.bat
node "%~dp0..\cli.js" --projectRoot ../../../ start
cd ../../../
node "%~dp0..\cli.js" start
pause
exit

0 comments on commit a162554

Please sign in to comment.