create-prisma 0.3.0-pr.25.36.1 → 0.3.0

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-YmOSipHM.mjs";
2
+ import "./create--wGG0UNz.mjs";
3
3
  import { createCreatePrismaCli } from "./index.mjs";
4
4
 
5
5
  //#region src/cli.ts
@@ -1500,14 +1500,23 @@ async function executeCreateAddonSetupContext(params) {
1500
1500
 
1501
1501
  //#endregion
1502
1502
  //#region src/telemetry/client.ts
1503
- const TELEMETRY_API_KEY = "";
1503
+ const TELEMETRY_API_KEY = "phc_cmc85avbWyuJ2JyKdGPdv7dxXli8xLdWDBPbvIXWJfs";
1504
1504
  const TELEMETRY_HOST = "https://us.i.posthog.com";
1505
1505
  const TELEMETRY_CONFIG_FILE = "telemetry.json";
1506
1506
  const TELEMETRY_REQUEST_TIMEOUT_MS = 800;
1507
1507
  const TELEMETRY_SHUTDOWN_TIMEOUT_MS = 800;
1508
1508
  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;
1509
+ function isTruthyEnvValue(value) {
1510
+ return [
1511
+ "1",
1512
+ "true",
1513
+ "yes",
1514
+ "on"
1515
+ ].includes(String(value ?? "").trim().toLowerCase());
1516
+ }
1509
1517
  function shouldDisableTelemetry() {
1510
- return true;
1518
+ if (isTruthyEnvValue(process.env.CI) || isTruthyEnvValue(process.env.GITHUB_ACTIONS)) return true;
1519
+ return process.env.CREATE_PRISMA_DISABLE_TELEMETRY !== void 0 || process.env.CREATE_PRISMA_TELEMETRY_DISABLED !== void 0 || process.env.DO_NOT_TRACK !== void 0;
1511
1520
  }
1512
1521
  function getTelemetryConfigDir() {
1513
1522
  if (process.platform === "darwin") return path.join(os.homedir(), "Library", "Application Support", "create-prisma");
@@ -1529,7 +1538,7 @@ async function getAnonymousId() {
1529
1538
  }
1530
1539
  function getCommonProperties() {
1531
1540
  return {
1532
- "cli-version": "0.3.0-pr.25.36.1",
1541
+ "cli-version": "0.3.0",
1533
1542
  "node-version": process.version,
1534
1543
  platform: process.platform,
1535
1544
  arch: process.arch
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import { a as DatabaseUrlSchema, i as DatabaseProviderSchema, n as CreateCommandInputSchema, o as PackageManagerSchema, r as CreateTemplateSchema, s as SchemaPresetSchema, t as runCreateCommand } from "./create-YmOSipHM.mjs";
2
+ import { a as DatabaseUrlSchema, i as DatabaseProviderSchema, n as CreateCommandInputSchema, o as PackageManagerSchema, r as CreateTemplateSchema, s as SchemaPresetSchema, t as runCreateCommand } from "./create--wGG0UNz.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.3.0-pr.25.36.1";
7
+ const CLI_VERSION = "0.3.0";
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.3.0-pr.25.36.1",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
5
  "description": "Create Prisma 7 projects with first-party templates and great DX.",
6
6
  "homepage": "https://github.com/prisma/create-prisma",