create-prisma 0.6.0-pr.45.137.1 → 0.6.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-CfH942dA.mjs";
2
+ import "./create-CMPeveWE.mjs";
3
3
  import { createCreatePrismaCli } from "./index.mjs";
4
4
 
5
5
  //#region src/cli.ts
@@ -2044,12 +2044,21 @@ async function executeComputeDeployContext(params) {
2044
2044
 
2045
2045
  //#endregion
2046
2046
  //#region src/telemetry/client.ts
2047
- const TELEMETRY_API_KEY = "";
2047
+ const TELEMETRY_API_KEY = "phc_cmc85avbWyuJ2JyKdGPdv7dxXli8xLdWDBPbvIXWJfs";
2048
2048
  const TELEMETRY_HOST = "https://us.i.posthog.com";
2049
2049
  const TELEMETRY_CONFIG_FILE = "telemetry.json";
2050
2050
  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;
2051
+ function isTruthyEnvValue(value) {
2052
+ return [
2053
+ "1",
2054
+ "true",
2055
+ "yes",
2056
+ "on"
2057
+ ].includes(String(value ?? "").trim().toLowerCase());
2058
+ }
2051
2059
  function shouldDisableTelemetry() {
2052
- return true;
2060
+ if (isTruthyEnvValue(process.env.CI) || isTruthyEnvValue(process.env.GITHUB_ACTIONS)) return true;
2061
+ return process.env.CREATE_PRISMA_DISABLE_TELEMETRY !== void 0 || process.env.CREATE_PRISMA_TELEMETRY_DISABLED !== void 0 || process.env.DO_NOT_TRACK !== void 0;
2053
2062
  }
2054
2063
  function getTelemetryConfigDir() {
2055
2064
  if (process.platform === "darwin") return path.join(os.homedir(), "Library", "Application Support", "create-prisma");
@@ -2071,7 +2080,7 @@ async function getAnonymousId() {
2071
2080
  }
2072
2081
  function getCommonProperties() {
2073
2082
  return {
2074
- "cli-version": "0.6.0-pr.45.137.1",
2083
+ "cli-version": "0.6.0",
2075
2084
  "node-version": process.version,
2076
2085
  platform: process.platform,
2077
2086
  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-CfH942dA.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-CMPeveWE.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.6.0-pr.45.137.1";
7
+ const CLI_VERSION = "0.6.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.6.0-pr.45.137.1",
3
+ "version": "0.6.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",