Skip to content

Commit

Permalink
feat: allow instrument-only to produce sourcemaps (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
schutm authored and bcoe committed Oct 15, 2017
1 parent 425c0fd commit f31d7a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/commands/instrument.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ exports.builder = function (yargs) {
type: 'boolean',
description: 'should nyc detect and handle source maps?'
})
.option('produce-source-map', {
default: false,
type: 'boolean',
description: "should nyc's instrumenter produce source maps?"
})
.option('instrument', {
default: true,
type: 'boolean',
Expand All @@ -44,6 +49,7 @@ exports.handler = function (argv) {
var nyc = new NYC({
instrumenter: argv.instrumenter,
sourceMap: argv.sourceMap,
produceSourceMap: argv.produceSourceMap,
extension: argv.extension,
require: argv.require
})
Expand Down

0 comments on commit f31d7a6

Please sign in to comment.