File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
THIS_DIR=$( cd -P " $( dirname " $( readlink " ${BASH_SOURCE[0]} " || echo " ${BASH_SOURCE[0]} " ) " ) " && pwd)
4
4
5
5
source " $THIS_DIR /.packager.env"
6
- cd $PROJECT_ROOT
7
- $REACT_NATIVE_PATH /cli.js start --port $RCT_METRO_PORT
6
+ cd " $PROJECT_ROOT "
7
+ " $REACT_NATIVE_PATH /cli.js" start --port $RCT_METRO_PORT
8
8
9
9
if [[ -z " $CI " ]]; then
10
10
echo " Process terminated. Press <enter> to close the window"
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function startServerInNewWindow(
27
27
const packagerEnvFilename = isWindows ? '.packager.bat' : '.packager.env' ;
28
28
const packagerEnvFileExportContent = isWindows
29
29
? `set RCT_METRO_PORT=${ port } \nset PROJECT_ROOT=${ projectRoot } \nset REACT_NATIVE_PATH=${ reactNativePath } `
30
- : `export RCT_METRO_PORT=${ port } \nexport PROJECT_ROOT=${ projectRoot } \nexport REACT_NATIVE_PATH=${ reactNativePath } ` ;
30
+ : `export RCT_METRO_PORT=${ port } \nexport PROJECT_ROOT=" ${ projectRoot } " \nexport REACT_NATIVE_PATH=" ${ reactNativePath } " ` ;
31
31
const nodeModulesPath = resolveNodeModuleDir ( projectRoot , '.bin' ) ;
32
32
const cliPluginMetroPath = path . join (
33
33
path . dirname (
You can’t perform that action at this time.
0 commit comments