mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-14 06:42:27 +02:00
tools.func: configure pnpm to allow all build scripts for LXC container environments
This commit is contained in:
@@ -7657,6 +7657,12 @@ setup_nodejs() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# pnpm v10+ blocks dependency build scripts by default (ERR_PNPM_IGNORED_BUILDS).
|
||||||
|
# In a container environment all installed packages are trusted, so we enable builds globally.
|
||||||
|
if command -v pnpm >/dev/null 2>&1; then
|
||||||
|
pnpm config set --global dangerouslyAllowAllBuilds true >/dev/null 2>&1 || true
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$NODE_COREPACK_ENABLE" == "1" ]] && ((wants_corepack)) && command -v corepack >/dev/null 2>&1; then
|
if [[ "$NODE_COREPACK_ENABLE" == "1" ]] && ((wants_corepack)) && command -v corepack >/dev/null 2>&1; then
|
||||||
msg_info "Enabling corepack"
|
msg_info "Enabling corepack"
|
||||||
if $STD corepack enable 2>/dev/null; then
|
if $STD corepack enable 2>/dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user