Skip to content

fix(workspace): link npm, Yarn and Bun workspace deps by range - #999

Open
arnaud-dezandee wants to merge 3 commits into
voidzero-dev:mainfrom
arnaud-dezandee:feat/link-npm-workspace-packages
Open

arnaud-dezandee wants to merge 3 commits into
voidzero-dev:mainfrom
arnaud-dezandee:feat/link-npm-workspace-packages

Conversation

@arnaud-dezandee

@arnaud-dezandee arnaud-dezandee commented Nov 14, 2026 •

Copy link
Copy Markdown

Motivation

npm and Yarn classic reject the workspace: protocol, so packages in their workspaces depend on each other with plain ranges like "*" or "^1.0.0". The package graph only linked workspace: specs, so an npm workspace had no edges: vp run --filter "...pkg" selected no dependents, -t and dependsOn with from: "dependencies" ran nothing in dependencies, and -r ignored dependency order.

Changes

For package.json workspaces (npm, Yarn, Bun), a dependency now links to the workspace package of that name when its version satisfies the range. As in npm, * and an empty range match any version, prereleases included. file:, tags and git specs don't link yet. pnpm is unchanged, since it links plain ranges only with linkWorkspacePackages, which isn't read yet.

…range

npm and Yarn classic reject the `workspace:` protocol, so in their
workspaces every dependency between packages is a plain range like `*`
or `^1.0.0`, and the package graph had no edges. npm, Yarn and Bun link
a workspace package when its `version` satisfies the range; the graph
now does the same for `package.json` `workspaces`, following npm's rule
that `*` and an empty range match any version, prereleases included.
pnpm workspaces are unchanged: pnpm links such ranges only with
`linkWorkspacePackages`, which isn't read yet.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@socket-security

socket-security Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedcargo/​js-semver@​1.0.110010093100100

View full report

arnaud-dezandee and others added 2 commits November 14, 2026 21:21
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant