Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 44 additions & 1 deletion src/schemas/json/pnpm-workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,15 @@
"description": "Sets the maximum allowed length of directory names inside the virtual store directory (node_modules/.pnpm).",
"type": "number"
},
"virtualStoreType": {
"description": "Determines where the virtual store is located. When set to project, a separate virtual store is created in each project's node_modules/.pnpm. When set to global, a single store is shared by every project on the machine, with each project's node_modules holding only symlinks into it. Added in pnpm v11.23.0.",
"oneOf": [
{
"type": "string",
"enum": ["project", "global"]
}
]
},
"packageImportMethod": {
"description": "Controls the way packages are imported from the store (if you want to disable symlinks inside node_modules, then you need to change the nodeLinker setting, not this one).",
"oneOf": [
Expand All @@ -500,6 +509,14 @@
"description": "By default, if a file in the store has been modified, the content of this file is checked before linking it to a project's node_modules. ",
"type": "boolean"
},
"useRunningStoreServer": {
"description": "Deprecated. Only allows installation with a store server. If no store server is running, installation will fail.",
"type": "boolean"
},
"frozenStore": {
"description": "Makes pnpm install work against a read-only package store (such as a Nix store or OCI image layer). When enabled, pnpm opens the store's SQLite database in immutable mode and never writes to the store. Works best together with --offline and --frozen-lockfile; incompatible with --force. Added in pnpm v11.7.0.",
"type": "boolean"
},
"strictStorePkgContentCheck": {
"description": "Some registries allow the exact same content to be published under different package names and/or versions. ",
"type": "boolean"
Expand Down Expand Up @@ -830,6 +847,28 @@
"description": "Allows to set the target directory for the bin files of globally installed packages.",
"type": "string"
},
"globalShims": {
"description": "Controls which globally installed packages get project-aware shims, which are global commands that run the version specified by the current project instead of the globally installed one. A boolean disables (false) or resets to the defaults (true), while an object maps package names to a policy: \"auto\" (or true) to switch automatically when publisher-authenticated, \"prompt\" to confirm on each use, \"always\" to switch unconditionally, or false to disable. Object entries merge with the built-in defaults ({\"node\": \"auto\", \"deno\": \"auto\", \"bun\": \"auto\"}). Added in pnpm v12.0.0-rc.2.",
"oneOf": [
{
"type": "boolean"
},
{
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "string",
"enum": ["auto", "prompt", "always"]
},
{
"type": "boolean"
}
]
}
}
]
},
"stateDir": {
"description": "The location where all the packages are saved on the disk.",
"type": "string"
Expand All @@ -846,6 +885,10 @@
"description": "When true, pnpm will check for updates to the installed packages and notify the user.",
"type": "boolean"
},
"ci": {
"description": "Explicitly tells pnpm whether the current environment is a Continuous Integration system, overriding pnpm's automatic CI detection. Added in pnpm v10.12.1.",
"type": "boolean"
},
"preferSymlinkedExecutables": {
"description": "Create symlinks to executables in node_modules/.bin instead of command shims. This setting is ignored on Windows, where only command shims work.",
"type": "boolean"
Expand Down Expand Up @@ -1132,7 +1175,7 @@
"oneOf": [
{
"type": "string",
"enum": ["node", "workspaces", "dependencies"]
"enum": ["none", "workspaces", "dependencies"]
}
]
}
Expand Down
21 changes: 21 additions & 0 deletions src/test/pnpm-workspace/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,24 @@ versioning:
namedRegistries:
gh: https://npm.pkg.github.example.com/
work: https://npm.work.example.com/

# https://pnpm.io/settings/node-modules#virtualstoretype
virtualStoreType: global

# https://pnpm.io/settings/node-modules#hoistinglimits
hoistingLimits: none

# https://pnpm.io/settings/store#frozenstore
frozenStore: true

# https://pnpm.io/settings/store#userunningstoreserver (deprecated)
useRunningStoreServer: false

# https://pnpm.io/settings/other#globalshims
globalShims:
node: prompt
deno: always
some-pkg: false

# https://pnpm.io/settings/other#ci
ci: false
Loading