pnpm clean

Псевдоніми: purge

Безпечно видаляє вміст node_modules з усіх проєктів робочої області. Removes directories without following NTFS junctions on Windows into their targets.

У робочому просторі теки node_modules очищаються як у корені, так і в кожному пакунку робочого простору. Приховані записи, що не належать до pnpm (наприклад, .cache), всередині node_modules зберігаються. A custom modulesDir is cleaned instead of node_modules.

A clean or purge script in package.json overrides the built-in command. pnpm pm clean and pnpm pm purge run the built-in command regardless.

If a custom virtualStoreDir or globalVirtualStoreDir is configured and it resides inside the project root (but outside node_modules), it is also removed.

Параметри#

--lockfile, -l#

Also remove the pnpm-lock.yaml of the workspace root, or of the project outside a workspace.