From e5149832744fa43459ab08b448beeaef97eb6de3 Mon Sep 17 00:00:00 2001 From: ybiquitous Date: Wed, 25 Oct 2017 02:47:00 +0900 Subject: [PATCH] feat(package): update yargs to version 10.0.3 (#43) --- package.json | 2 +- src/cli.js | 2 +- test/help.test.js | 12 ++++++------ yarn.lock | 18 ------------------ 4 files changed, 8 insertions(+), 26 deletions(-) diff --git a/package.json b/package.json index 95d0cb3e..058dffcb 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/cli.js b/src/cli.js index 9aa91190..d3a7ced3 100644 --- a/src/cli.js +++ b/src/cli.js @@ -9,7 +9,7 @@ process.on('unhandledRejection', (reason) => { module.exports = function cli() { // eslint-disable-next-line no-unused-expressions yargs - .usage('ybiq ') + .usage('$0 ') .command('init', init.desc, {}, init) .demandCommand(1) .alias('help', 'h') diff --git a/test/help.test.js b/test/help.test.js index 992c15df..c7f713d7 100644 --- a/test/help.test.js +++ b/test/help.test.js @@ -3,14 +3,14 @@ import assertThrows from './assert-throws' import exec from './exec' const HELP = ` -ybiq +cli.js 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] diff --git a/yarn.lock b/yarn.lock index 3f5141a6..bffdaf70 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"