Skip to content

Commit 64dd2e6

Browse files
author
Benjamin E. Coe
authored
fix: temporary files should be in tmp folder (#106)
1 parent 60149d0 commit 64dd2e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/parse-args.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const findUp = require('find-up')
33
const { readFileSync } = require('fs')
44
const Yargs = require('yargs/yargs')
55
const parser = require('yargs-parser')
6+
const { resolve } = require('path')
67

78
const configPath = findUp.sync(['.c8rc', '.c8rc.json', '.nycrc', `.nycrc.json`])
89
const config = configPath ? JSON.parse(readFileSync(configPath)) : {}
@@ -86,7 +87,7 @@ function buildYargs (withCommands = false) {
8687
.demandCommand(1)
8788
.check((argv) => {
8889
if (!argv.tempDirectory) {
89-
argv.tempDirectory = argv.reportsDir
90+
argv.tempDirectory = resolve(argv.reportsDir, 'tmp')
9091
}
9192
return true
9293
})

0 commit comments

Comments
 (0)