You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c704e86
Browse filesBrowse the repository at this point in the historyBrowse files
fix(pack): use only workspace-declared prefixes for workspace: rewrites
- A prefix from the global config.yaml, the environment, or the command
line no longer reaches a packed manifest, so the result does not depend
on the machine that packed it.
- Skip reading sibling publishConfig.directory manifests when the
workspace declares no prefix.
- Propagate an unreadable sibling publication manifest instead of
dropping every workspace lookup entry.
- v11: cache publication manifests per project across a recursive run,
and read them without the engine installability check.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
`pnpm pack` and `pnpm publish` now write a `workspace:` dependency with the named-registry prefix of the registry the target package publishes to. With `prefix: work` declared for that registry, `"foo": "workspace:^"` is published as `"foo": "work:^1.0.0"`, and a consumer that installs `foo` through the prefix records one lockfile entry for it. Peer dependency ranges stay plain semver ranges. When several prefixes declare the same registry, the first in alphabetical order is used.
10
+
`pnpm pack` and `pnpm publish` now write a `workspace:` dependency with the named-registry prefix of the registry the target package publishes to. With `prefix: work` declared for that registry in `pnpm-workspace.yaml`, `"foo": "workspace:^"` is published as `"foo": "work:^1.0.0"`, and a consumer that installs `foo` through the prefix records one lockfile entry for it. Peer dependency ranges stay plain semver ranges. When several prefixes declare the same registry, the first in alphabetical order is used.
0 commit comments