@better-auth/cli 1.4.8 → 1.4.10-beta.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.
Files changed (2) hide show
  1. package/dist/index.mjs +5 -3
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -947,7 +947,8 @@ async function getConfig({ cwd, configPath, shouldThrowOnError = false }) {
947
947
  const { config } = await loadConfig({
948
948
  configFile: resolvedPath,
949
949
  dotenv: true,
950
- jitiOptions: jitiOptions(cwd)
950
+ jitiOptions: jitiOptions(cwd),
951
+ cwd
951
952
  });
952
953
  if (!("auth" in config) && !isDefaultExport(config)) {
953
954
  if (shouldThrowOnError) throw new Error(`Couldn't read your auth config in ${resolvedPath}. Make sure to default export your auth instance or to export as a variable named auth.`);
@@ -959,7 +960,8 @@ async function getConfig({ cwd, configPath, shouldThrowOnError = false }) {
959
960
  if (!configFile) for (const possiblePath of possiblePaths) try {
960
961
  const { config } = await loadConfig({
961
962
  configFile: possiblePath,
962
- jitiOptions: jitiOptions(cwd)
963
+ jitiOptions: jitiOptions(cwd),
964
+ cwd
963
965
  });
964
966
  if (Object.keys(config).length > 0) {
965
967
  configFile = config.auth?.options || config.default?.options || null;
@@ -1339,7 +1341,7 @@ async function getBetterAuthInfo(projectRoot, configPath, suppressLogs = false)
1339
1341
  const config = await getConfig({
1340
1342
  cwd: projectRoot,
1341
1343
  configPath,
1342
- shouldThrowOnError: false
1344
+ shouldThrowOnError: true
1343
1345
  });
1344
1346
  const packageInfo = await getPackageInfo();
1345
1347
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth/cli",
3
- "version": "1.4.8",
3
+ "version": "1.4.10-beta.1",
4
4
  "type": "module",
5
5
  "description": "The CLI for Better Auth",
6
6
  "module": "dist/index.mjs",
@@ -37,7 +37,7 @@
37
37
  "tsx": "^4.20.6",
38
38
  "type-fest": "^5.2.0",
39
39
  "typescript": "^5.9.3",
40
- "@better-auth/passkey": "1.4.8"
40
+ "@better-auth/passkey": "1.4.10-beta.1"
41
41
  },
42
42
  "dependencies": {
43
43
  "@babel/core": "^7.28.4",
@@ -61,9 +61,9 @@
61
61
  "semver": "^7.7.2",
62
62
  "yocto-spinner": "^0.2.3",
63
63
  "zod": "^4.1.12",
64
- "@better-auth/telemetry": "1.4.8",
65
- "better-auth": "^1.4.8",
66
- "@better-auth/core": "1.4.8"
64
+ "@better-auth/core": "1.4.10-beta.1",
65
+ "@better-auth/telemetry": "1.4.10-beta.1",
66
+ "better-auth": "^1.4.10-beta.1"
67
67
  },
68
68
  "files": [
69
69
  "dist"