Skip to content

Commit c51c7f1

Browse files
committed
add KEEP_TMP_DIRS
1 parent 61357d3 commit c51c7f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli-v3/src/utilities/tempDirectories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function getTmpDir(
3737
// This sometimes fails on Windows with EBUSY
3838
}
3939
};
40-
const removeExitListener = keep ? () => {} : onExit(removeDir);
40+
const removeExitListener = keep || process.env.KEEP_TMP_DIRS ? () => {} : onExit(removeDir);
4141

4242
return {
4343
path: tmpDir,

0 commit comments

Comments
 (0)