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
[BUG] install-strategy=linked: workspace-only / undeclared workspaces are invisible to npm ls and npm query #9618
This is not just a request to bump a dependency for a CVE
This is not solely a request to bump a dependency for a CVE
Current Behavior
Under install-strategy=linked, a declared workspace that is not also a root dependency is materialized on disk but is invisible to npm ls --all, npm ls --workspaces, and npm query ':root > *' (all return empty). The hoisted strategy lists every declared workspace.
Expected Behavior
All declared workspaces should be visible to npm ls (including --workspaces) and npm query under the linked strategy, matching the hoisted strategy.
Steps To Reproduce
cd"$(mktemp -d)"echo'install-strategy=linked'> .npmrc
echo'{ "name": "root", "version": "1.0.0", "workspaces": ["packages/*"] }'> package.json
mkdir -p packages/a packages/b
echo'{ "name": "a", "version": "1.0.0" }'> packages/a/package.json
echo'{ "name": "b", "version": "1.0.0" }'> packages/b/package.json
npm install >/dev/null
npm ls --workspaces # linked: "(empty)"; hoisted: lists a and b
npm query ':root > *'# linked: []; hoisted: a, b
Activity
fix(reify): report added count for fresh linked installs (#9661)
fix(arborist): surface undeclared workspaces under the linked strategy (
fix(arborist): surface undeclared workspaces under the linked strateg…