diff --git a/lib/commands/instrument.js b/lib/commands/instrument.js index 6ff4a5222..cbf70480e 100644 --- a/lib/commands/instrument.js +++ b/lib/commands/instrument.js @@ -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', @@ -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 })