Skip to content

Commit

Permalink
fix: create temp directory when --no-clean flag is set #663 (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull authored and bcoe committed Sep 6, 2017
1 parent a10d478 commit 3bd1527
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/nyc.js
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 3bd1527

Please sign in to comment.