Skip to content

Commit

Permalink
chore: update yargs (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored Feb 12, 2019
1 parent bedf8fc commit 9a7c3d9
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 48 deletions.
15 changes: 10 additions & 5 deletions lib/parse-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,28 @@ function buildYargs (withCommands = false) {
})
.option('branches', {
default: 0,
description: 'what % of branches must be covered?'
description: 'what % of branches must be covered?',
type: 'number'
})
.option('functions', {
default: 0,
description: 'what % of functions must be covered?'
description: 'what % of functions must be covered?',
type: 'number'
})
.option('lines', {
default: 90,
description: 'what % of lines must be covered?'
description: 'what % of lines must be covered?',
type: 'number'
})
.option('statements', {
default: 0,
description: 'what % of statements must be covered?'
description: 'what % of statements must be covered?',
type: 'number'
})
.option('per-file', {
default: false,
description: 'check thresholds per file'
description: 'check thresholds per file',
type: 'boolean'
})
.option('temp-directory', {
default: './coverage/tmp',
Expand Down
125 changes: 98 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"test-exclude": "^5.0.0",
"uuid": "^3.3.2",
"v8-to-istanbul": "^2.0.2",
"yargs": "^12.0.5",
"yargs": "^13.1.0",
"yargs-parser": "^10.1.0"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 9a7c3d9

Please sign in to comment.