Skip to content

Commit

Permalink
fix(gatsby-cli): Fixed incorrect scriptname in gatsby-cli (gatsbyjs#1…
Browse files Browse the repository at this point in the history
…2186)

* gatsby-cli yargs patch

* fix yargs configuration

* downgrade yargs to retain node 6 supoort

* revert yargs configuration back to package.json

* Don't pin yargs version

* Fix yarn.lock
  • Loading branch information
yogeshkotadiya authored and sidharthachatterjee committed Mar 8, 2019
1 parent db0c2ad commit 3b116f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/gatsby-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
"yurnalist": "^1.0.2"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/gatsby-cli/src/create-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ module.exports = argv => {
let isLocalSite = isLocalGatsbySite()

cli
.scriptName(`gatsby`)
.usage(`Usage: $0 <command> [options]`)
.alias(`h`, `help`)
.alias(`v`, `version`)
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -20584,7 +20584,7 @@ yargs@^10.0.3:
y18n "^3.2.1"
yargs-parser "^8.1.0"

yargs@^11.0.0, yargs@^11.1.0:
yargs@^11.0.0:
version "11.1.0"
resolved "http://registry.npmjs.org/yargs/-/yargs-11.1.0.tgz#90b869934ed6e871115ea2ff58b03f4724ed2d77"
integrity sha512-NwW69J42EsCSanF8kyn5upxvjp5ds+t3+udGBeTbFnERA+lF541DDpMawzo4z6W/QrzNM18D+BPMiOBibnFV5A==
Expand All @@ -20602,7 +20602,7 @@ yargs@^11.0.0, yargs@^11.1.0:
y18n "^3.2.1"
yargs-parser "^9.0.2"

yargs@^12.0.2:
yargs@^12.0.2, yargs@^12.0.5:
version "12.0.5"
resolved "https://registry.yarnpkg.com/yargs/-/yargs-12.0.5.tgz#05f5997b609647b64f66b81e3b4b10a368e7ad13"
integrity sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==
Expand Down

0 comments on commit 3b116f6

Please sign in to comment.