Version : 10.x
pnpm prune
Supprime les packages inutiles.
Options
--prod
Remove the packages specified indevDependencies
.
--no-optional
Remove the packages specified inoptionalDependencies
.
warning
La commande prune ne prend actuellement pas en charge l'exécution récursive sur un monorepo. To only install production-dependencies in a monoreponode_modules
folders can be deleted and then re-installed withpnpm install --prod
.