Skip to content

Commit 6e5b827

Browse files
author
Erdem Köşk
committed
hotfix on generation on .env-example for empty check
1 parent 5d8140f commit 6e5b827

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

Diff for: .env-example

-2
This file was deleted.

Diff for: lib/handler/envHandler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ export async function generateEnvExampleFile (): Promise<boolean> {
348348

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

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

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

Diff for: package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "envolve",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"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.",
55
"main": "index.ts",
66
"scripts": {

0 commit comments

Comments
 (0)