Skip to content

Commit

Permalink
always create temp dir; closes #663
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Sep 5, 2017
1 parent b2ff72d commit d36c080
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/nyc.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ if (argv._[0] === 'report') {
else config.instrumenter = './lib/instrumenters/istanbul'

var nyc = (new NYC(config))
if (config.clean) nyc.reset()
if (config.clean) {
nyc.reset()
} else {
nyc.createTempDirectory()
}
if (config.all) nyc.addAllFiles()

var env = {
Expand Down

0 comments on commit d36c080

Please sign in to comment.