create-prisma 0.5.0-pr.41.123.1 → 0.5.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
|
@@ -1994,12 +1994,21 @@ async function executeComputeDeployContext(params) {
|
|
|
1994
1994
|
|
|
1995
1995
|
//#endregion
|
|
1996
1996
|
//#region src/telemetry/client.ts
|
|
1997
|
-
const TELEMETRY_API_KEY = "";
|
|
1997
|
+
const TELEMETRY_API_KEY = "phc_cmc85avbWyuJ2JyKdGPdv7dxXli8xLdWDBPbvIXWJfs";
|
|
1998
1998
|
const TELEMETRY_HOST = "https://us.i.posthog.com";
|
|
1999
1999
|
const TELEMETRY_CONFIG_FILE = "telemetry.json";
|
|
2000
2000
|
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;
|
|
2001
|
+
function isTruthyEnvValue(value) {
|
|
2002
|
+
return [
|
|
2003
|
+
"1",
|
|
2004
|
+
"true",
|
|
2005
|
+
"yes",
|
|
2006
|
+
"on"
|
|
2007
|
+
].includes(String(value ?? "").trim().toLowerCase());
|
|
2008
|
+
}
|
|
2001
2009
|
function shouldDisableTelemetry() {
|
|
2002
|
-
return true;
|
|
2010
|
+
if (isTruthyEnvValue(process.env.CI) || isTruthyEnvValue(process.env.GITHUB_ACTIONS)) return true;
|
|
2011
|
+
return process.env.CREATE_PRISMA_DISABLE_TELEMETRY !== void 0 || process.env.CREATE_PRISMA_TELEMETRY_DISABLED !== void 0 || process.env.DO_NOT_TRACK !== void 0;
|
|
2003
2012
|
}
|
|
2004
2013
|
function getTelemetryConfigDir() {
|
|
2005
2014
|
if (process.platform === "darwin") return path.join(os.homedir(), "Library", "Application Support", "create-prisma");
|
|
@@ -2021,7 +2030,7 @@ async function getAnonymousId() {
|
|
|
2021
2030
|
}
|
|
2022
2031
|
function getCommonProperties() {
|
|
2023
2032
|
return {
|
|
2024
|
-
"cli-version": "0.5.0
|
|
2033
|
+
"cli-version": "0.5.0",
|
|
2025
2034
|
"node-version": process.version,
|
|
2026
2035
|
platform: process.platform,
|
|
2027
2036
|
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-DH7xp0g_.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.5.0
|
|
7
|
+
const CLI_VERSION = "0.5.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