Skip to content

Commit f31d7a6

Browse files
schutmbcoe
authored andcommitted
feat: allow instrument-only to produce sourcemaps (#674)
1 parent 425c0fd commit f31d7a6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/commands/instrument.js

+6
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ exports.builder = function (yargs) {
2727
type: 'boolean',
2828
description: 'should nyc detect and handle source maps?'
2929
})
30+
.option('produce-source-map', {
31+
default: false,
32+
type: 'boolean',
33+
description: "should nyc's instrumenter produce source maps?"
34+
})
3035
.option('instrument', {
3136
default: true,
3237
type: 'boolean',
@@ -44,6 +49,7 @@ exports.handler = function (argv) {
4449
var nyc = new NYC({
4550
instrumenter: argv.instrumenter,
4651
sourceMap: argv.sourceMap,
52+
produceSourceMap: argv.produceSourceMap,
4753
extension: argv.extension,
4854
require: argv.require
4955
})

0 commit comments

Comments
 (0)