From 8ee14f99a17ba4c66396815b199bbe353e9f60cb Mon Sep 17 00:00:00 2001 From: Enzo Rivello Date: Wed, 23 Aug 2017 11:09:07 +0100 Subject: [PATCH] removing node_modules after every publish will reduce the load on the host disk space. already tested on my travis project (#2232) --- scripts/npm-publish.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/npm-publish.sh b/scripts/npm-publish.sh index c90aecca61..57e3cb5d7b 100755 --- a/scripts/npm-publish.sh +++ b/scripts/npm-publish.sh @@ -137,7 +137,8 @@ do echo "====== PUBLISHING: ${DESTDIR} ===== npm publish ${OPTIONS}" npm publish ${OPTIONS} || exit 1 - + rm -rf node_modules + if $EXEC_CHANGE_REGISTRY == true; then npm run rimraf .npmrc fi