Skip to content

Commit

Permalink
fix: add force options to remove
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Oct 28, 2024
1 parent 7e47f7c commit 28b8034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ export default async function sea(entryPoint: string, opts: SeaOptions) {
throw new Error(`Error while creating the executable: ${error}`);
} finally {
// cleanup the temp directory
await rm(tmpDir, { recursive: true }).catch(() => {
await rm(tmpDir, { recursive: true, force: true }).catch(() => {
log.warn(`Failed to cleanup the temp directory ${tmpDir}`);
});
}
Expand Down

0 comments on commit 28b8034

Please sign in to comment.