-
-
Notifications
You must be signed in to change notification settings - Fork 203
RFC: New command names (and alias the old ones) #274
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
Comments
|
I forgot to add the [updated the OP from |
that still suggests a global uninstall to me, because there's more than one bucket of things that are mutated in the system - the global installs, the cache, config, and corepack itself, to name a few. |
I would prefer |
I don't have a strong opinion on this; fwiw I used
Fair enough - |
Makes sense to me. |
It mutates for me. If I do That being said, I think your original |
These need to be compatible both ways. Right now, It's fine to introduce new commands or new aliases for old commands, but for new commands to be useful, there needs to be a low-friction path to start using them. I'm thinking one (or both of):
|
Fixed by #291 |
Does Or will it be required to do it in two commands: first |
Uh oh!
There was an error while loading. Please reload this page.
I think the current command names are at odds with what most people would expect. What do you think about rewording them to be closer from what package managers' interfaces look like? The old commands would still work, but wouldn't be displayed in
--help
(or perhaps marked as deprecated in the documentation).corepack prepare [email protected]
->corepack install -g [email protected]
corepack prepare [email protected] --activate
->corepack use -g [email protected]
corepack hydrate path/to/archive.gz
->corepack install -g path/to/archive.gz
corepack hydrate path/to/archive.gz --activate
->corepack use -g path/to/archive.gz
corepack prepare -o ...
->corepack pack -g
Along with new commands:
corepack use [email protected]
-> Add thepackageManager
field to thepackage.json
filecorepack remove -g foo
-> Removes all versions fromfoo
from the cachecorepack up foo
-> Download the latest version from the registry and automatically use itcorepack info foo
-> List all versions currently in the cache (and the latest one from the remote)The text was updated successfully, but these errors were encountered: