Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: temporary files should be in tmp folder (#106)
  • Loading branch information
bcoe committed May 20, 2019
1 parent 60149d0 commit 64dd2e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/parse-args.js
Expand Up @@ -3,6 +3,7 @@ const findUp = require('find-up')
const { readFileSync } = require('fs')
const Yargs = require('yargs/yargs')
const parser = require('yargs-parser')
const { resolve } = require('path')

const configPath = findUp.sync(['.c8rc', '.c8rc.json', '.nycrc', `.nycrc.json`])
const config = configPath ? JSON.parse(readFileSync(configPath)) : {}
Expand Down Expand Up @@ -86,7 +87,7 @@ function buildYargs (withCommands = false) {
.demandCommand(1)
.check((argv) => {
if (!argv.tempDirectory) {
argv.tempDirectory = argv.reportsDir
argv.tempDirectory = resolve(argv.reportsDir, 'tmp')
}
return true
})
Expand Down

0 comments on commit 64dd2e6

Please sign in to comment.