Skip to content

"pnpm why" doesn't work properly #8100

@muratgozel

Description

@muratgozel

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

9.1.1

Which area(s) of pnpm are affected? (leave empty if unsure)

Dependencies resolver, CLI

Link to the code that reproduces this issue or a replay of the bug

https://github.com/muratgozel/pnpm-test

Reproduction steps

pnpm i
pnpm why -r --parseable @org/standard-core

Describe the Bug

It doesn't output all the dependants. Apparently, it's missing one under frontend. It outputs:

.../pnpm-test/frontend/demirel-link-in-bio
.../pnpm-test/standard/core

On the other hand if i remove the parseable flag, all came fine:

pnpm why -r @org/standard-core
Legend: production dependency, optional only, dev only

@org/frontend-demirel-link-in-bio@0.1.0 .../pnpm-test/frontend/demirel-link-in-bio

dependencies:
@org/standard-core link:../../standard/core

@org/frontend-monomex-website@0.1.0 .../pnpm-test/frontend/monomex-website

dependencies:
@org/standard-core link:../../standard/core

Expected Behavior

.../pnpm-test/frontend/demirel-link-in-bio
.../pnpm-test/frontend/monomex-website
.../pnpm-test/standard/core

Which Node.js version are you using?

20.9

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions