mirror of
https://github.com/better-auth/better-auth.git
synced 2026-08-22 16:42:53 -05:00
Closes #8622 When the old @better-auth/cli detects that better-auth >= 1.5.0 is installed, it now prints a warning directing users to the new `auth` CLI (`npx auth@latest`). This prevents unexpected behavior from the old CLI generating incorrect schemas for v1.5.x projects. Uses `createRequire` from the user's CWD to resolve better-auth's package.json and `semver.gte` for version comparison. Uses `chalk` for terminal colors (consistent with the rest of the CLI). Silently skips the check if better-auth is not installed.