mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-10 18:18:56 -04:00
5
.changeset/dull-poems-smoke.md
Normal file
5
.changeset/dull-poems-smoke.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/plugin-commands-installation": minor
|
||||
---
|
||||
|
||||
`pnpm prune` should remove the modules cache.
|
||||
@@ -62,6 +62,7 @@ export async function handler (
|
||||
devDependencies: opts.dev !== false,
|
||||
optionalDependencies: opts.optional !== false,
|
||||
},
|
||||
modulesCacheMaxAge: 0,
|
||||
pruneStore: true,
|
||||
storeController: store.ctrl,
|
||||
storeDir: store.dir,
|
||||
|
||||
@@ -73,5 +73,7 @@ test('prune removes dev dependencies', async () => {
|
||||
})
|
||||
|
||||
await project.has('is-positive')
|
||||
await project.has('.pnpm/is-positive@1.0.0')
|
||||
await project.hasNot('is-negative')
|
||||
await project.hasNot('.pnpm/is-negative@1.0.0')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user