pnpm why
显示依赖于指定 package的所有 package。
配置项
--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
列出在全局安装目录的package,而不是在当前项目中。
--prod, -P
Only display the dependency tree for packages in dependencies.
--dev, -D
Only display the dependency tree for packages in devDependencies.
--only-projects
添加于:v7.22.0
仅显示同时也在工作区内的依赖项。