From 1deaa22570894fdff6e0271cfc03824bd1c64314 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/npm-publish.sh b/scripts/npm-publish.sh index c90aecca61..71bb77b311 100755 --- a/scripts/npm-publish.sh +++ b/scripts/npm-publish.sh @@ -137,6 +137,7 @@ 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