diff --git a/scripts/build/build-content-services.sh b/scripts/build/build-content-services.sh index a583100a09..d66df41b73 100755 --- a/scripts/build/build-content-services.sh +++ b/scripts/build/build-content-services.sh @@ -9,10 +9,10 @@ echo "====== Build ======" if [ "$CI" = "true" ]; then echo "Building content-services for production" - NODE_OPTIONS="--max-old-space-size=8192" nx build content-services --configuration production || exit 1 + NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx build content-services --configuration production || exit 1 else echo "Building content-services for development" - NODE_OPTIONS="--max-old-space-size=8192" nx build content-services || exit 1 + NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx build content-services || exit 1 fi echo "====== Copy i18n ======" diff --git a/scripts/build/build-core.sh b/scripts/build/build-core.sh index 0f6003fc1e..8e250b6194 100755 --- a/scripts/build/build-core.sh +++ b/scripts/build/build-core.sh @@ -9,10 +9,10 @@ echo "====== Build ======" if [ "$CI" = "true" ]; then echo "Building core for production" - NODE_OPTIONS="--max-old-space-size=8192" nx build core --configuration production || exit 1 + NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx build core --configuration production || exit 1 else echo "Building core for development" - NODE_OPTIONS="--max-old-space-size=8192" nx build core || exit 1 + NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx build core || exit 1 fi echo "====== Bundle styles ======" diff --git a/scripts/build/build-extensions.sh b/scripts/build/build-extensions.sh index ee1b9e8eb9..c026d09e0e 100755 --- a/scripts/build/build-extensions.sh +++ b/scripts/build/build-extensions.sh @@ -7,8 +7,8 @@ cd $DIR/../.. if [ "$CI" = "true" ]; then echo "Building extensions for production" - NODE_OPTIONS="--max-old-space-size=8192" nx build extensions --configuration production || exit 1 + NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx build extensions --configuration production || exit 1 else echo "Building extensions for development" - NODE_OPTIONS="--max-old-space-size=8192" nx build extensions || exit 1 + NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx build extensions || exit 1 fi diff --git a/scripts/build/build-insights.sh b/scripts/build/build-insights.sh index ce267e76c9..0b5c5109c0 100755 --- a/scripts/build/build-insights.sh +++ b/scripts/build/build-insights.sh @@ -9,10 +9,10 @@ echo "====== Build ======" if [ "$CI" = "true" ]; then echo "Building insights for production" - NODE_OPTIONS="--max-old-space-size=8192" nx build insights --configuration production || exit 1 + NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx build insights --configuration production || exit 1 else echo "Building insights for development" - NODE_OPTIONS="--max-old-space-size=8192" nx build insights || exit 1 + NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx build insights || exit 1 fi echo "====== Copy i18n ======" diff --git a/scripts/build/build-process-services-cloud.sh b/scripts/build/build-process-services-cloud.sh index 4789a61ad9..978e6381b4 100755 --- a/scripts/build/build-process-services-cloud.sh +++ b/scripts/build/build-process-services-cloud.sh @@ -9,10 +9,10 @@ echo "====== Build ======" if [ "$CI" = "true" ]; then echo "Building process-services-cloud for production" - NODE_OPTIONS="--max-old-space-size=8192" nx build process-services-cloud --configuration production || exit 1 + NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx build process-services-cloud --configuration production || exit 1 else echo "Building process-services-cloud for development" - NODE_OPTIONS="--max-old-space-size=8192" nx build process-services-cloud || exit 1 + NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx build process-services-cloud || exit 1 fi echo "====== Copy i18n ======" diff --git a/scripts/build/build-process-services.sh b/scripts/build/build-process-services.sh index b27cb2c123..ac2019bfbd 100755 --- a/scripts/build/build-process-services.sh +++ b/scripts/build/build-process-services.sh @@ -9,10 +9,10 @@ echo "====== Build ======" if [ "$CI" = "true" ]; then echo "Building process-services for production" - NODE_OPTIONS="--max-old-space-size=8192" nx build process-services --configuration production || exit 1 + NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx build process-services --configuration production || exit 1 else echo "Building process-services for development" - NODE_OPTIONS="--max-old-space-size=8192" nx build process-services || exit 1 + NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx build process-services || exit 1 fi echo "====== Copy i18n ======" diff --git a/scripts/build/build-testing.sh b/scripts/build/build-testing.sh index 3711f7b9bc..f3530e868f 100755 --- a/scripts/build/build-testing.sh +++ b/scripts/build/build-testing.sh @@ -10,10 +10,10 @@ echo "====== Build ======" if [ "$CI" = "true" ]; then echo "Building testing for production" - NODE_OPTIONS="--max-old-space-size=8192" nx build testing --configuration production || exit 1 + NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx build testing --configuration production || exit 1 else echo "Building testing for development" - NODE_OPTIONS="--max-old-space-size=8192" nx build testing || exit 1 + NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/nx build testing || exit 1 fi echo "====== Move to node_modules ======"