create-prisma 0.4.2-next.37.84.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 CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import "./create-Bn4nsBxN.mjs";
2
+ import "./create-_RveOsMX.mjs";
3
3
  import { createCreatePrismaCli } from "./index.mjs";
4
4
 
5
5
  //#region src/cli.ts
@@ -40,7 +40,7 @@ async function getAnonymousId() {
40
40
  }
41
41
  function getCommonProperties() {
42
42
  return {
43
- "cli-version": "0.4.2-next.37.84.1",
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.4.4",
144
- "@prisma-next/adapter-postgres": "0.4.4",
145
- "@prisma-next/cli": "0.4.4",
146
- "@prisma-next/contract": "0.4.4",
147
- "@prisma-next/family-mongo": "0.4.4",
148
- "@prisma-next/family-sql": "0.4.4",
149
- "@prisma-next/mongo": "0.4.4",
150
- "@prisma-next/mongo-contract": "0.4.4",
151
- "@prisma-next/mongo-contract-ts": "0.4.4",
152
- "@prisma-next/mongo-orm": "0.4.4",
153
- "@prisma-next/postgres": "0.4.4",
154
- "@prisma-next/sql-contract": "0.4.4",
155
- "@prisma-next/sql-contract-ts": "0.4.4",
156
- "@prisma-next/sql-orm-client": "0.4.4",
157
- "@prisma-next/target-mongo": "0.4.4",
158
- "@prisma-next/target-postgres": "0.4.4",
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.4.4",
161
+ "prisma-next": "0.7.0",
162
162
  tsx: "^4.21.0"
163
163
  };
164
164
  function getWorkspaceDependencyVersion(packageManager) {
@@ -1520,7 +1520,7 @@ async function installDependenciesForContext(context, projectDir) {
1520
1520
  }
1521
1521
  async function finalizePrismaFilesForContext(context, projectDir, provisionResult) {
1522
1522
  const initSpinner = spinner();
1523
- initSpinner.start("Preparing Prisma Next files...");
1523
+ initSpinner.start("Writing Prisma Next project files...");
1524
1524
  try {
1525
1525
  await finalizePrismaFiles({
1526
1526
  provider: context.databaseProvider,
@@ -1528,10 +1528,10 @@ async function finalizePrismaFilesForContext(context, projectDir, provisionResul
1528
1528
  claimUrl: provisionResult.claimUrl,
1529
1529
  projectDir
1530
1530
  });
1531
- initSpinner.stop("Prisma Next files ready.");
1531
+ initSpinner.stop("Prisma Next project files ready.");
1532
1532
  return true;
1533
1533
  } catch (error) {
1534
- initSpinner.stop("Could not prepare Prisma Next files.");
1534
+ initSpinner.stop("Could not write Prisma Next project files.");
1535
1535
  cancel(getCommandErrorMessage(error));
1536
1536
  return false;
1537
1537
  }
@@ -1578,15 +1578,15 @@ async function emitPrismaNextContractForContext(context, projectDir) {
1578
1578
  const emitCommand = getPrismaNextCliCommand(context.packageManager, ["contract", "emit"]);
1579
1579
  if (context.verbose) log.step(`Running ${emitCommand}`);
1580
1580
  const emitSpinner = context.verbose ? void 0 : spinner();
1581
- emitSpinner?.start("Emitting Prisma Next contract...");
1581
+ emitSpinner?.start("Emitting Prisma Next contract artifacts...");
1582
1582
  try {
1583
1583
  const emitArgs = getPrismaNextCliArgs(context.packageManager, ["contract", "emit"]);
1584
1584
  await execa(emitArgs.command, emitArgs.args, {
1585
1585
  cwd: prismaProjectDir,
1586
1586
  stdio: context.verbose ? "inherit" : "pipe"
1587
1587
  });
1588
- if (context.verbose) log.success("Prisma Next contract emitted.");
1589
- else emitSpinner?.stop("Prisma Next contract emitted.");
1588
+ if (context.verbose) log.success("Prisma Next contract artifacts emitted.");
1589
+ else emitSpinner?.stop("Prisma Next contract artifacts emitted.");
1590
1590
  return { didEmitContract: true };
1591
1591
  } catch (error) {
1592
1592
  if (context.verbose) log.warn("Could not emit Prisma Next contract.");
@@ -1660,14 +1660,14 @@ async function executePrismaSetupContext(context, options = {}) {
1660
1660
  didEmitContract: emitResult.didEmitContract
1661
1661
  });
1662
1662
  if (warningLines.length > 0) note(warningLines.map((line) => line.replace(/^- /, "")).join("\n"), "Heads up");
1663
- note(formatNextSteps(nextSteps), "Next steps");
1664
- outro("Setup complete.");
1663
+ note(formatNextSteps(nextSteps), "Next steps for Prisma Next");
1664
+ outro("Prisma Next setup complete.");
1665
1665
  return true;
1666
1666
  }
1667
1667
 
1668
1668
  //#endregion
1669
1669
  //#region src/ui/branding.ts
1670
- const prismaTitle = `${styleText(["bold", "cyan"], "Create")} ${styleText(["bold", "magenta"], "Prisma")}`;
1670
+ const prismaTitle = `${styleText(["bold", "cyanBright"], "◭")} ${styleText(["bold", "cyanBright"], "Create")} ${styleText(["bold", "magentaBright"], "Prisma")} ${styleText(["bold", "blueBright"], "Next")}`;
1671
1671
  function getCreatePrismaIntro() {
1672
1672
  return prismaTitle;
1673
1673
  }
@@ -1856,7 +1856,7 @@ async function collectCreateContext(input) {
1856
1856
  }
1857
1857
  async function executeCreateContext(context) {
1858
1858
  const scaffoldSpinner = spinner();
1859
- scaffoldSpinner.start(`Scaffolding ${context.template} project...`);
1859
+ scaffoldSpinner.start(`Scaffolding ${context.template} starter...`);
1860
1860
  try {
1861
1861
  await scaffoldCreateTemplate({
1862
1862
  projectDir: context.targetDirectory,
@@ -1867,9 +1867,9 @@ async function executeCreateContext(context) {
1867
1867
  authoring: context.prismaSetupContext.authoring,
1868
1868
  packageManager: context.prismaSetupContext.packageManager
1869
1869
  });
1870
- scaffoldSpinner.stop("Project files scaffolded.");
1870
+ scaffoldSpinner.stop("Starter files scaffolded.");
1871
1871
  } catch (error) {
1872
- scaffoldSpinner.stop("Could not scaffold project files.");
1872
+ scaffoldSpinner.stop("Could not scaffold starter files.");
1873
1873
  return {
1874
1874
  ok: false,
1875
1875
  stage: "scaffold_template",
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-Bn4nsBxN.mjs";
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.84.1";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma",
3
- "version": "0.4.2-next.37.84.1",
3
+ "version": "0.4.2-next.37.86.1",
4
4
  "private": false,
5
5
  "description": "Create Prisma Next projects with first-party templates and great DX.",
6
6
  "homepage": "https://github.com/prisma/create-prisma",
@@ -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" }),