pnpm prune
Видалення непотрібних пакунків.
Параметри
--prod
Remove the packages specified in devDependencies
.
--no-optional
Remove the packages specified in optionalDependencies
.
warning
Наразі команда prune не підтримує рекурсивне виконання в монорепозиторії. To only install production-dependencies in a monorepo node_modules
folders can be deleted and then re-installed with pnpm install --prod
.