fix build cli

This commit is contained in:
Eugenio Romano
2020-05-18 19:20:12 +01:00
parent 6f67c43f8c
commit 531d1d7345
2 changed files with 5 additions and 7 deletions

View File

@@ -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",

View File

@@ -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" ];