Skip to content

Commit 6f80d2b

Browse files
o-azbtea
andauthored
Add workspaceConcurrency to pnpm-workspace.json (SchemaStore#5243)
Co-authored-by: btea <[email protected]>
1 parent 9857377 commit 6f80d2b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/schemas/json/pnpm-workspace.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,11 @@
654654
"description": "When set to true, installation will fail if the workspace has cycles.",
655655
"type": "boolean"
656656
},
657+
"workspaceConcurrency": {
658+
"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)).",
659+
"type": "number",
660+
"default": 4
661+
},
657662
"failIfNoMatch": {
658663
"type": "boolean",
659664
"description": "If true, pnpm will fail if no packages match the filter",

src/test/pnpm-workspace/pnpm-workspace.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ saveExact: true
2424

2525
# https://pnpm.io/cli/install#--prefer-offline
2626
preferOffline: true
27+
28+
# https://pnpm.io/cli/run#--workspace-concurrency
29+
workspaceConcurrency: 5

0 commit comments

Comments
 (0)