pnpm why
顯示所有依附於某套件之上的套件。
Options
--recursive, -r
Show the dependency tree for the specified package on every package in subdirectories or on every workspace package when executed inside a workspace.
--json
Show information in JSON format.
--long
Show verbose output.
--parseable
Show parseable output instead of tree view.
--global, -g
List packages in the global install directory instead of in the current project.
--prod, -P
Only display the dependency tree for packages in dependencies
.
--dev, -D
Only display the dependency tree for packages in devDependencies
.
--only-projects
Display only dependencies that are also projects within the workspace.