File tree 6 files changed +20
-7
lines changed
6 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ Any configuration options that can be set via the command line can also be speci
291
291
],
292
292
"cache" : true ,
293
293
"all" : true ,
294
- "temp-directory " : " ./alternative-tmp" ,
294
+ "temp-dir " : " ./alternative-tmp" ,
295
295
"report-dir" : " ./alternative"
296
296
}
297
297
}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ function NYC (config) {
41
41
this . config = config
42
42
43
43
this . subprocessBin = config . subprocessBin || path . resolve ( __dirname , './bin/nyc.js' )
44
- this . _tempDirectory = config . tempDirectory || './.nyc_output'
44
+ this . _tempDirectory = config . tempDir || config . tempDirectory || './.nyc_output'
45
45
this . _instrumenterLib = require ( config . instrumenter || './lib/instrumenters/istanbul' )
46
46
this . _reportDir = config . reportDir || 'coverage'
47
47
this . _sourceMap = typeof config . sourceMap === 'boolean' ? config . sourceMap : true
Original file line number Diff line number Diff line change @@ -24,10 +24,14 @@ exports.builder = function (yargs) {
24
24
type : 'text' ,
25
25
default : 'coverage.json'
26
26
} )
27
- . option ( 'temp-directory' , {
27
+ . option ( 'temp-dir' , {
28
+ alias : 't' ,
28
29
describe : 'directory to read raw coverage information from' ,
29
30
default : './.nyc_output'
30
31
} )
32
+ . option ( 'temp-directory' , {
33
+ hidden : true
34
+ } )
31
35
. example ( '$0 merge ./out coverage.json' , 'merge together reports in ./out and output as coverage.json' )
32
36
}
33
37
Original file line number Diff line number Diff line change @@ -20,10 +20,14 @@ exports.builder = function (yargs) {
20
20
describe : 'directory to output coverage reports in' ,
21
21
default : 'coverage'
22
22
} )
23
- . option ( 'temp-directory' , {
23
+ . option ( 'temp-dir' , {
24
+ alias : 't' ,
24
25
describe : 'directory to read raw coverage information from' ,
25
26
default : './.nyc_output'
26
27
} )
28
+ . option ( 'temp-directory' , {
29
+ hidden : true
30
+ } )
27
31
. option ( 'show-process-tree' , {
28
32
describe : 'display the tree of spawned processes' ,
29
33
default : false ,
Original file line number Diff line number Diff line change @@ -222,11 +222,16 @@ Config.buildYargs = function (cwd) {
222
222
description : 'specify a different .nycrc path' ,
223
223
global : false
224
224
} )
225
- . option ( 'temp-directory' , {
225
+ . option ( 'temp-dir' , {
226
+ alias : 't' ,
226
227
describe : 'directory to output raw coverage information to' ,
227
228
default : './.nyc_output' ,
228
229
global : false
229
230
} )
231
+ . option ( 'temp-directory' , {
232
+ hidden : true ,
233
+ global : false
234
+ } )
230
235
. option ( 'skip-empty' , {
231
236
describe : 'don\'t show empty files (no lines of code) in report' ,
232
237
default : false ,
Original file line number Diff line number Diff line change 11
11
"build" : " node ./build-tests" ,
12
12
"instrument" : " node ./build-self-coverage.js" ,
13
13
"test-integration" : " tap -t120 --no-cov -b ./test/build/*.js && mocha --timeout=15000 ./test/nyc-bin.js" ,
14
- "test-mocha" : " node ./bin/nyc --no-clean --silent --temp-directory =./.self_coverage mocha ./test/nyc.js ./test/process-args.js" ,
15
- "report" : " node ./bin/nyc --temp-directory ./.self_coverage/ -r text -r lcov report" ,
14
+ "test-mocha" : " node ./bin/nyc --no-clean --silent --temp-dir =./.self_coverage mocha ./test/nyc.js ./test/process-args.js" ,
15
+ "report" : " node ./bin/nyc --temp-dir ./.self_coverage/ -r text -r lcov report" ,
16
16
"release" : " standard-version"
17
17
},
18
18
"bin" : {
You can’t perform that action at this time.
0 commit comments