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