From 0469abd4a9c9270a1fdc962969e36e63699af8b4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 10 Dec 2017 21:51:33 +0100 Subject: upgrade dependencies --- node_modules/nyc/lib/commands/instrument.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'node_modules/nyc/lib/commands/instrument.js') diff --git a/node_modules/nyc/lib/commands/instrument.js b/node_modules/nyc/lib/commands/instrument.js index 6ff4a5222..cf1e97461 100644 --- a/node_modules/nyc/lib/commands/instrument.js +++ b/node_modules/nyc/lib/commands/instrument.js @@ -11,7 +11,6 @@ exports.describe = 'instruments a file or a directory tree and writes the instru exports.builder = function (yargs) { return yargs - .usage('$0 instrument [output]') .option('require', { alias: 'i', default: [], @@ -27,6 +26,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 +48,7 @@ exports.handler = function (argv) { var nyc = new NYC({ instrumenter: argv.instrumenter, sourceMap: argv.sourceMap, + produceSourceMap: argv.produceSourceMap, extension: argv.extension, require: argv.require }) -- cgit v1.2.3