@better-auth/cli 1.4.2-beta.1 → 1.4.2-beta.2
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 +3 -0
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -440,6 +440,9 @@ const generatePrismaSchema = async ({ adapter, options, file }) => {
|
|
|
440
440
|
}
|
|
441
441
|
const indexedFieldsForModel = indexedFields.get(modelName);
|
|
442
442
|
if (indexedFieldsForModel && indexedFieldsForModel.length > 0) for (const fieldName of indexedFieldsForModel) {
|
|
443
|
+
if (prismaModel) {
|
|
444
|
+
if (prismaModel.properties.some((v) => v.type === "attribute" && v.name === "index" && JSON.stringify(v.args[0]?.value).includes(fieldName))) continue;
|
|
445
|
+
}
|
|
443
446
|
const field = Object.entries(fields).find(([key, attr]) => (attr.fieldName || key) === fieldName)?.[1];
|
|
444
447
|
let indexField = fieldName;
|
|
445
448
|
if (provider === "mysql" && field && field.type === "string") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/cli",
|
|
3
|
-
"version": "1.4.2-beta.
|
|
3
|
+
"version": "1.4.2-beta.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The CLI for Better Auth",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"@types/better-sqlite3": "^7.6.13",
|
|
31
31
|
"@types/prompts": "^2.4.9",
|
|
32
32
|
"@types/semver": "^7.7.1",
|
|
33
|
-
"tsdown": "^0.16.
|
|
33
|
+
"tsdown": "^0.16.6",
|
|
34
34
|
"tsx": "^4.20.6",
|
|
35
35
|
"type-fest": "^5.2.0",
|
|
36
36
|
"typescript": "^5.9.3",
|
|
37
|
-
"@better-auth/passkey": "1.4.2-beta.
|
|
37
|
+
"@better-auth/passkey": "1.4.2-beta.2"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@babel/core": "^7.28.4",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"tinyexec": "^0.3.2",
|
|
63
63
|
"yocto-spinner": "^0.2.3",
|
|
64
64
|
"zod": "^4.1.12",
|
|
65
|
-
"
|
|
66
|
-
"better-auth": "1.4.2-beta.
|
|
65
|
+
"better-auth": "1.4.2-beta.2",
|
|
66
|
+
"@better-auth/core": "1.4.2-beta.2"
|
|
67
67
|
},
|
|
68
68
|
"files": [
|
|
69
69
|
"dist"
|