create-prisma 0.14.0-pr.126.412.1 → 0.14.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 { a as ApplicationLayer, i as runCreatePrismaCli } from "./src-CTgoN0IE.mjs";
2
+ import { a as ApplicationLayer, i as runCreatePrismaCli } from "./src-3Er57PqW.mjs";
3
3
  import { Effect } from "effect";
4
4
  import { NodeRuntime } from "@effect/platform-node-shared";
5
5
  //#region src/cli.ts
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import { c as AgentSkillTargetSchema, d as CreateTemplateSchema, f as DatabaseProviderSchema, i as runCreatePrismaCli, l as AuthoringStyleSchema, n as createCreatePrismaCli, o as CREATE_PRISMA_RESULT_SCHEMA_VERSION, p as PackageManagerSchema, r as createPrismaCommand, s as CreateCommandResultSchema, t as create, u as CreateCommandInputSchema } from "./src-CTgoN0IE.mjs";
2
+ import { c as AgentSkillTargetSchema, d as CreateTemplateSchema, f as DatabaseProviderSchema, i as runCreatePrismaCli, l as AuthoringStyleSchema, n as createCreatePrismaCli, o as CREATE_PRISMA_RESULT_SCHEMA_VERSION, p as PackageManagerSchema, r as createPrismaCommand, s as CreateCommandResultSchema, t as create, u as CreateCommandInputSchema } from "./src-3Er57PqW.mjs";
3
3
  export { AgentSkillTargetSchema, AuthoringStyleSchema, CREATE_PRISMA_RESULT_SCHEMA_VERSION, CreateCommandInputSchema, CreateCommandResultSchema, CreateTemplateSchema, DatabaseProviderSchema, PackageManagerSchema, create, createCreatePrismaCli, createPrismaCommand, runCreatePrismaCli };
@@ -465,14 +465,20 @@ function getPackageManagerErrorCode(command, output) {
465
465
  }
466
466
  //#endregion
467
467
  //#region src/telemetry/client.ts
468
- const TELEMETRY_API_KEY = "";
468
+ const TELEMETRY_API_KEY = "phc_cmc85avbWyuJ2JyKdGPdv7dxXli8xLdWDBPbvIXWJfs";
469
469
  const TELEMETRY_HOST = "https://us.i.posthog.com";
470
470
  const TELEMETRY_CONFIG_FILE = "telemetry.json";
471
471
  const TELEMETRY_TIMEOUT_MS = 2e3;
472
472
  const AnonymousId = Schema.String.check(Schema.isUUID(4));
473
473
  const decodeAnonymousId = Schema.decodeUnknownExit(AnonymousId);
474
+ const isTruthyEnvValue = (value) => [
475
+ "1",
476
+ "true",
477
+ "yes",
478
+ "on"
479
+ ].includes(String(value ?? "").trim().toLowerCase());
474
480
  function shouldDisableTelemetry() {
475
- return true;
481
+ return isTruthyEnvValue(process.env.CI) || isTruthyEnvValue(process.env.GITHUB_ACTIONS) || process.env.CREATE_PRISMA_DISABLE_TELEMETRY !== void 0 || process.env.CREATE_PRISMA_TELEMETRY_DISABLED !== void 0 || process.env.DO_NOT_TRACK !== void 0;
476
482
  }
477
483
  function getTelemetryConfigDir() {
478
484
  if (process.platform === "darwin") return path.join(os.homedir(), "Library", "Application Support", "create-prisma");
@@ -496,7 +502,7 @@ const getAnonymousIdEffect = Effect.fn("Telemetry.getAnonymousId")(function* ()
496
502
  return anonymousId;
497
503
  });
498
504
  const getCommonProperties = () => ({
499
- "cli-version": "0.14.0-pr.126.412.1",
505
+ "cli-version": "0.14.0",
500
506
  "node-version": process.version,
501
507
  platform: process.platform,
502
508
  arch: process.arch
@@ -2773,7 +2779,7 @@ function isJsonOutputRequested(argv) {
2773
2779
  const writeJsonResult = Effect.fn("JsonOutput.write")((result) => Effect.sync(() => process.stdout.write(`${JSON.stringify(result)}\n`)));
2774
2780
  //#endregion
2775
2781
  //#region src/index.ts
2776
- const CLI_VERSION = "0.14.0-pr.126.412.1";
2782
+ const CLI_VERSION = "0.14.0";
2777
2783
  const optionalArgument = (name, description) => Argument.String(name).pipe(Argument.withDescription(description), Argument.optional, Argument.map(Option.getOrUndefined));
2778
2784
  const optionalBoolean = (name, description) => Flag.Boolean(name).pipe(Flag.withDescription(description), Flag.optional, Flag.map(Option.getOrUndefined));
2779
2785
  const optionalString = (name, description) => Flag.String(name).pipe(Flag.withDescription(description), Flag.optional, Flag.map(Option.getOrUndefined));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma",
3
- "version": "0.14.0-pr.126.412.1",
3
+ "version": "0.14.0",
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",