Skip to content

Commit

Permalink
update dependencies, switch to safe version of yargs
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Coe committed Mar 12, 2016
1 parent b5907ad commit 931839a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bin/nyc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var path = require('path')
var sw = require('spawn-wrap')
var wrapper = require.resolve('./wrap.js')

var yargs = require('yargs')
var yargs = require('yargs/yargs')(process.argv.slice(2))
.usage('$0 [command] [options]\n\nrun your tests with the nyc bin to instrument them with coverage')
.command('report', 'run coverage report for .nyc_output', function (yargs) {
return yargs
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var md5hex = require('md5-hex')
var findCacheDir = require('find-cache-dir')
var js = require('default-require-extensions/js')
var pkgUp = require('pkg-up')
var yargs = require('yargs')
var yargs = require('yargs/yargs')

/* istanbul ignore next */
if (/index\.covered\.js$/.test(__filename)) {
Expand Down
17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,17 @@
"author": "Ben Coe <ben@npmjs.com>",
"license": "ISC",
"dependencies": {
"append-transform": "^0.2.0",
"append-transform": "^0.4.0",
"arrify": "^1.0.1",
"caching-transform": "^1.0.0",
"convert-source-map": "^1.1.2",
"default-require-extensions": "^1.0.0",
"find-cache-dir": "^0.1.1",
"foreground-child": "^1.3.5",
"glob": "^6.0.2",
"glob": "^7.0.3",
"istanbul": "^0.4.1",
"md5-hex": "^1.2.0",
"micromatch": "~2.1.6",
"micromatch": "^2.3.7",
"mkdirp": "^0.5.0",
"pkg-up": "^1.0.0",
"resolve-from": "^2.0.0",
Expand All @@ -84,26 +84,25 @@
"source-map": "^0.5.3",
"spawn-wrap": "^1.1.1",
"strip-bom": "^2.0.0",
"yargs": "^4.1.0"
"yargs": "^4.3.1"
},
"devDependencies": {
"any-path": "^1.3.0",
"chai": "^3.0.0",
"clear-require": "^1.0.1",
"coveralls": "^2.11.4",
"exists-sync": "0.0.3",
"forking-tap": "^0.1.1",
"is-windows": "^0.1.0",
"lodash": "^3.10.0",
"lodash": "^4.6.1",
"newline-regex": "^0.2.1",
"sanitize-filename": "^1.5.3",
"sinon": "^1.15.3",
"source-map-fixtures": "^2.1.0",
"source-map-support": "^0.4.0",
"split-lines": "^1.0.0",
"standard": "^5.2.1",
"tap": "^2.3.4",
"zero-fill": "^2.2.1"
"standard": "^6.0.8",
"tap": "^5.7.0",
"zero-fill": "^2.2.3"
},
"repository": {
"type": "git",
Expand Down
4 changes: 1 addition & 3 deletions test/src/nyc-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ function NYC (opts) {
}

var path = require('path')
var clearRequire = require('clear-require')
var existsSync = require('exists-sync')
var rimraf = require('rimraf')
var sinon = require('sinon')
Expand Down Expand Up @@ -517,8 +516,7 @@ describe('nyc', function () {
'test/nyc-test.js'
]

clearRequire('yargs')
var yargv = require('yargs').argv
var yargv = require('yargs/yargs')(process.argv.slice(2)).argv

var munged = (new NYC()).mungeArgs(yargv)

Expand Down

0 comments on commit 931839a

Please sign in to comment.