refactor(install): use setup_nodejs corepack via NODE_MODULE

Remove redundant corepack enable calls from install scripts and rely on centralized setup_nodejs handling.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
MickLesk
2026-06-21 21:56:29 +02:00
parent 1f01f32853
commit 16ea8eb8f6
61 changed files with 76 additions and 77 deletions
+2 -2
View File
@@ -19,14 +19,14 @@ $STD apt install -y \
gettext-base
msg_ok "Installed Dependencies"
NODE_VERSION="24" setup_nodejs
NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs
fetch_and_deploy_gh_release "feishin" "jeffvli/feishin" "tarball"
msg_info "Building Feishin Web"
cd /opt/feishin
#PNPM_VERSION=$(jq -r '.packageManager | ltrimstr("pnpm@")' /opt/feishin/package.json)
$STD corepack enable
$STD corepack prepare "pnpm@10" --activate
$STD pnpm install
$STD pnpm run build:web