Skip to content

Commit

Permalink
hotfix on generation on .env-example for empty check
Browse files Browse the repository at this point in the history
  • Loading branch information
Erdem Köşk committed Jan 24, 2024
1 parent 5d8140f commit 6e5b827
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .env-example

This file was deleted.

2 changes: 1 addition & 1 deletion lib/handler/envHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ export async function generateEnvExampleFile (): Promise<boolean> {

const envValues = await getValuesInEnv({ targetPath: path.join(currentDirectory, '.env') })

const result = envValues.data.map(innerArr => innerArr[0] + '=').join('\n')
const result = envValues.data.map(innerArr => innerArr[0] !== '' ? innerArr[0] + '=' : '').join('\n')

await writeFile(path.join(currentDirectory, '.env-example'), result)

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "envolve",
"version": "1.2.1",
"version": "1.2.2",
"description": "Envolve CLI is a powerful tool for managing environment variables in your projects. It allows you to easily create, update, compare, and sync environment files across different services.",
"main": "index.ts",
"scripts": {
Expand Down

0 comments on commit 6e5b827

Please sign in to comment.