Skip to content

Commit

Permalink
chore: Moving over mkdir for file subject output
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Nov 24, 2021
1 parent 5ee6e58 commit b1ec138
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cli/tests/lib/output.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ function tmpDir() {
.toString(36)
.replace(/[^a-z]+/g, '')
.substr(0, 12);
if (!existsSync(output)) {
mkdirSync(output, { recursive: true });
}
return resolve(output, str);
}

async function subject(name) {
let src = resolve(subjects, name);
let dest = tmpDir();
if (!existsSync(dest)) {
mkdirSync(dest, { recursive: true });
}
await promisify(copy)(src, dest);
return dest;
}
Expand Down

0 comments on commit b1ec138

Please sign in to comment.