#!/usr/bin/env bash set -ex export CURRENT_VERSION=$1; export NODE_ENV=production; corepack enable; corepack install || exit 1; yarn install || exit 1; rm -rf target # Build the application yarn run build; # Copy package*.json files cp ../.yarnrc.yml target/; cp yarn.lock target/; cp package.json target/; cat <