diff --git a/lib/sea.ts b/lib/sea.ts index d4a78993..c637453c 100644 --- a/lib/sea.ts +++ b/lib/sea.ts @@ -417,7 +417,7 @@ export default async function sea(entryPoint: string, opts: SeaOptions) { await rm(tmpDir, { recursive: true }).catch(() => { log.warn(`Failed to cleanup the temp directory ${tmpDir}`); }); - + process.chdir(previousDirectory); } }