We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20e8dda commit 1489e94Copy full SHA for 1489e94
lib/sea.ts
@@ -358,6 +358,7 @@ export default async function sea(entryPoint: string, opts: SeaOptions) {
358
359
await mkdir(tmpDir, { recursive: true });
360
361
+ const previousDirectory = process.cwd();
362
try {
363
// change working directory to the temp directory
364
process.chdir(tmpDir);
@@ -416,5 +417,7 @@ export default async function sea(entryPoint: string, opts: SeaOptions) {
416
417
await rm(tmpDir, { recursive: true }).catch(() => {
418
log.warn(`Failed to cleanup the temp directory ${tmpDir}`);
419
});
420
+
421
+ process.chdir(previousDirectory);
422
}
423
0 commit comments