Saltar al contenido principal
Version: 10.x

pnpm why

Muestra todos los paquetes que dependen del paquete especificado.

caution

If the Dependencies Tree has more than 10 results (end leaves), the output will be truncated to 10 end leaves.

This makes the output more readable and avoids memory issues.

Opciones

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

Enumere los paquetes en el directorio de instalación global en lugar de en el proyecto actual.

--prod, -P

Only display the dependency tree for packages in dependencies.

--dev, -D

Only display the dependency tree for packages in devDependencies.

--depth <number>

Display only dependencies within a specific depth.

--only-projects

Muestra solo las dependencias que también son proyectos dentro del espacio de trabajo.

--exclude-peers

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

--filter <package_selector>

Read more about filtering.