From 6a47aeecb74537fbdc16f096656c7dbad47e9188 Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Tue, 22 Oct 2024 14:23:44 +0200 Subject: [PATCH] refactor: add comment --- lib/sea.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/sea.ts b/lib/sea.ts index b7879905..6e02c808 100644 --- a/lib/sea.ts +++ b/lib/sea.ts @@ -273,6 +273,7 @@ export default async function sea( await mkdir(tmpDir, { recursive: true }); try { + // change working directory to the temp directory process.chdir(tmpDir); // docs: https://nodejs.org/api/single-executable-applications.html @@ -287,7 +288,7 @@ export default async function sea( }, }; - log.info('Preparing the executable'); + log.info('Creating config file...'); await writeFile(seaConfigFilePath, JSON.stringify(seaConfig)); log.info('Generating the blob...');