From e81ea617c419b97b9e8ea771d593d6d012d3cc99 Mon Sep 17 00:00:00 2001 From: Mario Romano Date: Wed, 6 Jul 2016 10:40:37 +0100 Subject: [PATCH] update scripts --- scripts/npm-clean.sh | 2 ++ scripts/npm-publish.sh | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/npm-clean.sh b/scripts/npm-clean.sh index 463757af0f..7bfe5ff60e 100755 --- a/scripts/npm-clean.sh +++ b/scripts/npm-clean.sh @@ -18,3 +18,5 @@ done cd "$DIR/../demo-shell-ng2" npm run clean + +cd ${DIR} \ No newline at end of file diff --git a/scripts/npm-publish.sh b/scripts/npm-publish.sh index 5593809e17..42a263a6b2 100755 --- a/scripts/npm-publish.sh +++ b/scripts/npm-publish.sh @@ -2,6 +2,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +"$DIR/npm-clean.sh" + for PACKAGE in \ ng2-alfresco-core \ ng2-alfresco-datatable \ @@ -13,5 +15,8 @@ for PACKAGE in \ do DESTDIR="$DIR/../ng2-components/${PACKAGE}" echo "====== PUBLISHING: ${DESTDIR} =====" - npm publish ${DESTDIR} + cd ${DESTDIR} + npm install + npm publish + cd ${DIR} done