@better-auth/cli 1.3.10-beta.4 → 1.3.10-beta.5
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 +2 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -437,7 +437,7 @@ provider: "${opts.database.replace(
|
|
|
437
437
|
].join("\n"),
|
|
438
438
|
imports: [
|
|
439
439
|
{
|
|
440
|
-
path: "better-auth/adapters/
|
|
440
|
+
path: "better-auth/adapters/mongodb",
|
|
441
441
|
variables: [
|
|
442
442
|
{
|
|
443
443
|
name: "mongodbAdapter"
|
|
@@ -2569,7 +2569,7 @@ const generatePrismaSchema = async ({
|
|
|
2569
2569
|
else if (attr.references.onDelete === "restrict") action = "Restrict";
|
|
2570
2570
|
builder.model(modelName).field(
|
|
2571
2571
|
`${referencedCustomModelName.toLowerCase()}`,
|
|
2572
|
-
capitalizeFirstLetter(referencedCustomModelName)
|
|
2572
|
+
`${capitalizeFirstLetter(referencedCustomModelName)}${!attr.required ? "?" : ""}`
|
|
2573
2573
|
).attribute(
|
|
2574
2574
|
`relation(fields: [${fieldName}], references: [${attr.references.field}], onDelete: ${action})`
|
|
2575
2575
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/cli",
|
|
3
|
-
"version": "1.3.10-beta.
|
|
3
|
+
"version": "1.3.10-beta.5",
|
|
4
4
|
"description": "The CLI for Better Auth",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"repository": {
|
|
@@ -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.10-beta.
|
|
57
|
+
"better-auth": "1.3.10-beta.5"
|
|
58
58
|
},
|
|
59
59
|
"files": [
|
|
60
60
|
"dist"
|