create-prisma 0.3.2-pr.29.44.1 → 0.3.2
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
|
@@ -1500,12 +1500,21 @@ 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 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;
|
|
1507
|
+
function isTruthyEnvValue(value) {
|
|
1508
|
+
return [
|
|
1509
|
+
"1",
|
|
1510
|
+
"true",
|
|
1511
|
+
"yes",
|
|
1512
|
+
"on"
|
|
1513
|
+
].includes(String(value ?? "").trim().toLowerCase());
|
|
1514
|
+
}
|
|
1507
1515
|
function shouldDisableTelemetry() {
|
|
1508
|
-
return true;
|
|
1516
|
+
if (isTruthyEnvValue(process.env.CI) || isTruthyEnvValue(process.env.GITHUB_ACTIONS)) return true;
|
|
1517
|
+
return process.env.CREATE_PRISMA_DISABLE_TELEMETRY !== void 0 || process.env.CREATE_PRISMA_TELEMETRY_DISABLED !== void 0 || process.env.DO_NOT_TRACK !== void 0;
|
|
1509
1518
|
}
|
|
1510
1519
|
function getTelemetryConfigDir() {
|
|
1511
1520
|
if (process.platform === "darwin") return path.join(os.homedir(), "Library", "Application Support", "create-prisma");
|
|
@@ -1527,7 +1536,7 @@ async function getAnonymousId() {
|
|
|
1527
1536
|
}
|
|
1528
1537
|
function getCommonProperties() {
|
|
1529
1538
|
return {
|
|
1530
|
-
"cli-version": "0.3.2
|
|
1539
|
+
"cli-version": "0.3.2",
|
|
1531
1540
|
"node-version": process.version,
|
|
1532
1541
|
platform: process.platform,
|
|
1533
1542
|
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-
|
|
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-DOr8R2_6.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.2
|
|
7
|
+
const CLI_VERSION = "0.3.2";
|
|
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