fix(compiler-cli): make ngc to work on Windows (#10919)

Fixes #10792
This commit is contained in:
Marc Laval
2016-08-27 00:41:50 +02:00
committed by Victor Berchet
parent 4a44832114
commit 6c77d7182a
2 changed files with 11 additions and 6 deletions

View File

@ -10,7 +10,11 @@ if [ $# -eq 0 ]
echo
else
cd `dirname $0`
export NODE_PATH=$NODE_PATH:$(pwd)/dist/all:$(pwd)/dist/tools
if [ -z ${NODE_PATH+x} ]; then
export NODE_PATH=$(pwd)/dist/all:$(pwd)/dist/tools
else
export NODE_PATH=$NODE_PATH:$(pwd)/dist/all/:$(pwd)/dist/tools/
fi
$(npm bin)/tsc -p tools
node dist/tools/tsc-watch/ $1 watch
fi