diff --git a/lib/cli/package.json b/lib/cli/package.json index 20ac0c2447..110db394c2 100644 --- a/lib/cli/package.json +++ b/lib/cli/package.json @@ -15,11 +15,9 @@ "url": "https://github.com/Alfresco/alfresco-ng2-components/issues" }, "scripts": { - "build": "npm run tsc -- -p tsconfig.json", - "develop": "npm run tsc:w -- -p tsconfig.json", - "dist": "rm -rf ./dist/ && npm run build && cp -R ./bin ./dist/ && cp -R ./templates ./dist && cp ./package.json ./dist/", - "tsc": "./node_modules/typescript/bin/tsc", - "tsc:w": "./node_modules/typescript/bin/tsc -w" + "build": "tsc -p tsconfig.json", + "develop": "tsc -p tsconfig.json --watch", + "dist": "rm -rf ./dist/ && npm run build && cp -R ./bin ./dist/ && cp -R ./templates ./dist && cp ./package.json ./dist/" }, "dependencies": { "commander": "^4.0.0", diff --git a/scripts/build/build-cli.sh b/scripts/build/build-cli.sh index b867238a8c..994552f3cf 100755 --- a/scripts/build/build-cli.sh +++ b/scripts/build/build-cli.sh @@ -6,8 +6,8 @@ cd $DIR/../../lib/cli/ echo "====== Cli ======" echo "====== Build ======" -npm install -npm run build +npm install -g typescript +npm run dist cd $DIR/../../ if [ -e "./lib/dist/cli" ];