Skip to content

Commit

Permalink
fix: create directory if it does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Mar 24, 2018
1 parent ef106fb commit 1de44da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/get_version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import HTTP from 'http-call'

async function touch(file: string) {
if (!await fs.pathExists(file)) {
await fs.writeJSON(file, {})
await fs.outputJSON(file, {})
} else {
await fs.utimes(file, new Date(), new Date())
}
Expand Down

0 comments on commit 1de44da

Please sign in to comment.