create-prisma 0.9.0 → 0.9.1-pr.60.225.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-CsM1p1qA.mjs";
2
+ import "./create-RHv9ASTp.mjs";
3
3
  import { createCreatePrismaCli } from "./index.mjs";
4
4
 
5
5
  //#region src/cli.ts
@@ -13,21 +13,12 @@ import { execa } from "execa";
13
13
  import { styleText } from "node:util";
14
14
 
15
15
  //#region src/telemetry/client.ts
16
- const TELEMETRY_API_KEY = "phc_cmc85avbWyuJ2JyKdGPdv7dxXli8xLdWDBPbvIXWJfs";
16
+ const TELEMETRY_API_KEY = "";
17
17
  const TELEMETRY_HOST = "https://us.i.posthog.com";
18
18
  const TELEMETRY_CONFIG_FILE = "telemetry.json";
19
19
  const UUID_V4_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
20
- function isTruthyEnvValue(value) {
21
- return [
22
- "1",
23
- "true",
24
- "yes",
25
- "on"
26
- ].includes(String(value ?? "").trim().toLowerCase());
27
- }
28
20
  function shouldDisableTelemetry() {
29
- if (isTruthyEnvValue(process.env.CI) || isTruthyEnvValue(process.env.GITHUB_ACTIONS)) return true;
30
- return process.env.CREATE_PRISMA_DISABLE_TELEMETRY !== void 0 || process.env.CREATE_PRISMA_TELEMETRY_DISABLED !== void 0 || process.env.DO_NOT_TRACK !== void 0;
21
+ return true;
31
22
  }
32
23
  function getTelemetryConfigDir() {
33
24
  if (process.platform === "darwin") return path.join(os.homedir(), "Library", "Application Support", "create-prisma");
@@ -49,7 +40,7 @@ async function getAnonymousId() {
49
40
  }
50
41
  function getCommonProperties() {
51
42
  return {
52
- "cli-version": "0.9.0",
43
+ "cli-version": "0.9.1-pr.60.225.1",
53
44
  "node-version": process.version,
54
45
  platform: process.platform,
55
46
  arch: process.arch
@@ -566,24 +557,21 @@ function getPrismaScriptMap(packageManager) {
566
557
  "db:update": prismaCommand("db", "update"),
567
558
  "db:verify": prismaCommand("db", "verify"),
568
559
  "migration:plan": prismaCommand("migration", "plan"),
569
- migrate: prismaCommand("migrate"),
560
+ migrate: prismaCommand("db", "migrate"),
570
561
  "migration:status": prismaCommand("migration", "status"),
571
562
  "migration:show": prismaCommand("migration", "show")
572
563
  };
573
564
  }
574
565
  function getComposerScriptMap(packageManager) {
575
566
  if (packageManager === "deno") return {};
576
- const composerCommand = (subcommand, extraArgs = []) => getPackageExecutionCommand(packageManager, [
567
+ const composerCommand = (subcommand) => getPackageExecutionCommand(packageManager, [
577
568
  PRISMA_PLATFORM_CLI_PACKAGE,
578
- "composer",
579
569
  subcommand,
580
- "module.ts",
581
- ...extraArgs
570
+ "module.ts"
582
571
  ]);
583
572
  return {
584
573
  "composer:dev": composerCommand("dev"),
585
574
  "composer:deploy": composerCommand("deploy"),
586
- "composer:destroy": composerCommand("destroy", ["--production"]),
587
575
  deploy: `${getRunScriptCommand(packageManager, "build")} && ${getRunScriptCommand(packageManager, "composer:deploy")}`,
588
576
  "dev:composer": `${getRunScriptCommand(packageManager, "build")} && ${getRunScriptCommand(packageManager, "composer:dev")}`
589
577
  };
@@ -829,7 +817,6 @@ async function getProjectDetails(options) {
829
817
  args: [
830
818
  "project",
831
819
  "show",
832
- "--project",
833
820
  options.appName
834
821
  ]
835
822
  });
@@ -891,11 +878,7 @@ async function deployWithComposer(options) {
891
878
  const deployment = parseComposerDeployResult(await runPrismaJsonCommand({
892
879
  packageManager: options.packageManager,
893
880
  projectDir: options.projectDir,
894
- args: [
895
- "composer",
896
- "deploy",
897
- "module.ts"
898
- ],
881
+ args: ["deploy", "module.ts"],
899
882
  forwardStderr: options.verbose
900
883
  }));
901
884
  const appName = deployment?.appName ?? options.appName;
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import { a as DatabaseProviderSchema, i as CreateTemplateSchema, n as AuthoringStyleSchema, o as PackageManagerSchema, r as CreateCommandInputSchema, t as runCreateCommand } from "./create-CsM1p1qA.mjs";
2
+ import { a as DatabaseProviderSchema, i as CreateTemplateSchema, n as AuthoringStyleSchema, o as PackageManagerSchema, r as CreateCommandInputSchema, t as runCreateCommand } from "./create-RHv9ASTp.mjs";
3
3
  import { os } from "@orpc/server";
4
4
  import { createCli } from "trpc-cli";
5
5
  import { z } from "zod";
6
6
 
7
7
  //#region src/index.ts
8
- const CLI_VERSION = "0.9.0";
8
+ const CLI_VERSION = "0.9.1-pr.60.225.1";
9
9
  const CreateCliInputSchema = z.tuple([z.string().trim().min(1, "Please enter a valid project name").optional().describe("Project name / directory"), CreateCommandInputSchema]);
10
10
  function normalizeCreateCliInput(input) {
11
11
  const [projectName, options] = input;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma",
3
- "version": "0.9.0",
3
+ "version": "0.9.1-pr.60.225.1",
4
4
  "private": false,
5
5
  "description": "Create Prisma 8 projects with first-party templates and great DX.",
6
6
  "homepage": "https://github.com/prisma/create-prisma",