refactor(tools): centralize Node.js corepack and npm handling in setup_nodejs

Move corepack install/enable into setup_nodejs and update CT scripts to use NODE_MODULE instead of manual corepack calls.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
MickLesk
2026-06-21 21:55:20 +02:00
parent c98d2da1bd
commit 1f01f32853
45 changed files with 103 additions and 82 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ function update_script() {
exit
fi
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
NODE_VERSION="22" NODE_MODULE="corepack,yarn" setup_nodejs
msg_info "Updating LXC"
$STD apt update