auth 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commands/secret.js +1 -1
- package/lib/write-env.js +1 -1
- package/package.json +1 -1
package/commands/secret.js
CHANGED
|
@@ -48,7 +48,7 @@ export async function action(options) {
|
|
|
48
48
|
|
|
49
49
|
try {
|
|
50
50
|
await requireFramework(options.path)
|
|
51
|
-
await updateEnvFile({ [key]: value }, options.path
|
|
51
|
+
await updateEnvFile({ [key]: value }, options.path)
|
|
52
52
|
} catch (error) {
|
|
53
53
|
console.error(y.red(error))
|
|
54
54
|
}
|
package/lib/write-env.js
CHANGED
|
@@ -13,7 +13,7 @@ import { detectFramework } from "./detect.js"
|
|
|
13
13
|
* @param {string|undefined} envPath
|
|
14
14
|
* @param {boolean} comment
|
|
15
15
|
*/
|
|
16
|
-
export async function updateEnvFile(env, envPath = "", comment =
|
|
16
|
+
export async function updateEnvFile(env, envPath = "", comment = true) {
|
|
17
17
|
const framework = await detectFramework(envPath)
|
|
18
18
|
const dotEnvFile = frameworks[framework]?.envFile
|
|
19
19
|
const file = join(process.cwd(), envPath, dotEnvFile)
|