Skip to content

Commit a1dee03

Browse files
authored
chore: Update yargs (#1224)
1 parent 8078a79 commit a1dee03

File tree

3 files changed

+92
-36
lines changed

3 files changed

+92
-36
lines changed

lib/process-args.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const parser = require('yargs-parser')
3+
const { Parser } = require('yargs/yargs')
44
const commands = [
55
'report',
66
'check-coverage',
@@ -23,7 +23,7 @@ module.exports = {
2323
// instrumented to nyc.
2424
hideInstrumenteeArgs: function () {
2525
var argv = process.argv.slice(2)
26-
var yargv = parser(argv)
26+
var yargv = Parser(argv)
2727
if (!yargv._.length) return argv
2828
for (var i = 0, command; (command = yargv._[i]) !== undefined; i++) {
2929
if (~commands.indexOf(command)) return argv

package-lock.json

Lines changed: 89 additions & 32 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@
8282
"spawn-wrap": "^2.0.0-beta.0",
8383
"test-exclude": "^6.0.0-alpha.1",
8484
"uuid": "^3.3.3",
85-
"yargs": "^14.2.0",
86-
"yargs-parser": "^15.0.0"
85+
"yargs": "^15.0.1"
8786
},
8887
"devDependencies": {
8988
"any-path": "^1.3.0",

0 commit comments

Comments
 (0)