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
8 changes: 8 additions & 0 deletions src/schemas/json/pnpm-workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,14 @@
"type": "string"
}
},
"namedRegistries": {
"description": "Defines named registry aliases that can be used as a prefix when installing packages, e.g. `pnpm add work:@corp/lib@^2.0.0` resolves `@corp/lib@^2.0.0` against the configured URL. Built-in aliases `gh:` (https://npm.pkg.github.com/) and `npmjs:` (https://registry.npmjs.org/) work without any configuration and can be overridden. An alias must start with a letter and contain only letters, digits, `.`, `_`, and `-`. Added in pnpm 11.1.0.",
"type": "object",
"additionalProperties": {
"type": "string",
"format": "uri"
}
},
"virtualStoreOnly": {
"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.",
"type": "boolean"
Expand Down
5 changes: 5 additions & 0 deletions src/test/pnpm-workspace/pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,8 @@ versioning:
- '!./packages/private-*'
changelog:
storage: repository

# https://pnpm.io/settings/dependency-resolution#namedregistries
namedRegistries:
gh: https://npm.pkg.github.example.com/
work: https://npm.work.example.com/