create-prisma 0.4.2-next.37.85.1 → 0.4.2-next.37.86.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/cli.mjs +1 -1
- package/dist/{create-BmezPnjP.mjs → create-_RveOsMX.mjs} +18 -18
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/templates/create/astro/prisma/contract.ts.hbs +2 -2
- package/templates/create/elysia/prisma/contract.ts.hbs +2 -2
- package/templates/create/hono/prisma/contract.ts.hbs +2 -2
- package/templates/create/nest/prisma/contract.ts.hbs +2 -2
- package/templates/create/next/prisma/contract.ts.hbs +2 -2
- package/templates/create/nuxt/prisma/contract.ts.hbs +2 -2
- package/templates/create/svelte/prisma/contract.ts.hbs +2 -2
- package/templates/create/tanstack-start/prisma/contract.ts.hbs +2 -2
- package/templates/create/turborepo/packages/db/prisma/contract.ts.hbs +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -40,7 +40,7 @@ async function getAnonymousId() {
|
|
|
40
40
|
}
|
|
41
41
|
function getCommonProperties() {
|
|
42
42
|
return {
|
|
43
|
-
"cli-version": "0.4.2-next.37.
|
|
43
|
+
"cli-version": "0.4.2-next.37.86.1",
|
|
44
44
|
"node-version": process.version,
|
|
45
45
|
platform: process.platform,
|
|
46
46
|
arch: process.arch
|
|
@@ -140,25 +140,25 @@ function requiresDotenvConfigImport(packageManager) {
|
|
|
140
140
|
//#region src/constants/dependencies.ts
|
|
141
141
|
const dependencyVersionMap = {
|
|
142
142
|
"@elysiajs/node": "^1.4.5",
|
|
143
|
-
"@prisma-next/adapter-mongo": "0.
|
|
144
|
-
"@prisma-next/adapter-postgres": "0.
|
|
145
|
-
"@prisma-next/cli": "0.
|
|
146
|
-
"@prisma-next/contract": "0.
|
|
147
|
-
"@prisma-next/family-mongo": "0.
|
|
148
|
-
"@prisma-next/family-sql": "0.
|
|
149
|
-
"@prisma-next/mongo": "0.
|
|
150
|
-
"@prisma-next/mongo-contract": "0.
|
|
151
|
-
"@prisma-next/mongo-contract-ts": "0.
|
|
152
|
-
"@prisma-next/mongo-orm": "0.
|
|
153
|
-
"@prisma-next/postgres": "0.
|
|
154
|
-
"@prisma-next/sql-contract": "0.
|
|
155
|
-
"@prisma-next/sql-contract-ts": "0.
|
|
156
|
-
"@prisma-next/sql-orm-client": "0.
|
|
157
|
-
"@prisma-next/target-mongo": "0.
|
|
158
|
-
"@prisma-next/target-postgres": "0.
|
|
143
|
+
"@prisma-next/adapter-mongo": "0.7.0",
|
|
144
|
+
"@prisma-next/adapter-postgres": "0.7.0",
|
|
145
|
+
"@prisma-next/cli": "0.7.0",
|
|
146
|
+
"@prisma-next/contract": "0.7.0",
|
|
147
|
+
"@prisma-next/family-mongo": "0.7.0",
|
|
148
|
+
"@prisma-next/family-sql": "0.7.0",
|
|
149
|
+
"@prisma-next/mongo": "0.7.0",
|
|
150
|
+
"@prisma-next/mongo-contract": "0.7.0",
|
|
151
|
+
"@prisma-next/mongo-contract-ts": "0.7.0",
|
|
152
|
+
"@prisma-next/mongo-orm": "0.7.0",
|
|
153
|
+
"@prisma-next/postgres": "0.7.0",
|
|
154
|
+
"@prisma-next/sql-contract": "0.7.0",
|
|
155
|
+
"@prisma-next/sql-contract-ts": "0.7.0",
|
|
156
|
+
"@prisma-next/sql-orm-client": "0.7.0",
|
|
157
|
+
"@prisma-next/target-mongo": "0.7.0",
|
|
158
|
+
"@prisma-next/target-postgres": "0.7.0",
|
|
159
159
|
"@types/node": "^25.6.2",
|
|
160
160
|
dotenv: "^17.4.2",
|
|
161
|
-
"prisma-next": "0.
|
|
161
|
+
"prisma-next": "0.7.0",
|
|
162
162
|
tsx: "^4.21.0"
|
|
163
163
|
};
|
|
164
164
|
function getWorkspaceDependencyVersion(packageManager) {
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as DatabaseProviderSchema, c as SchemaPresetSchema, i as CreateTemplateSchema, n as AuthoringStyleSchema, o as DatabaseUrlSchema, r as CreateCommandInputSchema, s as PackageManagerSchema, t as runCreateCommand } from "./create-
|
|
2
|
+
import { a as DatabaseProviderSchema, c as SchemaPresetSchema, i as CreateTemplateSchema, n as AuthoringStyleSchema, o as DatabaseUrlSchema, r as CreateCommandInputSchema, s as PackageManagerSchema, t as runCreateCommand } from "./create-_RveOsMX.mjs";
|
|
3
3
|
import { os } from "@orpc/server";
|
|
4
4
|
import { createCli } from "trpc-cli";
|
|
5
5
|
|
|
6
6
|
//#region src/index.ts
|
|
7
|
-
const CLI_VERSION = "0.4.2-next.37.
|
|
7
|
+
const CLI_VERSION = "0.4.2-next.37.86.1";
|
|
8
8
|
const router = os.router({ create: os.meta({
|
|
9
9
|
description: "Create a new project with Prisma setup",
|
|
10
10
|
default: true,
|
package/package.json
CHANGED
|
@@ -58,7 +58,7 @@ export const contract = defineContract(
|
|
|
58
58
|
id: field.id.uuidv7(),
|
|
59
59
|
email: field.text().unique(),
|
|
60
60
|
name: field.text().optional(),
|
|
61
|
-
createdAt: field.createdAt(),
|
|
61
|
+
createdAt: field.temporal.createdAt(),
|
|
62
62
|
},
|
|
63
63
|
relations: {
|
|
64
64
|
posts: rel.hasMany("Post", { by: "authorId" }),
|
|
@@ -71,7 +71,7 @@ export const contract = defineContract(
|
|
|
71
71
|
title: field.text(),
|
|
72
72
|
content: field.text().optional(),
|
|
73
73
|
authorId: field.uuid(),
|
|
74
|
-
createdAt: field.createdAt(),
|
|
74
|
+
createdAt: field.temporal.createdAt(),
|
|
75
75
|
},
|
|
76
76
|
relations: {
|
|
77
77
|
author: rel.belongsTo("User", { from: "authorId", to: "id" }),
|
|
@@ -58,7 +58,7 @@ export const contract = defineContract(
|
|
|
58
58
|
id: field.id.uuidv7(),
|
|
59
59
|
email: field.text().unique(),
|
|
60
60
|
name: field.text().optional(),
|
|
61
|
-
createdAt: field.createdAt(),
|
|
61
|
+
createdAt: field.temporal.createdAt(),
|
|
62
62
|
},
|
|
63
63
|
relations: {
|
|
64
64
|
posts: rel.hasMany("Post", { by: "authorId" }),
|
|
@@ -71,7 +71,7 @@ export const contract = defineContract(
|
|
|
71
71
|
title: field.text(),
|
|
72
72
|
content: field.text().optional(),
|
|
73
73
|
authorId: field.uuid(),
|
|
74
|
-
createdAt: field.createdAt(),
|
|
74
|
+
createdAt: field.temporal.createdAt(),
|
|
75
75
|
},
|
|
76
76
|
relations: {
|
|
77
77
|
author: rel.belongsTo("User", { from: "authorId", to: "id" }),
|
|
@@ -58,7 +58,7 @@ export const contract = defineContract(
|
|
|
58
58
|
id: field.id.uuidv7(),
|
|
59
59
|
email: field.text().unique(),
|
|
60
60
|
name: field.text().optional(),
|
|
61
|
-
createdAt: field.createdAt(),
|
|
61
|
+
createdAt: field.temporal.createdAt(),
|
|
62
62
|
},
|
|
63
63
|
relations: {
|
|
64
64
|
posts: rel.hasMany("Post", { by: "authorId" }),
|
|
@@ -71,7 +71,7 @@ export const contract = defineContract(
|
|
|
71
71
|
title: field.text(),
|
|
72
72
|
content: field.text().optional(),
|
|
73
73
|
authorId: field.uuid(),
|
|
74
|
-
createdAt: field.createdAt(),
|
|
74
|
+
createdAt: field.temporal.createdAt(),
|
|
75
75
|
},
|
|
76
76
|
relations: {
|
|
77
77
|
author: rel.belongsTo("User", { from: "authorId", to: "id" }),
|
|
@@ -58,7 +58,7 @@ export const contract = defineContract(
|
|
|
58
58
|
id: field.id.uuidv7(),
|
|
59
59
|
email: field.text().unique(),
|
|
60
60
|
name: field.text().optional(),
|
|
61
|
-
createdAt: field.createdAt(),
|
|
61
|
+
createdAt: field.temporal.createdAt(),
|
|
62
62
|
},
|
|
63
63
|
relations: {
|
|
64
64
|
posts: rel.hasMany("Post", { by: "authorId" }),
|
|
@@ -71,7 +71,7 @@ export const contract = defineContract(
|
|
|
71
71
|
title: field.text(),
|
|
72
72
|
content: field.text().optional(),
|
|
73
73
|
authorId: field.uuid(),
|
|
74
|
-
createdAt: field.createdAt(),
|
|
74
|
+
createdAt: field.temporal.createdAt(),
|
|
75
75
|
},
|
|
76
76
|
relations: {
|
|
77
77
|
author: rel.belongsTo("User", { from: "authorId", to: "id" }),
|
|
@@ -58,7 +58,7 @@ export const contract = defineContract(
|
|
|
58
58
|
id: field.id.uuidv7(),
|
|
59
59
|
email: field.text().unique(),
|
|
60
60
|
name: field.text().optional(),
|
|
61
|
-
createdAt: field.createdAt(),
|
|
61
|
+
createdAt: field.temporal.createdAt(),
|
|
62
62
|
},
|
|
63
63
|
relations: {
|
|
64
64
|
posts: rel.hasMany("Post", { by: "authorId" }),
|
|
@@ -71,7 +71,7 @@ export const contract = defineContract(
|
|
|
71
71
|
title: field.text(),
|
|
72
72
|
content: field.text().optional(),
|
|
73
73
|
authorId: field.uuid(),
|
|
74
|
-
createdAt: field.createdAt(),
|
|
74
|
+
createdAt: field.temporal.createdAt(),
|
|
75
75
|
},
|
|
76
76
|
relations: {
|
|
77
77
|
author: rel.belongsTo("User", { from: "authorId", to: "id" }),
|
|
@@ -58,7 +58,7 @@ export const contract = defineContract(
|
|
|
58
58
|
id: field.id.uuidv7(),
|
|
59
59
|
email: field.text().unique(),
|
|
60
60
|
name: field.text().optional(),
|
|
61
|
-
createdAt: field.createdAt(),
|
|
61
|
+
createdAt: field.temporal.createdAt(),
|
|
62
62
|
},
|
|
63
63
|
relations: {
|
|
64
64
|
posts: rel.hasMany("Post", { by: "authorId" }),
|
|
@@ -71,7 +71,7 @@ export const contract = defineContract(
|
|
|
71
71
|
title: field.text(),
|
|
72
72
|
content: field.text().optional(),
|
|
73
73
|
authorId: field.uuid(),
|
|
74
|
-
createdAt: field.createdAt(),
|
|
74
|
+
createdAt: field.temporal.createdAt(),
|
|
75
75
|
},
|
|
76
76
|
relations: {
|
|
77
77
|
author: rel.belongsTo("User", { from: "authorId", to: "id" }),
|
|
@@ -58,7 +58,7 @@ export const contract = defineContract(
|
|
|
58
58
|
id: field.id.uuidv7(),
|
|
59
59
|
email: field.text().unique(),
|
|
60
60
|
name: field.text().optional(),
|
|
61
|
-
createdAt: field.createdAt(),
|
|
61
|
+
createdAt: field.temporal.createdAt(),
|
|
62
62
|
},
|
|
63
63
|
relations: {
|
|
64
64
|
posts: rel.hasMany("Post", { by: "authorId" }),
|
|
@@ -71,7 +71,7 @@ export const contract = defineContract(
|
|
|
71
71
|
title: field.text(),
|
|
72
72
|
content: field.text().optional(),
|
|
73
73
|
authorId: field.uuid(),
|
|
74
|
-
createdAt: field.createdAt(),
|
|
74
|
+
createdAt: field.temporal.createdAt(),
|
|
75
75
|
},
|
|
76
76
|
relations: {
|
|
77
77
|
author: rel.belongsTo("User", { from: "authorId", to: "id" }),
|
|
@@ -58,7 +58,7 @@ export const contract = defineContract(
|
|
|
58
58
|
id: field.id.uuidv7(),
|
|
59
59
|
email: field.text().unique(),
|
|
60
60
|
name: field.text().optional(),
|
|
61
|
-
createdAt: field.createdAt(),
|
|
61
|
+
createdAt: field.temporal.createdAt(),
|
|
62
62
|
},
|
|
63
63
|
relations: {
|
|
64
64
|
posts: rel.hasMany("Post", { by: "authorId" }),
|
|
@@ -71,7 +71,7 @@ export const contract = defineContract(
|
|
|
71
71
|
title: field.text(),
|
|
72
72
|
content: field.text().optional(),
|
|
73
73
|
authorId: field.uuid(),
|
|
74
|
-
createdAt: field.createdAt(),
|
|
74
|
+
createdAt: field.temporal.createdAt(),
|
|
75
75
|
},
|
|
76
76
|
relations: {
|
|
77
77
|
author: rel.belongsTo("User", { from: "authorId", to: "id" }),
|
|
@@ -58,7 +58,7 @@ export const contract = defineContract(
|
|
|
58
58
|
id: field.id.uuidv7(),
|
|
59
59
|
email: field.text().unique(),
|
|
60
60
|
name: field.text().optional(),
|
|
61
|
-
createdAt: field.createdAt(),
|
|
61
|
+
createdAt: field.temporal.createdAt(),
|
|
62
62
|
},
|
|
63
63
|
relations: {
|
|
64
64
|
posts: rel.hasMany("Post", { by: "authorId" }),
|
|
@@ -71,7 +71,7 @@ export const contract = defineContract(
|
|
|
71
71
|
title: field.text(),
|
|
72
72
|
content: field.text().optional(),
|
|
73
73
|
authorId: field.uuid(),
|
|
74
|
-
createdAt: field.createdAt(),
|
|
74
|
+
createdAt: field.temporal.createdAt(),
|
|
75
75
|
},
|
|
76
76
|
relations: {
|
|
77
77
|
author: rel.belongsTo("User", { from: "authorId", to: "id" }),
|