Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add corepack cleanup command #363

Merged
merged 9 commits into from
Feb 12, 2024
Merged

feat: add corepack cleanup command #363

merged 9 commits into from
Feb 12, 2024

Conversation

aduh95
Copy link
Contributor

@aduh95 aduh95 commented Jan 27, 2024

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: #114

sources/commands/Cleanup.ts Outdated Show resolved Hide resolved
sources/commands/Cleanup.ts Outdated Show resolved Hide resolved
@aduh95 aduh95 requested a review from arcanis February 12, 2024 22:24
sources/specUtils.ts Outdated Show resolved Hide resolved
sources/specUtils.ts Outdated Show resolved Hide resolved
@aduh95 aduh95 enabled auto-merge (squash) February 12, 2024 23:37
@aduh95 aduh95 disabled auto-merge February 12, 2024 23:37
@aduh95 aduh95 enabled auto-merge (squash) February 12, 2024 23:38
@aduh95 aduh95 merged commit f442366 into main Feb 12, 2024
10 checks passed
@aduh95 aduh95 deleted the corepack-cleanup branch February 12, 2024 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

corepack cleanup cache
3 participants