diff --git a/exporter/scripts/build b/exporter/scripts/build index 118bacad9..2fd75a309 100755 --- a/exporter/scripts/build +++ b/exporter/scripts/build @@ -2,7 +2,7 @@ set -ex -CURRENT_VERSION=$1; +export CURRENT_VERSION=$1; yarn install rm -rf target diff --git a/frontend/scripts/build b/frontend/scripts/build index 238687b6a..ccb9236b7 100755 --- a/frontend/scripts/build +++ b/frontend/scripts/build @@ -2,10 +2,14 @@ set -ex -CURRENT_VERSION=$1; -BUILD_DATE=$(date -R); -CURRENT_HASH=${CURRENT_HASH:-$(git rev-parse --short HEAD)}; -EXTRA_PARAMS=$SHADOWCLJS_EXTRA_PARAMS; +export CURRENT_VERSION=$1; +export BUILD_DATE=$(date -R); +export CURRENT_HASH=${CURRENT_HASH:-$(git rev-parse --short HEAD)}; +export EXTRA_PARAMS=$SHADOWCLJS_EXTRA_PARAMS; + +# Some cljs reacts on this environment variable for define more +# performant code on macros (example: rumext) +export NODE_ENV=production; yarn install || exit 1; yarn run build:clean || exit 1;