-
-
Notifications
You must be signed in to change notification settings - Fork 607
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
chore: update commander.js to v12 #4315
Conversation
@@ -1703,11 +1703,9 @@ describe("CLI API", () => { | |||
consoleSpy = jest.spyOn(global.console, "log"); | |||
exitSpy = jest.spyOn(process, "exit").mockImplementation(() => {}); | |||
|
|||
cli.program.option("--color [value]", "any color", "blue"); |
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.
], | ||
[ | ||
"[1mMade with ♥ by the webpack team[22m.", | ||
"Made with ♥ by the webpack team.", |
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.
@snitin315 Why it was changed?
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.
@alexander-akait Test case was updated to use --mode
instead of --color
.
#4315 (comment)
What kind of change does this PR introduce?
deps
Did you add tests for your changes?
Updated existing tests
If relevant, did you update the documentation?
NA
Summary
addHelpCommand
usage is deprecated, hence migrated to the newhelpCommand
API.Does this PR introduce a breaking change?
No
Other information
No