diff --git a/scripts/build/build-content-services.sh b/scripts/build/build-content-services.sh index 8cb1f2ff0b..90159d3588 100755 --- a/scripts/build/build-content-services.sh +++ b/scripts/build/build-content-services.sh @@ -7,6 +7,8 @@ cd $DIR/../.. echo "====== Content Services ======" echo "====== Build ======" +NODE_OPTIONS=--max_old_space_size=4096 + if [ "$CI" = "true" ]; then echo "Building content-services for production" nx build content-services --prod || exit 1 diff --git a/scripts/build/build-core.sh b/scripts/build/build-core.sh index 4572dd8ca3..78f9748a5d 100755 --- a/scripts/build/build-core.sh +++ b/scripts/build/build-core.sh @@ -7,6 +7,8 @@ cd $DIR/../.. echo "====== Core ======" echo "====== Build ======" +NODE_OPTIONS=--max_old_space_size=4096 + if [ "$CI" = "true" ]; then echo "Building core for production" nx build core --prod || exit 1 diff --git a/scripts/build/build-extensions.sh b/scripts/build/build-extensions.sh index 5bf8d70268..aea8dd5c20 100755 --- a/scripts/build/build-extensions.sh +++ b/scripts/build/build-extensions.sh @@ -4,6 +4,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd $DIR/../.. +NODE_OPTIONS=--max_old_space_size=4096 + if [ "$CI" = "true" ]; then echo "Building extensions for production" nx build extensions --prod || exit 1 diff --git a/scripts/build/build-insights.sh b/scripts/build/build-insights.sh index f0f742b8e2..b2c32a0677 100755 --- a/scripts/build/build-insights.sh +++ b/scripts/build/build-insights.sh @@ -7,6 +7,8 @@ cd $DIR/../.. echo "====== Insights ======" echo "====== Build ======" +NODE_OPTIONS=--max_old_space_size=4096 + if [ "$CI" = "true" ]; then echo "Building insights for production" nx build insights --prod || exit 1 diff --git a/scripts/build/build-process-services-cloud.sh b/scripts/build/build-process-services-cloud.sh index ed93ec1301..ab27077162 100755 --- a/scripts/build/build-process-services-cloud.sh +++ b/scripts/build/build-process-services-cloud.sh @@ -7,6 +7,8 @@ cd $DIR/../.. echo "====== Process Services Cloud ======" echo "====== Build ======" +NODE_OPTIONS=--max_old_space_size=4096 + if [ "$CI" = "true" ]; then echo "Building process-services-cloud for production" nx build process-services-cloud --prod || exit 1 diff --git a/scripts/build/build-process-services.sh b/scripts/build/build-process-services.sh index 6cc896ce9b..860d888121 100755 --- a/scripts/build/build-process-services.sh +++ b/scripts/build/build-process-services.sh @@ -7,6 +7,8 @@ cd $DIR/../.. echo "====== Process Services ======" echo "====== Build ======" +NODE_OPTIONS=--max_old_space_size=4096 + if [ "$CI" = "true" ]; then echo "Building process-services for production" nx build process-services --prod || exit 1 diff --git a/scripts/build/build-testing.sh b/scripts/build/build-testing.sh index 149ff8b312..5f64cb8d6a 100755 --- a/scripts/build/build-testing.sh +++ b/scripts/build/build-testing.sh @@ -7,6 +7,8 @@ cd $DIR/../.. echo "====== Testing ======" echo "====== Build ======" +NODE_OPTIONS=--max_old_space_size=4096 + if [ "$CI" = "true" ]; then echo "Building testing for production" nx build testing --prod || exit 1