pnpm prune
Yüklü ve gereksiz paketleri/kütüphaneleri kaldırır.
Parametreler
--prod
Remove the packages specified in devDependencies
.
--no-optional
Remove the packages specified in optionalDependencies
.
warning
The prune command does not support recursive execution on a monorepo currently. To only install production-dependencies in a monorepo node_modules
folders can be deleted and then re-installed with pnpm install --prod
.