-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Breaking: rename every yarn <command> rm
to yarn <command> remove
#3989
Conversation
Looks like your jest installation is a bit weird. Try removing that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for the export parts.
@voxsim, I'll let you do the honors :)
return found; | ||
}, | ||
); | ||
remove(config: Config, reporter: Reporter, flags: Object, args: Array<string>): Promise<boolean> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just export remove
directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to keep consistency with the ls
changes.
I have noticed that I forgot to change
['add <user> [[<@scope>/]<pkg>]', 'rm <user> [[<@scope>/]<pkg>]', 'ls [<@scope>/]<pkg>']
Should I do it? Also, ls
is still there, should I change it as part of another issue/PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd defer any ls
changes to their own PR. Also, okay for now for consistency but I think we can do better.
May be you'd be interested in cleaning that up in a follow-up PR?
Thanks a lot! |
@tpina - The website is maintained in a different repository: https://github.com/yarnpkg/website/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still LGTM, now including the export parts since I understand it was done for consistency.
@voxsim I'll merge this EOD today if you don't chime in and we can address any objections in follow-ups.
return found; | ||
}, | ||
); | ||
remove(config: Config, reporter: Reporter, flags: Object, args: Array<string>): Promise<boolean> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd defer any ls
changes to their own PR. Also, okay for now for consistency but I think we can do better.
May be you'd be interested in cleaning that up in a follow-up PR?
@BYK Yes, not a problem. What do you mean that "we can do better" - Should I just |
Summary
From #3952 - For the sake of consistency and clarity, we need to rename the
rm
command toremove
and add a deprecation warning forrm
.Test plan
I have done some rounds of functional manual testing.
Unfortunately, every command with
rm
requires a login. Coincidentally, and if I am not mistaken, none of the commands that implementrm
has tests (owner
,tag
,team
).I will happily add tests for those but I can't seem to make a mock login to work... I need suggestions/guidance?
Note: I'm working on a windows machine. When I try to run
yarn run test
I get the following