pnpm prune
不要なパッケージを削除します。
Options#
--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.