From 5e7e43f18ac792e6bb681b6e7303fe77e71392d8 Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Mon, 26 Jun 2017 16:26:57 +0100 Subject: [PATCH] install rimraf globally --- scripts/npm-prepublish.sh | 3 ++- scripts/npm-publish.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/npm-prepublish.sh b/scripts/npm-prepublish.sh index 03befe5ef5..e88bb4c84d 100755 --- a/scripts/npm-prepublish.sh +++ b/scripts/npm-prepublish.sh @@ -44,6 +44,8 @@ while [[ $1 == -* ]]; do esac done +npm install rimraf -g + for PACKAGE in \ ng2-alfresco-core \ ng2-alfresco-datatable \ @@ -67,7 +69,6 @@ do cd ${DESTDIR} echo "====== INSTALL AND CLEAN ${PACKAGE} ===== " - npm install rimraf npm run clean npm install diff --git a/scripts/npm-publish.sh b/scripts/npm-publish.sh index 934ce92876..707cd7df66 100755 --- a/scripts/npm-publish.sh +++ b/scripts/npm-publish.sh @@ -94,6 +94,8 @@ while [[ $1 == -* ]]; do esac done +npm install rimraf -g + for PACKAGE in \ ng2-alfresco-core \ ng2-alfresco-datatable \ @@ -117,7 +119,6 @@ do cd ${DESTDIR} echo "====== INSTALL AND CLEAN ${PACKAGE} ===== " - npm install rimraf npm run clean if $EXEC_CHANGE_REGISTRY == true; then