create-prisma 0.7.0-pr.47.144.1 → 0.7.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
|
@@ -2048,12 +2048,21 @@ async function executeComputeDeployContext(params) {
|
|
|
2048
2048
|
|
|
2049
2049
|
//#endregion
|
|
2050
2050
|
//#region src/telemetry/client.ts
|
|
2051
|
-
const TELEMETRY_API_KEY = "";
|
|
2051
|
+
const TELEMETRY_API_KEY = "phc_cmc85avbWyuJ2JyKdGPdv7dxXli8xLdWDBPbvIXWJfs";
|
|
2052
2052
|
const TELEMETRY_HOST = "https://us.i.posthog.com";
|
|
2053
2053
|
const TELEMETRY_CONFIG_FILE = "telemetry.json";
|
|
2054
2054
|
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;
|
|
2055
|
+
function isTruthyEnvValue(value) {
|
|
2056
|
+
return [
|
|
2057
|
+
"1",
|
|
2058
|
+
"true",
|
|
2059
|
+
"yes",
|
|
2060
|
+
"on"
|
|
2061
|
+
].includes(String(value ?? "").trim().toLowerCase());
|
|
2062
|
+
}
|
|
2055
2063
|
function shouldDisableTelemetry() {
|
|
2056
|
-
return true;
|
|
2064
|
+
if (isTruthyEnvValue(process.env.CI) || isTruthyEnvValue(process.env.GITHUB_ACTIONS)) return true;
|
|
2065
|
+
return process.env.CREATE_PRISMA_DISABLE_TELEMETRY !== void 0 || process.env.CREATE_PRISMA_TELEMETRY_DISABLED !== void 0 || process.env.DO_NOT_TRACK !== void 0;
|
|
2057
2066
|
}
|
|
2058
2067
|
function getTelemetryConfigDir() {
|
|
2059
2068
|
if (process.platform === "darwin") return path.join(os.homedir(), "Library", "Application Support", "create-prisma");
|
|
@@ -2075,7 +2084,7 @@ async function getAnonymousId() {
|
|
|
2075
2084
|
}
|
|
2076
2085
|
function getCommonProperties() {
|
|
2077
2086
|
return {
|
|
2078
|
-
"cli-version": "0.7.0
|
|
2087
|
+
"cli-version": "0.7.0",
|
|
2079
2088
|
"node-version": process.version,
|
|
2080
2089
|
platform: process.platform,
|
|
2081
2090
|
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-DGKeNID3.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.7.0
|
|
7
|
+
const CLI_VERSION = "0.7.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