Skip to content

Commit 3bd1527

Browse files
boneskullbcoe
authored andcommitted
fix: create temp directory when --no-clean flag is set #663 (#664)
1 parent a10d478 commit 3bd1527

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/nyc.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ if (argv._[0] === 'report') {
3838
else config.instrumenter = './lib/instrumenters/istanbul'
3939

4040
var nyc = (new NYC(config))
41-
if (config.clean) nyc.reset()
41+
if (config.clean) {
42+
nyc.reset()
43+
} else {
44+
nyc.createTempDirectory()
45+
}
4246
if (config.all) nyc.addAllFiles()
4347

4448
var env = {

0 commit comments

Comments
 (0)