diff --git a/lib/temp-directory.js b/lib/temp-directory.js index 6b00490d..84e60331 100644 --- a/lib/temp-directory.js +++ b/lib/temp-directory.js @@ -1,5 +1,5 @@ import { join } from 'path'; -import { promises as fs } from 'fs'; +import { promises as fs, realpathSync } from 'fs'; import { randomUUID } from 'crypto'; import { tmpdir } from 'os'; @@ -11,6 +11,10 @@ export async function create(context) { } else { context.path = join(tmpdir(), randomUUID()); } + + await fs.mkdir(context.path, { recursive: true }); + context.path = realpathSync(context.path); + context.emit( 'data', 'verbose',