Langsung ke konten utama
Versi: 7.x

pnpm why

Menampilkan semua paket yang bergantung pada paket tertentu.

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

Buat daftar paket di direktori instal global alih-alih di proyek saat ini.

--prod, -P

Only display the dependency tree for packages in dependencies.

--dev, -D

Only display the dependency tree for packages in devDependencies.

--only-projects

Added in: v7.22.0

Display only dependencies that are also projects within the workspace.

--filter <package_selector>

Baca lebih lanjut tentang filtering.