Skip to content

Commit e0fae93

Browse files
committed
fix(env): comment on env update by default
1 parent 312ba25 commit e0fae93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

commands/secret.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export async function action(options) {
4848

4949
try {
5050
await requireFramework(options.path)
51-
await updateEnvFile({ [key]: value }, options.path, true)
51+
await updateEnvFile({ [key]: value }, options.path)
5252
} catch (error) {
5353
console.error(y.red(error))
5454
}

lib/write-env.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { detectFramework } from "./detect.js"
1313
* @param {string|undefined} envPath
1414
* @param {boolean} comment
1515
*/
16-
export async function updateEnvFile(env, envPath = "", comment = false) {
16+
export async function updateEnvFile(env, envPath = "", comment = true) {
1717
const framework = await detectFramework(envPath)
1818
const dotEnvFile = frameworks[framework]?.envFile
1919
const file = join(process.cwd(), envPath, dotEnvFile)

0 commit comments

Comments
 (0)