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