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