nodejs / corepack

Zero-runtime-dependency package acting as bridge between Node projects and their package managers
MIT License
2.52k stars 165 forks source link

feat: add `corepack cleanup` command #363

Closed aduh95 closed 7 months ago

aduh95 commented 8 months ago

~Adds a packageJsonList.json file in the cache folder so that new command can go back to all known package.json with a "packageManager" field, in order to guess which versions should stay and which can go.~ EDIT: this PR simply adds a way to remove Corepack local cache folder. I did not write tests for that, I'm not really sure what those tests should look like.

Fixes: https://github.com/nodejs/corepack/issues/114