Skip to content

fix: classify npm workspace-owned dependencies as direct when scanning from the monorepo root#258

Merged
sonukapoor merged 2 commits intomainfrom
bugfix/issue-257-npm-workspace-direct-classification
Apr 29, 2026
Merged

fix: classify npm workspace-owned dependencies as direct when scanning from the monorepo root#258
sonukapoor merged 2 commits intomainfrom
bugfix/issue-257-npm-workspace-direct-classification

Conversation

@sonukapoor
Copy link
Copy Markdown
Collaborator

Fixes npm workspace root scans so direct-vs-transitive classification includes dependencies declared in child workspaces, not just the root package.json.

The change reads workspace patterns from the root manifest, resolves workspace folders such as client, server, and packages/*, and merges dependency names from each workspace package.json into the direct dependency set. Workspace folders without a package.json are ignored.

This keeps normal root-lockfile workspace scans honest: dependencies owned directly by a child workspace are no longer mislabeled as transitive solely because they are absent from the root manifest.

Closes #257

@sonukapoor sonukapoor merged commit 97f7085 into main Apr 29, 2026
5 checks passed
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.

fix: classify npm workspace-owned dependencies as direct when scanning from the monorepo root

1 participant