From 5760e18bc8ccd17fd77938b54483b64165006bd5 Mon Sep 17 00:00:00 2001 From: SauradipGhosh Date: Sat, 27 Jan 2024 13:58:05 +0530 Subject: [PATCH] store the env values in data --- setup.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.ts b/setup.ts index 3d2e1b5f75..fc69aa8060 100644 --- a/setup.ts +++ b/setup.ts @@ -289,6 +289,7 @@ async function main(): Promise { if (hasChanges) { // Update .env with tempEnv values for (const key in tempEnv) { + const data = fs.readFileSync(envPath, 'utf8'); const result = existingEnv[key] !== undefined ? data.replace(`${key}=${existingEnv[key]}`, `${key}=${tempEnv[key]}`)