pnpm prune

Supprime les packages inutiles.

Options#

--prod#

Remove the packages specified in devDependencies.

--no-optional#

Remove the packages specified in optionalDependencies.

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 monorepo node_modules folders can be deleted and then re-installed with pnpm install --prod.