create-prisma 0.4.2-next.37.83.1 → 0.4.2-next.37.85.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-CXc9jHIv.mjs";
2
+ import "./create-BmezPnjP.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.83.1",
43
+ "cli-version": "0.4.2-next.37.85.1",
44
44
  "node-version": process.version,
45
45
  platform: process.platform,
46
46
  arch: process.arch
@@ -1024,6 +1024,7 @@ function getPrismaNextAgentSkillContent(options) {
1024
1024
  const { provider, authoring, schemaPreset, packageManager, schemaPath, dbImportPath, scripts, rootScripts } = options;
1025
1025
  const label = getDatabaseLabel(provider);
1026
1026
  const runtimePackage = provider === "mongo" ? "@prisma-next/mongo" : "@prisma-next/postgres";
1027
+ const descriptionDetails = provider === "mongo" ? "MongoDB queries, DATABASE_URL, db init/update/verify, migrations, seeding, local MongoDB Docker setup, replica sets, typed aggregations, or mongoClient escape hatches." : "PostgreSQL queries, DATABASE_URL, db init/update/verify, migrations, seeding, PostgreSQL setup, or raw SQL escape hatches.";
1027
1028
  const hasWorkspaceRootDbUp = typeof scripts["db:up"] !== "string" && typeof rootScripts["db:up"] === "string";
1028
1029
  const hasDbUp = typeof scripts["db:up"] === "string" || hasWorkspaceRootDbUp;
1029
1030
  const commands = [
@@ -1086,6 +1087,12 @@ function getPrismaNextAgentSkillContent(options) {
1086
1087
  "```"
1087
1088
  ];
1088
1089
  return [
1090
+ "---",
1091
+ "name: prisma-next",
1092
+ "description: >-",
1093
+ ` Prisma Next project workflow for this generated ${label} app. Use whenever working in this repository on Prisma Next contracts, generated contract artifacts, database helpers, ${descriptionDetails}`,
1094
+ "---",
1095
+ "",
1089
1096
  "# Prisma Next - Project Skill",
1090
1097
  "",
1091
1098
  `This project uses **Prisma Next** with **${label}** via \`${runtimePackage}\`. The contract is \`${schemaPath}\` using ${authoring === "typescript" ? "TypeScript" : "PSL"} authoring.`,
@@ -1513,7 +1520,7 @@ async function installDependenciesForContext(context, projectDir) {
1513
1520
  }
1514
1521
  async function finalizePrismaFilesForContext(context, projectDir, provisionResult) {
1515
1522
  const initSpinner = spinner();
1516
- initSpinner.start("Preparing Prisma Next files...");
1523
+ initSpinner.start("Writing Prisma Next project files...");
1517
1524
  try {
1518
1525
  await finalizePrismaFiles({
1519
1526
  provider: context.databaseProvider,
@@ -1521,10 +1528,10 @@ async function finalizePrismaFilesForContext(context, projectDir, provisionResul
1521
1528
  claimUrl: provisionResult.claimUrl,
1522
1529
  projectDir
1523
1530
  });
1524
- initSpinner.stop("Prisma Next files ready.");
1531
+ initSpinner.stop("Prisma Next project files ready.");
1525
1532
  return true;
1526
1533
  } catch (error) {
1527
- initSpinner.stop("Could not prepare Prisma Next files.");
1534
+ initSpinner.stop("Could not write Prisma Next project files.");
1528
1535
  cancel(getCommandErrorMessage(error));
1529
1536
  return false;
1530
1537
  }
@@ -1571,15 +1578,15 @@ async function emitPrismaNextContractForContext(context, projectDir) {
1571
1578
  const emitCommand = getPrismaNextCliCommand(context.packageManager, ["contract", "emit"]);
1572
1579
  if (context.verbose) log.step(`Running ${emitCommand}`);
1573
1580
  const emitSpinner = context.verbose ? void 0 : spinner();
1574
- emitSpinner?.start("Emitting Prisma Next contract...");
1581
+ emitSpinner?.start("Emitting Prisma Next contract artifacts...");
1575
1582
  try {
1576
1583
  const emitArgs = getPrismaNextCliArgs(context.packageManager, ["contract", "emit"]);
1577
1584
  await execa(emitArgs.command, emitArgs.args, {
1578
1585
  cwd: prismaProjectDir,
1579
1586
  stdio: context.verbose ? "inherit" : "pipe"
1580
1587
  });
1581
- if (context.verbose) log.success("Prisma Next contract emitted.");
1582
- 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.");
1583
1590
  return { didEmitContract: true };
1584
1591
  } catch (error) {
1585
1592
  if (context.verbose) log.warn("Could not emit Prisma Next contract.");
@@ -1653,14 +1660,14 @@ async function executePrismaSetupContext(context, options = {}) {
1653
1660
  didEmitContract: emitResult.didEmitContract
1654
1661
  });
1655
1662
  if (warningLines.length > 0) note(warningLines.map((line) => line.replace(/^- /, "")).join("\n"), "Heads up");
1656
- note(formatNextSteps(nextSteps), "Next steps");
1657
- outro("Setup complete.");
1663
+ note(formatNextSteps(nextSteps), "Next steps for Prisma Next");
1664
+ outro("Prisma Next setup complete.");
1658
1665
  return true;
1659
1666
  }
1660
1667
 
1661
1668
  //#endregion
1662
1669
  //#region src/ui/branding.ts
1663
- 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")}`;
1664
1671
  function getCreatePrismaIntro() {
1665
1672
  return prismaTitle;
1666
1673
  }
@@ -1849,7 +1856,7 @@ async function collectCreateContext(input) {
1849
1856
  }
1850
1857
  async function executeCreateContext(context) {
1851
1858
  const scaffoldSpinner = spinner();
1852
- scaffoldSpinner.start(`Scaffolding ${context.template} project...`);
1859
+ scaffoldSpinner.start(`Scaffolding ${context.template} starter...`);
1853
1860
  try {
1854
1861
  await scaffoldCreateTemplate({
1855
1862
  projectDir: context.targetDirectory,
@@ -1860,9 +1867,9 @@ async function executeCreateContext(context) {
1860
1867
  authoring: context.prismaSetupContext.authoring,
1861
1868
  packageManager: context.prismaSetupContext.packageManager
1862
1869
  });
1863
- scaffoldSpinner.stop("Project files scaffolded.");
1870
+ scaffoldSpinner.stop("Starter files scaffolded.");
1864
1871
  } catch (error) {
1865
- scaffoldSpinner.stop("Could not scaffold project files.");
1872
+ scaffoldSpinner.stop("Could not scaffold starter files.");
1866
1873
  return {
1867
1874
  ok: false,
1868
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-CXc9jHIv.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-BmezPnjP.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.83.1";
7
+ const CLI_VERSION = "0.4.2-next.37.85.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.83.1",
3
+ "version": "0.4.2-next.37.85.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",