Pular para o conteúdo principal
Version: 4.x

pnpm why

Shows the packages that depend on <pkg>

Synopsis#

pnpm why [-r] [--filter <package selector>]         [<package pattern> ...]
pnpm recursive why [--filter <package selector>]                   [<package pattern> ...]

Options#

--recursive, -r#

Perform command on every package in subdirectories or on every workspace package, when executed inside a workspace.

--json#

Added in: 3.7.0

Show information in JSON format.

--long#

Show extended information.

--parseable#

Show parseable output instead of tree view.

--global#

List packages in the global install directory instead of in the current project.

--prod, -P#

Display only the dependency tree for packages in dependencies.

--dev, -D#

Display only the dependency tree for packages in devDependencies.

--filter <package_selector>#

Read more about filtering.