create-prisma 0.4.2-next.37.80.1 → 0.4.2-next.37.81.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-CfH21J9-.mjs";
2
+ import "./create-C-bVmrxB.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.80.1",
43
+ "cli-version": "0.4.2-next.37.81.1",
44
44
  "node-version": process.version,
45
45
  platform: process.platform,
46
46
  arch: process.arch
@@ -819,7 +819,8 @@ const DEFAULT_AUTHORING = "psl";
819
819
  const DEFAULT_SCHEMA_PRESET$1 = "basic";
820
820
  const DEFAULT_INSTALL = true;
821
821
  const DEFAULT_EMIT = true;
822
- const DEFAULT_PRISMA_POSTGRES = false;
822
+ const DEFAULT_INTERACTIVE_PRISMA_POSTGRES = true;
823
+ const DEFAULT_AUTOMATED_PRISMA_POSTGRES = false;
823
824
  const MONGO_DOCKER_COMPOSE = `services:
824
825
  mongodb:
825
826
  image: mongo:latest
@@ -912,7 +913,7 @@ async function promptForPrismaPostgres() {
912
913
  message: "Provision a Prisma Postgres database?",
913
914
  active: "Provision Prisma Postgres",
914
915
  inactive: "Use my own database",
915
- initialValue: DEFAULT_PRISMA_POSTGRES
916
+ initialValue: DEFAULT_INTERACTIVE_PRISMA_POSTGRES
916
917
  });
917
918
  if (isCancel(shouldUsePrismaPostgres)) {
918
919
  cancel("Operation cancelled.");
@@ -996,7 +997,7 @@ async function collectPrismaSetupContext(input, options = {}) {
996
997
  const databaseProvider = input.provider ?? (useDefaults ? DEFAULT_DATABASE_PROVIDER : await promptForDatabaseProvider());
997
998
  if (!databaseProvider) return;
998
999
  const databaseUrl = input.databaseUrl;
999
- const shouldUsePrismaPostgres = input.prismaPostgres ?? (databaseProvider === "postgres" && !databaseUrl && !useDefaults ? await promptForPrismaPostgres() : DEFAULT_PRISMA_POSTGRES);
1000
+ const shouldUsePrismaPostgres = input.prismaPostgres ?? (databaseProvider === "postgres" && !databaseUrl && !useDefaults ? await promptForPrismaPostgres() : DEFAULT_AUTOMATED_PRISMA_POSTGRES);
1000
1001
  if (shouldUsePrismaPostgres === void 0) return;
1001
1002
  if (shouldUsePrismaPostgres && databaseProvider !== "postgres") {
1002
1003
  cancel("--prisma-postgres is only supported with --provider postgres.");
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-CfH21J9-.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-C-bVmrxB.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.80.1";
7
+ const CLI_VERSION = "0.4.2-next.37.81.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.80.1",
3
+ "version": "0.4.2-next.37.81.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",