Skip to content

Commit c48d1d6

Browse files
committed
fix(utils): use fs.mkdtempSync
1 parent cd9aa86 commit c48d1d6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/utils/temporary-file.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@ export function temporaryFile({ name, extension }: { name?: string; extension?:
2121
}
2222

2323
export function temporaryDirectory({ prefix = '' } = {}): string {
24-
const directory = path.join(tempDir, prefix + uniqueString())
25-
fs.mkdirSync(directory)
26-
return directory
24+
return fs.mkdtempSync(path.join(tempDir, prefix))
2725
}

0 commit comments

Comments
 (0)