@better-auth/cli 1.3.9-beta.4 → 1.3.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.
- package/dist/index.mjs +8 -2
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -2301,6 +2301,8 @@ const generateDrizzleSchema = async ({
|
|
|
2301
2301
|
if (options.advanced?.database?.useNumberId) {
|
|
2302
2302
|
if (databaseType === "pg") {
|
|
2303
2303
|
id = `serial("id").primaryKey()`;
|
|
2304
|
+
} else if (databaseType === "sqlite") {
|
|
2305
|
+
id = `int("id").primaryKey()`;
|
|
2304
2306
|
} else {
|
|
2305
2307
|
id = `int("id").autoincrement().primaryKey()`;
|
|
2306
2308
|
}
|
|
@@ -2489,7 +2491,10 @@ const generatePrismaSchema = async ({
|
|
|
2489
2491
|
builder.model(modelName).field("id", "String").attribute("id").attribute(`map("_id")`);
|
|
2490
2492
|
} else {
|
|
2491
2493
|
if (options.advanced?.database?.useNumberId) {
|
|
2492
|
-
builder.model(modelName).field("id", "Int").attribute("id")
|
|
2494
|
+
const col = builder.model(modelName).field("id", "Int").attribute("id");
|
|
2495
|
+
if (provider !== "sqlite") {
|
|
2496
|
+
col.attribute("default(autoincrement())");
|
|
2497
|
+
}
|
|
2493
2498
|
} else {
|
|
2494
2499
|
builder.model(modelName).field("id", "String").attribute("id");
|
|
2495
2500
|
}
|
|
@@ -3277,8 +3282,9 @@ async function getBetterAuthInfo(projectRoot, configPath, suppressLogs = false)
|
|
|
3277
3282
|
shouldThrowOnError: false
|
|
3278
3283
|
});
|
|
3279
3284
|
const packageInfo = await getPackageInfo();
|
|
3285
|
+
const betterAuthVersion = packageInfo.dependencies?.["better-auth"] || packageInfo.devDependencies?.["better-auth"] || packageInfo.peerDependencies?.["better-auth"] || packageInfo.optionalDependencies?.["better-auth"] || "Unknown";
|
|
3280
3286
|
return {
|
|
3281
|
-
version:
|
|
3287
|
+
version: betterAuthVersion,
|
|
3282
3288
|
config: sanitizeBetterAuthConfig(config)
|
|
3283
3289
|
};
|
|
3284
3290
|
} finally {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/cli",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.10-beta.1",
|
|
4
4
|
"description": "The CLI for Better Auth",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"repository": {
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"tsx": "^4.20.5",
|
|
30
30
|
"typescript": "^5.9.2",
|
|
31
|
-
"unbuild": "
|
|
31
|
+
"unbuild": "3.6.1"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@babel/core": "^7.28.
|
|
34
|
+
"@babel/core": "^7.28.4",
|
|
35
35
|
"@babel/preset-react": "^7.27.1",
|
|
36
36
|
"@babel/preset-typescript": "^7.27.1",
|
|
37
37
|
"@clack/prompts": "^0.11.0",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"@types/prompts": "^2.4.9",
|
|
42
42
|
"better-sqlite3": "^12.2.0",
|
|
43
43
|
"c12": "^3.2.0",
|
|
44
|
-
"chalk": "^5.6.
|
|
44
|
+
"chalk": "^5.6.2",
|
|
45
45
|
"commander": "^12.1.0",
|
|
46
|
-
"dotenv": "^
|
|
46
|
+
"dotenv": "^17.2.2",
|
|
47
47
|
"drizzle-orm": "^0.33.0",
|
|
48
48
|
"get-tsconfig": "^4.10.1",
|
|
49
49
|
"open": "^10.2.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"tinyexec": "^0.3.2",
|
|
55
55
|
"yocto-spinner": "^0.2.3",
|
|
56
56
|
"zod": "^4.1.5",
|
|
57
|
-
"better-auth": "1.3.
|
|
57
|
+
"better-auth": "1.3.10-beta.1"
|
|
58
58
|
},
|
|
59
59
|
"files": [
|
|
60
60
|
"dist"
|