From 6f80d2b5ebb5d8e062d3e190f8311b6967972b6c Mon Sep 17 00:00:00 2001 From: o-az Date: Thu, 25 Dec 2025 17:23:28 -0800 Subject: [PATCH] Add `workspaceConcurrency` to `pnpm-workspace.json` (#5243) Co-authored-by: btea --- src/schemas/json/pnpm-workspace.json | 5 +++++ src/test/pnpm-workspace/pnpm-workspace.yaml | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/schemas/json/pnpm-workspace.json b/src/schemas/json/pnpm-workspace.json index 5d4ce16d209..0e1aa7fea7a 100644 --- a/src/schemas/json/pnpm-workspace.json +++ b/src/schemas/json/pnpm-workspace.json @@ -654,6 +654,11 @@ "description": "When set to true, installation will fail if the workspace has cycles.", "type": "boolean" }, + "workspaceConcurrency": { + "description": "Set the maximum number of tasks to run simultaneously. For unlimited concurrency use Infinity. You can set the value to <= 0 and it will use amount of CPU cores of the host minus the absolute value of the provided number as: max(1, (number of cores) - abs(workspaceConcurrency)).", + "type": "number", + "default": 4 + }, "failIfNoMatch": { "type": "boolean", "description": "If true, pnpm will fail if no packages match the filter", diff --git a/src/test/pnpm-workspace/pnpm-workspace.yaml b/src/test/pnpm-workspace/pnpm-workspace.yaml index 83da6f6221c..a23322190af 100644 --- a/src/test/pnpm-workspace/pnpm-workspace.yaml +++ b/src/test/pnpm-workspace/pnpm-workspace.yaml @@ -24,3 +24,6 @@ saveExact: true # https://pnpm.io/cli/install#--prefer-offline preferOffline: true + +# https://pnpm.io/cli/run#--workspace-concurrency +workspaceConcurrency: 5