try fix prod build

This commit is contained in:
Denys Vuika
2020-08-25 16:20:09 +01:00
parent 752bc874da
commit 1401039285

View File

@@ -7,11 +7,9 @@ cd $DIR/../..
echo "====== Core ======" echo "====== Core ======"
echo "====== Build ======" echo "====== Build ======"
export NODE_OPTIONS=--max_old_space_size=8192
if [ "$CI" = "true" ]; then if [ "$CI" = "true" ]; then
echo "Building core for production" echo "Building core for production"
nx build core --prod || exit 1 node --max_old_space_size=8192 ./node_modules/@nrwl/cli/bin/nx build core --prod || exit 1
else else
echo "Building core for development" echo "Building core for development"
nx build core || exit 1 nx build core || exit 1