Skip to main content
Version: 5.x

pnpm prune

Removes unnecessary packages.

Options

--prod

Remove the packages specified in devDependencies.

--no-optional

Remove the packages specified in optionalDependencies.