Refactor yarn commands in install script

This commit is contained in:
Tobias 2025-11-10 23:42:10 +01:00 committed by GitHub
parent e933672cf9
commit 48270e2d6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,11 +21,10 @@ fetch_and_deploy_gh_release "domain-locker" "Lissy93/domain-locker"
msg_info "Building Domain-Locker"
cd /opt/domain-locker
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
corepack enable
$STD yarn install --immutable
$STD yarn add @angular/build@$(curl -s https://raw.githubusercontent.com/Lissy93/domain-locker/refs/heads/main/package-lock.json | jq -r '.packages["node_modules/@angular/build"].version')
$STD yarn add typescript@5.5
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0 && corepack enable
yarn install --immutable
yarn add @angular/build@$(curl -s https://raw.githubusercontent.com/Lissy93/domain-locker/refs/heads/main/package-lock.json | jq -r '.packages["node_modules/@angular/build"].version')
yarn add typescript@5.5
export NODE_OPTIONS="--max-old-space-size=2048"
cat <<EOF >/opt/domain-locker.env
# Database connection
@ -39,7 +38,7 @@ DL_PG_NAME=$PG_DB_NAME
DL_ENV_TYPE=selfHosted
NITRO_PRESET=node_server
EOF
$STD yarn build
yarn build
msg_info "Built Domain-Locker"
msg_info "Creating Service"