~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.
~Adds a
packageJsonList.json
file in the cache folder so that new command can go back to all knownpackage.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