Skip to content

pnpm list output is truncated from v.8.9.0 #7378

@missvalentinep

Description

@missvalentinep

Verify latest release

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

pnpm version

>= 8.9.0

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

CLI

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

No response

Reproduction steps

Run pnpm ls "@company-scope/**" --depth Infinity --parseable

Describe the Bug

The output of this command changes from v8.8.0 to v8.9.0. In 8.9.0 some packages are now missing.

I believe it is related to this MR #7122

It's supposed to prune the tree only for pnpm why, but pnpm list was also affected.
It happens because when we call pnpm ls "@company-scope/**", listForPackages (patched in this commit method) is being called.

If I execute pnpm ls --depth Infinity --parseable the missing packages are there.

Expected Behavior

Output is not truncated

Which Node.js version are you using?

20.10.0

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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions