From 5be86d4fdf5958f94baf177e17ef549d84d5e859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Sun, 10 May 2026 20:05:03 +0200 Subject: [PATCH] pin `pnpm` version (#14386) --- misc/tools.func | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/misc/tools.func b/misc/tools.func index 07ed07f1e..72cd3384d 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -6493,6 +6493,14 @@ function setup_nodejs() { # Install global Node modules if [[ -n "$NODE_MODULE" ]]; then IFS=',' read -ra MODULES <<<"$NODE_MODULE" + + # Pin pnpm to v10 to avoid breaking changes from newer major versions + for i in "${!MODULES[@]}"; do + if [[ "${MODULES[$i]}" =~ ^pnpm(@.*)?$ ]]; then + MODULES[$i]="pnpm@^10" + fi + done + local failed_modules=0 for mod in "${MODULES[@]}"; do local MODULE_NAME MODULE_REQ_VERSION MODULE_INSTALLED_VERSION