authverse 1.0.6-canary.1 → 1.0.7-canary.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.cjs
CHANGED
|
@@ -221,12 +221,15 @@ var prismaRun = async ({ authUi, database }) => {
|
|
|
221
221
|
}
|
|
222
222
|
} else {
|
|
223
223
|
const schemaPath = import_path2.default.join(prismaDir, "schema.prisma");
|
|
224
|
-
const
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
224
|
+
const schemaContent = import_fs2.default.readFileSync(schemaPath, "utf-8");
|
|
225
|
+
if (!schemaContent.includes("User") && !schemaContent.includes("Session") && !schemaContent.includes("Account") && !schemaContent.includes("Verification")) {
|
|
226
|
+
const templatePath = import_path2.default.resolve(
|
|
227
|
+
__dirname,
|
|
228
|
+
`./template/prisma/${database}/schema.prisma_copy`
|
|
229
|
+
);
|
|
230
|
+
import_fs2.default.appendFileSync(schemaPath, "\n");
|
|
231
|
+
import_fs2.default.appendFileSync(schemaPath, import_fs2.default.readFileSync(templatePath));
|
|
232
|
+
}
|
|
230
233
|
}
|
|
231
234
|
if (!packageJson2.dependencies?.["better-auth"]) {
|
|
232
235
|
console.log(import_chalk2.default.yellow("\n\u2699\uFE0F Initializing better-auth...\n"));
|
package/dist/index.js
CHANGED
|
@@ -197,12 +197,15 @@ var prismaRun = async ({ authUi, database }) => {
|
|
|
197
197
|
}
|
|
198
198
|
} else {
|
|
199
199
|
const schemaPath = path2.join(prismaDir, "schema.prisma");
|
|
200
|
-
const
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
200
|
+
const schemaContent = fs2.readFileSync(schemaPath, "utf-8");
|
|
201
|
+
if (!schemaContent.includes("User") && !schemaContent.includes("Session") && !schemaContent.includes("Account") && !schemaContent.includes("Verification")) {
|
|
202
|
+
const templatePath = path2.resolve(
|
|
203
|
+
__dirname,
|
|
204
|
+
`./template/prisma/${database}/schema.prisma_copy`
|
|
205
|
+
);
|
|
206
|
+
fs2.appendFileSync(schemaPath, "\n");
|
|
207
|
+
fs2.appendFileSync(schemaPath, fs2.readFileSync(templatePath));
|
|
208
|
+
}
|
|
206
209
|
}
|
|
207
210
|
if (!packageJson2.dependencies?.["better-auth"]) {
|
|
208
211
|
console.log(chalk2.yellow("\n\u2699\uFE0F Initializing better-auth...\n"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "authverse",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7-canary.1",
|
|
4
4
|
"description": "Authverse Fast modern CLI to generate full auth systems with OAuth Prisma Drizzle better auth and ready-to-use ShadCN UI screens",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "git+https://github.com/abdirahmanmahamoud/authverse.git"
|