Skip to content

Commit d315dd5

Browse files
authored
Add new pnpm configuration (#5638)
Co-authored-by: btea <btea@users.noreply.github.com>
1 parent a0afa4c commit d315dd5

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

src/schemas/json/pnpm-workspace.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,31 @@
867867
"virtualStoreOnly": {
868868
"description": "When set to true, pnpm populates the virtual store without creating importer symlinks, hoisting, bin links, or running lifecycle scripts. This is useful for pre-populating a store (e.g., in Nix builds) without creating unnecessary project-level artifacts. pnpm fetch uses this mode internally.",
869869
"type": "boolean"
870+
},
871+
"pmOnFail": {
872+
"description": "Overrides the `onFail` behavior of both the `packageManager` field and `devEngines.packageManager` when the running pnpm version does not match the declared one.",
873+
"oneOf": [
874+
{
875+
"type": "string",
876+
"enum": ["download", "error", "warn", "ignore"]
877+
}
878+
]
879+
},
880+
"runtimeOnFail": {
881+
"description": "Overrides the `onFail` field of `devEngines.runtime` (and `engines.runtime`) in the root project's `package.json`. This is useful when you want a different local behavior than what is written in the manifest — for instance, forcing pnpm to download the declared runtime even when the manifest sets `onFail: \"warn\"`.",
882+
"oneOf": [
883+
{
884+
"type": "string",
885+
"enum": ["download", "error", "warn", "ignore"]
886+
}
887+
]
888+
},
889+
"nodeDownloadMirrors": {
890+
"description": "Configure custom Node.js download mirrors in `pnpm-workspace.yaml`. The keys are release channels (`release`, `rc`, `nightly`, `v8-canary`, etc.) and the values are base URLs.",
891+
"type": "object",
892+
"additionalProperties": {
893+
"type": "string"
894+
}
870895
}
871896
},
872897
"additionalProperties": false

0 commit comments

Comments
 (0)