Skip to content

Commit 7269753

Browse files
Update src/helpers.ts
Co-authored-by: David Sanders <[email protected]>
1 parent c776075 commit 7269753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export async function withTempDir<T>(fn: (dir: string) => Promise<T>) {
1414
result = await fn(dir);
1515
} catch (err) {
1616
d('work failed');
17-
await fs.rm(dir, { recursive: true });
17+
await fs.rm(dir, { recursive: true, force: true });
1818
throw err;
1919
}
2020
d('work succeeded');

0 commit comments

Comments
 (0)