Skip to content

Commit

Permalink
chore: Update yargs (#1224)
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyfarrell committed Nov 16, 2019
1 parent 8078a79 commit a1dee03
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 36 deletions.
4 changes: 2 additions & 2 deletions lib/process-args.js
@@ -1,6 +1,6 @@
'use strict'

const parser = require('yargs-parser')
const { Parser } = require('yargs/yargs')
const commands = [
'report',
'check-coverage',
Expand All @@ -23,7 +23,7 @@ module.exports = {
// instrumented to nyc.
hideInstrumenteeArgs: function () {
var argv = process.argv.slice(2)
var yargv = parser(argv)
var yargv = Parser(argv)
if (!yargv._.length) return argv
for (var i = 0, command; (command = yargv._[i]) !== undefined; i++) {
if (~commands.indexOf(command)) return argv
Expand Down
121 changes: 89 additions & 32 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -82,8 +82,7 @@
"spawn-wrap": "^2.0.0-beta.0",
"test-exclude": "^6.0.0-alpha.1",
"uuid": "^3.3.3",
"yargs": "^14.2.0",
"yargs-parser": "^15.0.0"
"yargs": "^15.0.1"
},
"devDependencies": {
"any-path": "^1.3.0",
Expand Down

0 comments on commit a1dee03

Please sign in to comment.