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.
@@ -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, true)
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 = false) {
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "homepage": "https://cli.authjs.dev",
5
5
  "repository": {
6
6
  "type": "git",