Skip to content

Commit

Permalink
fix: load instrumented version of NYC; fix option description based on
Browse files Browse the repository at this point in the history
…@kentcdodds' code review
  • Loading branch information
Benjamin Coe committed Jul 7, 2016
1 parent a67b9f3 commit a6d7842
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/nyc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var yargs = require('yargs/yargs')(process.argv.slice(2))
default: 'text'
})
.option('report-dir', {
describe: 'default directory to output coverage reports in',
describe: 'directory to output coverage reports in',
default: 'coverage'
})
.example('$0 report --reporter=lcov', 'output an HTML lcov report to ./coverage')
Expand Down Expand Up @@ -55,7 +55,7 @@ var yargs = require('yargs/yargs')(process.argv.slice(2))
default: 'text'
})
.option('report-dir', {
describe: 'default directory to output coverage reports in',
describe: 'directory to output coverage reports in',
default: 'coverage'
})
.option('silent', {
Expand Down
7 changes: 6 additions & 1 deletion lib/commands/instrument.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
var NYC = require('../../')
var NYC
try {
NYC = require('../../index.covered.js')
} catch (e) {
NYC = require('../../index.js')
}

exports.command = 'instrument <input> [output]'

Expand Down

0 comments on commit a6d7842

Please sign in to comment.