mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-29 18:36:34 -05:00
fix(cli): info shows the correct version (#4547)
This commit is contained in:
@@ -331,9 +331,15 @@ async function getBetterAuthInfo(
|
||||
shouldThrowOnError: false,
|
||||
});
|
||||
const packageInfo = await getPackageInfo();
|
||||
const betterAuthVersion =
|
||||
packageInfo.dependencies?.["better-auth"] ||
|
||||
packageInfo.devDependencies?.["better-auth"] ||
|
||||
packageInfo.peerDependencies?.["better-auth"] ||
|
||||
packageInfo.optionalDependencies?.["better-auth"] ||
|
||||
"Unknown";
|
||||
|
||||
return {
|
||||
version: packageInfo.version || "Unknown",
|
||||
version: betterAuthVersion,
|
||||
config: sanitizeBetterAuthConfig(config),
|
||||
};
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user