[go: up one dir, main page]

본문으로 건너뛰기
버전: 10.x

pnpm why

지정된 패키지에 의존하는 모든 패키지를 표시합니다.

The output is a reverse dependency tree: the searched package appears at the root, with its dependents as branches, walking back to workspace roots.

Duplicate subtrees are deduplicated in the output and shown as "deduped".

옵션

--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

현재 프로젝트 대신 글로벌 설치 디렉터리에 패키지를 나열합니다.

--prod, -P

Only display the dependency tree for packages in dependencies.

--dev, -D

Only display the dependency tree for packages in devDependencies.

--depth <number>" title="Direct link to --depth " translate=no>​

Display only dependencies within a specific depth.

--only-projects

Display only dependencies that are also projects within the workspace.

--exclude-peers

Exclude peer dependencies from the results (but dependencies of peer dependencies are not ignored).

--filter <package_selector>" title="Direct link to --filter " translate=no>​

Read more about filtering.

--find-by <finder_name>" title="Direct link to --find-by " translate=no>​

Added in: v10.16.0

Use a finder function defined in .pnpmfile.cjs to match dependencies by properties other than name.