aboutsummaryrefslogtreecommitdiff
path: root/test/release/rollup-es.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/release/rollup-es.sh')
-rwxr-xr-xtest/release/rollup-es.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/release/rollup-es.sh b/test/release/rollup-es.sh
index b38661bf..8f3a243c 100755
--- a/test/release/rollup-es.sh
+++ b/test/release/rollup-es.sh
@@ -14,6 +14,13 @@ minify_in_situ() {
uglify-js $ARGS
}
+npm_install() {
+ PKG="$1"
+ while !(npm install $PKG); do
+ while !(npm cache clean --force); do echo "'npm cache clean' failed - retrying..."; done
+ done
+}
+
rm -rf tmp/rollup \
&& git clone https://github.com/rollup/rollup.git tmp/rollup \
&& cd tmp/rollup \
@@ -77,7 +84,7 @@ minify_in_situ "bin" \
&& minify_in_situ "browser" \
&& minify_in_situ "src" \
&& rm -rf node_modules \
-&& npm ci \
+&& npm_install \
&& rm -rf dist \
&& npm run build \
&& minify_in_situ "dist" \