tools.func: centralize Node.js corepack and npm handling in setup_nodejs() (#15268)

This commit is contained in:
CanbiZ (MickLesk)
2026-06-21 22:24:10 +02:00
committed by GitHub
parent c98d2da1bd
commit b5c31d58f4
33 changed files with 114 additions and 86 deletions

View File

@@ -30,6 +30,8 @@ function update_script() {
exit 1
fi
NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs
if check_for_gh_release "plane" "makeplane/plane"; then
msg_info "Stopping Services"
systemctl stop plane-api plane-worker plane-beat plane-live plane-space
@@ -49,7 +51,7 @@ function update_script() {
cd /opt/plane
export NODE_OPTIONS="--max-old-space-size=4096"
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
$STD corepack enable pnpm
$STD pnpm install --frozen-lockfile
$STD pnpm turbo run build --filter=web --filter=admin --filter=space --filter=live
msg_ok "Rebuilt Frontend"