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" "url": "https://github.com/Alfresco/alfresco-ng2-components/issues"
}, },
"scripts": { "scripts": {
"build": "npm run tsc -- -p tsconfig.json", "build": "tsc -p tsconfig.json",
"develop": "npm run tsc:w -- -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/", "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"
}, },
"dependencies": { "dependencies": {
"commander": "^4.0.0", "commander": "^4.0.0",

View File

@@ -6,8 +6,8 @@ cd $DIR/../../lib/cli/
echo "====== Cli ======" echo "====== Cli ======"
echo "====== Build ======" echo "====== Build ======"
npm install npm install -g typescript
npm run build npm run dist
cd $DIR/../../ cd $DIR/../../
if [ -e "./lib/dist/cli" ]; if [ -e "./lib/dist/cli" ];