Use workspace:* identifiers for workspace dependencies#627
Merged
Conversation
Internal package dependencies used explicit semver ranges, which complicated publishing and caused workspace installs to resolve internal packages from the registry instead of the local workspace. Switch all internal dependencies and devDependencies to workspace:*, which pnpm replaces with the exact local version at publish time. Peer dependencies keep their loose ranges since the workspace protocol would pin them to exact versions on publish. Bump pnpm to 11.3.0 in the test workflow to match the release workflow, as the lockfile is now written in the newer format. Fixes #616
|
JoviDeCroock
commented
Jun 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Internal package dependencies use explicit semver ranges, which complicates publishing — especially with staged publishing and
minimumReleaseAge, where a just-published internal version isn't resolvable yet. It also caused workspace installs to resolve internal packages from the registry (e.g.@prefresh/core@1.5.4) instead of linking the local workspace packages.Changes
dependenciesanddevDependenciesin@prefresh/nollup,@prefresh/vite,@prefresh/web-dev-server, and@prefresh/webpacktoworkspace:*, which pnpm replaces with the exact local version at publish time. The lockfile now links these as workspace packages.peerDependencieson@prefresh/babel-pluginkeep their loose ranges, since the workspace protocol would pin them to exact versions on publish.The test fixtures need no changes: yarn's
resolutionsfield overrides theworkspace:*ranges before resolution, as already shown by the existing@prefresh/rolldowndependency.Fixes #616