alfresco-ng2-components/scripts/build/build-extensions.sh
Maurizio Vitale 851e153080
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
2022-06-22 09:16:22 +01:00

15 lines
422 B
Bash
Executable File

#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/../..
if [ "$CI" = "true" ]; then
echo "Building extensions for production"
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" $(npm bin)/nx build extensions || exit 1
fi