Skip to content

Commit 9a7c3d9

Browse files
authored
chore: update yargs (#63)
1 parent bedf8fc commit 9a7c3d9

4 files changed

Lines changed: 124 additions & 48 deletions

File tree

lib/parse-args.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,28 @@ function buildYargs (withCommands = false) {
3232
})
3333
.option('branches', {
3434
default: 0,
35-
description: 'what % of branches must be covered?'
35+
description: 'what % of branches must be covered?',
36+
type: 'number'
3637
})
3738
.option('functions', {
3839
default: 0,
39-
description: 'what % of functions must be covered?'
40+
description: 'what % of functions must be covered?',
41+
type: 'number'
4042
})
4143
.option('lines', {
4244
default: 90,
43-
description: 'what % of lines must be covered?'
45+
description: 'what % of lines must be covered?',
46+
type: 'number'
4447
})
4548
.option('statements', {
4649
default: 0,
47-
description: 'what % of statements must be covered?'
50+
description: 'what % of statements must be covered?',
51+
type: 'number'
4852
})
4953
.option('per-file', {
5054
default: false,
51-
description: 'check thresholds per file'
55+
description: 'check thresholds per file',
56+
type: 'boolean'
5257
})
5358
.option('temp-directory', {
5459
default: './coverage/tmp',

package-lock.json

Lines changed: 98 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"test-exclude": "^5.0.0",
4444
"uuid": "^3.3.2",
4545
"v8-to-istanbul": "^2.0.2",
46-
"yargs": "^12.0.5",
46+
"yargs": "^13.1.0",
4747
"yargs-parser": "^10.1.0"
4848
},
4949
"devDependencies": {

0 commit comments

Comments
 (0)