We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9c8dca commit 34c2157Copy full SHA for 34c2157
1 file changed
src/main/utils/tmp.ts
@@ -22,7 +22,11 @@ export async function tmpName(options: { template: string }): Promise<string> {
22
}
23
24
export function dirSync(options: { prefix: string }): string {
25
- return fs.mkdtempSync(options.prefix);
+ const tempPath = fs.mkdtempSync(
26
+ path.join(fs.realpathSync(os.tmpdir()), options.prefix),
27
+ );
28
+ _pathsToCleanup.push(tempPath);
29
+ return tempPath;
30
31
32
export function setGracefulCleanup(): void {
0 commit comments