From 70ad5943fa70471a0db2bc9cb04742fdaa345570 Mon Sep 17 00:00:00 2001 From: Tadeu Zagallo Date: Wed, 11 Nov 2015 04:36:30 -0800 Subject: [PATCH] Fix launchCommand Summary: public Fixes #4055 Babel is failing to find the plugins when running scripts with the full path, cd into the folder before starting the packager as a workaround. Reviewed By: vjeux Differential Revision: D2638529 fb-gh-sync-id: b57151d3091d56a2c070692fb6296184a8fc62de --- launchPackager.command | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/launchPackager.command b/launchPackager.command index ec0f417a..0d08a298 100755 --- a/launchPackager.command +++ b/launchPackager.command @@ -12,7 +12,9 @@ echo -en "\033]0;React Packager\a" clear THIS_DIR=$(dirname "$0") -$THIS_DIR/packager.sh +pushd $THIS_DIR +source packager.sh +popd echo "Process terminated. Press to close the window" read