diff --git a/scripts/build-all.sh b/scripts/build-all.sh index fbd981f..618d3f3 100644 --- a/scripts/build-all.sh +++ b/scripts/build-all.sh @@ -10,6 +10,9 @@ npm run pre-build rm ./dist-zip/uw-amo-source.zip mv -f ./dist-zip/*.zip ./build/old +# lets force raise ram limit, but the improper way +# export NODE_OPTIONS=--max_old_space_size=4096 + # build the version for each browser and create a zip afterwards # step 1: define build functions #function buildFF { diff --git a/scripts/build-and-deploy.sh b/scripts/build-and-deploy.sh index 75377e8..d5f2c99 100755 --- a/scripts/build-and-deploy.sh +++ b/scripts/build-and-deploy.sh @@ -38,7 +38,7 @@ if [ ! -z "$GIT_COMMIT" ] ; then fi # let's raise RAM limit for npm command globally -alias npm='node --max_old_space_size=2048 /usr/bin/npm' +NODE_OPTIONS=--max_old_space_size=4096 npm ci