Skip to content

Commit 90aaf05

Browse files
Strum355claude
andcommitted
docs: add explanatory comment to pnpm workspace member fix
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b146b38 commit 90aaf05

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/providers/javascript_pnpm.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ export default class Javascript_pnpm extends Base_javascript {
1919
}
2020

2121
_buildDependencyTree(includeTransitive, opts = {}) {
22+
// pnpm ls --json returns an array with one entry per workspace package.
23+
// When analyzing a workspace member, find its entry by name instead of
24+
// blindly taking the first element (which is the workspace root).
2225
const tree = super._buildDependencyTree(includeTransitive, opts);
2326
if (Array.isArray(tree) && tree.length > 0) {
2427
const memberName = this._getManifest().name;

0 commit comments

Comments
 (0)