-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
fix(gatsby-cli): Fixed incorrect scriptname in gatsby-cli #12186
fix(gatsby-cli): Fixed incorrect scriptname in gatsby-cli #12186
Conversation
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.
@yogeshkotadiya it looks like there are a few breaking changes with yargs 13, notably dropping Node 6 https://github.com/yargs/yargs/blob/master/CHANGELOG.md#breaking-changes
Could you remove the upgrade here, and just encapsulate the changes to the incorrect script name?
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.
Left a small comment! Thank you for this, @yogeshkotadiya 👍
packages/gatsby-cli/package.json
Outdated
@@ -28,7 +28,7 @@ | |||
"source-map": "^0.5.7", | |||
"stack-trace": "^0.0.10", | |||
"update-notifier": "^2.3.0", | |||
"yargs": "^11.1.0", | |||
"yargs": "12.0.5", |
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.
Since this is also a major semver upgrade, are there any breaking changes we should resolve? Also, should we add a ^ as opposed to pinning the version?
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.
"yargs": "12.0.5", | |
"yargs": "^11.1.0", |
Would probably be better to not change the version at all in this PR, what do you think?
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.
Just saw that scriptName is 12+
Thank you so much, @yogeshkotadiya 👍 |
Published in gatsby-cli@2.4.14 |
Description
Resolves incorrect script name in output when using
gatsby --help
command.Also removed
yargs
configuration from package.json because of this warningConfiguring yargs through package.json is deprecated and will be removed in the next major release, please use the JS API instead.
TO-DO
Packages upgraded
yargs 11.1.0 -->
13.2.1--> 12.0.5Related Issues
Addresses #12154