mirror of
https://github.com/pnpm/pnpm.git
synced 2026-07-21 21:22:26 -04:00
Add n/prefer-node-protocol rule and autofix all bare builtin imports to use the node: prefix. Simplify the simple-import-sort builtins pattern to just ^node: since all imports now use the prefix.
@pnpm/modules-cleaner
Exports util functions to clean up node_modules
Install
pnpm install @pnpm/modules-cleaner
API
prune(...args)
Compares the wanted lockfile with the current one and removes redundant packages from node_modules.
removeDirectDependency(...args)
Removes a direct dependency from node_modules.
License
MIT