Skip to content

Commit

Permalink
store the env values in data
Browse files Browse the repository at this point in the history
  • Loading branch information
Sauradip07 committed Jan 27, 2024
1 parent 24a1229 commit 5760e18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ async function main(): Promise<void> {
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]}`)
Expand Down

0 comments on commit 5760e18

Please sign in to comment.