Dynamically fetch pnpm version from package.json

This commit is contained in:
Jordan Tomkinson
2025-12-28 22:45:25 +00:00
parent 8dc0e3b962
commit 6c01ab9cf4
2 changed files with 4 additions and 2 deletions

View File

@@ -17,7 +17,8 @@ msg_info "Installing Dependencies"
$STD apt install -y redis-server
msg_ok "Installed Dependencies"
NODE_VERSION="22" NODE_MODULE="pnpm@10.24.0" setup_nodejs
PNPM_VERSION="$(curl -fsSL "https://raw.githubusercontent.com/connorgallopo/Tracearr/refs/heads/main/package.json" | jq -r '.packageManager | split("@")[1]')"
NODE_VERSION="22" NODE_MODULE="pnpm@${PNPM_VERSION}" setup_nodejs
PG_VERSION="18" setup_postgresql
msg_info "Installing TimescaleDB"