Fix the nx path to avoid installing it globally (#7681)

* fix nx path

* fix nx

* fix nx

* fix nx

* fix nx

* fix nx

* fix nx
This commit is contained in:
Maurizio Vitale 2022-06-22 09:16:22 +01:00 committed by GitHub
parent 3aa52c8f14
commit 851e153080
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 14 additions and 14 deletions

View File

@ -9,10 +9,10 @@ echo "====== Build ======"
if [ "$CI" = "true" ]; then if [ "$CI" = "true" ]; then
echo "Building content-services for production" 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 else
echo "Building content-services for development" 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 fi
echo "====== Copy i18n ======" echo "====== Copy i18n ======"

View File

@ -9,10 +9,10 @@ echo "====== Build ======"
if [ "$CI" = "true" ]; then if [ "$CI" = "true" ]; then
echo "Building core for production" 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 else
echo "Building core for development" 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 fi
echo "====== Bundle styles ======" echo "====== Bundle styles ======"

View File

@ -7,8 +7,8 @@ cd $DIR/../..
if [ "$CI" = "true" ]; then if [ "$CI" = "true" ]; then
echo "Building extensions for production" 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 else
echo "Building extensions for development" 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 fi

View File

@ -9,10 +9,10 @@ echo "====== Build ======"
if [ "$CI" = "true" ]; then if [ "$CI" = "true" ]; then
echo "Building insights for production" 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 else
echo "Building insights for development" 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 fi
echo "====== Copy i18n ======" echo "====== Copy i18n ======"

View File

@ -9,10 +9,10 @@ echo "====== Build ======"
if [ "$CI" = "true" ]; then if [ "$CI" = "true" ]; then
echo "Building process-services-cloud for production" 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 else
echo "Building process-services-cloud for development" 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 fi
echo "====== Copy i18n ======" echo "====== Copy i18n ======"

View File

@ -9,10 +9,10 @@ echo "====== Build ======"
if [ "$CI" = "true" ]; then if [ "$CI" = "true" ]; then
echo "Building process-services for production" 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 else
echo "Building process-services for development" 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 fi
echo "====== Copy i18n ======" echo "====== Copy i18n ======"

View File

@ -10,10 +10,10 @@ echo "====== Build ======"
if [ "$CI" = "true" ]; then if [ "$CI" = "true" ]; then
echo "Building testing for production" 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 else
echo "Building testing for development" 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 fi
echo "====== Move to node_modules ======" echo "====== Move to node_modules ======"