Add an auth:migrate npm script for Better Auth's own migrations

Installs @better-auth/cli as a devDependency instead of fetching it via
npx each time, and updates the README to use the new script.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-10 08:22:17 +02:00
co-authored by Claude Sonnet 5
parent cacfce8eae
commit 5059f40d4c
3 changed files with 1429 additions and 23 deletions
+2
View File
@@ -16,6 +16,7 @@
"db:pull": "drizzle-kit pull",
"db:studio": "drizzle-kit studio",
"db:seed": "tsx src/db/seed.ts",
"auth:migrate": "better-auth migrate",
"lint": "eslint",
"format": "prettier --write . && eslint --fix",
"check": "prettier --check .",
@@ -38,6 +39,7 @@
"zod": "^4.5.4"
},
"devDependencies": {
"@better-auth/cli": "^1.4.21",
"@tanstack/devtools-vite": "latest",
"@tanstack/eslint-config": "latest",
"@tanstack/router-cli": "^1.132.0",