Skip to content

Commit

Permalink
feat(package): update yargs to version 10.0.3 (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Oct 24, 2017
1 parent 48867f2 commit e514983
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 26 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"prepend-file-cli": "^1.0.6",
"semver": "^5.4.1",
"standard-version": "^4.2.0",
"yargs": "^9.0.1"
"yargs": "^10.0.3"
},
"devDependencies": {
"babel-cli": "^6.26.0",
Expand Down
2 changes: 1 addition & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ process.on('unhandledRejection', (reason) => {
module.exports = function cli() {
// eslint-disable-next-line no-unused-expressions
yargs
.usage('ybiq <command>')
.usage('$0 <command>')
.command('init', init.desc, {}, init)
.demandCommand(1)
.alias('help', 'h')
Expand Down
12 changes: 6 additions & 6 deletions test/help.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import assertThrows from './assert-throws'
import exec from './exec'

const HELP = `
ybiq <command>
cli.js <command>
Commands:
init Setup npm project:
- Update 'package.json'
- Create '.editorconfig'
- Create '.eslintrc.js'
- Create 'commitlint.config.js'
cli.js init Setup npm project:
- Update 'package.json'
- Create '.editorconfig'
- Create '.eslintrc.js'
- Create 'commitlint.config.js'
Options:
--help, -h Show help [boolean]
Expand Down
18 changes: 0 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4214,24 +4214,6 @@ yargs@^8.0.1:
y18n "^3.2.1"
yargs-parser "^7.0.0"

yargs@^9.0.1:
version "9.0.1"
resolved "https://registry.yarnpkg.com/yargs/-/yargs-9.0.1.tgz#52acc23feecac34042078ee78c0c007f5085db4c"
dependencies:
camelcase "^4.1.0"
cliui "^3.2.0"
decamelize "^1.1.1"
get-caller-file "^1.0.1"
os-locale "^2.0.0"
read-pkg-up "^2.0.0"
require-directory "^2.1.1"
require-main-filename "^1.0.1"
set-blocking "^2.0.0"
string-width "^2.0.0"
which-module "^2.0.0"
y18n "^3.2.1"
yargs-parser "^7.0.0"

yargs@~3.10.0:
version "3.10.0"
resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1"
Expand Down

0 comments on commit e514983

Please sign in to comment.