create-prisma 0.5.0-pr.42.125.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/README.md CHANGED
@@ -145,7 +145,6 @@ Prisma Compute deployment is currently supported for:
145
145
  - Prisma IDE extension install
146
146
 
147
147
  These can be selected interactively or enabled with flags.
148
- When Prisma Compute deploy is selected, the skills add-on recommends the `prisma-compute` skill too.
149
148
 
150
149
  ## Deploy to Prisma Compute
151
150
 
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import "./create-ClKlnRHX.mjs";
2
+ import "./create-DH7xp0g_.mjs";
3
3
  import { createCreatePrismaCli } from "./index.mjs";
4
4
 
5
5
  //#region src/cli.ts
@@ -107,7 +107,6 @@ const extensionTargets = [
107
107
  const prismaSkillNames = [
108
108
  "prisma-cli",
109
109
  "prisma-client-api",
110
- "prisma-compute",
111
110
  "prisma-database-setup",
112
111
  "prisma-upgrade-v7",
113
112
  "prisma-postgres"
@@ -1383,9 +1382,8 @@ const SHARED_PRISMA_SKILLS = [
1383
1382
  "prisma-upgrade-v7"
1384
1383
  ];
1385
1384
  function getAvailablePrismaSkills(provider) {
1386
- const skills = [...SHARED_PRISMA_SKILLS, "prisma-compute"];
1387
- if (provider === "postgresql") return [...skills, "prisma-postgres"];
1388
- return skills;
1385
+ if (provider === "postgresql") return [...SHARED_PRISMA_SKILLS, "prisma-postgres"];
1386
+ return [...SHARED_PRISMA_SKILLS];
1389
1387
  }
1390
1388
  function getSkillOptions(provider) {
1391
1389
  const available = getAvailablePrismaSkills(provider);
@@ -1400,11 +1398,6 @@ function getSkillOptions(provider) {
1400
1398
  label: "prisma-client-api",
1401
1399
  hint: "Prisma Client query patterns"
1402
1400
  },
1403
- "prisma-compute": {
1404
- value: "prisma-compute",
1405
- label: "prisma-compute",
1406
- hint: "Prisma Compute deploy and hosting workflows"
1407
- },
1408
1401
  "prisma-database-setup": {
1409
1402
  value: "prisma-database-setup",
1410
1403
  label: "prisma-database-setup",
@@ -1450,10 +1443,9 @@ const EXTENSION_TARGET_OPTIONS = [
1450
1443
  function uniqueValues(values) {
1451
1444
  return Array.from(new Set(values));
1452
1445
  }
1453
- function getRecommendedPrismaSkills(provider, shouldUsePrismaPostgres, shouldUseComputeDeploy) {
1454
- const skills = [...SHARED_PRISMA_SKILLS];
1455
- if (provider === "postgresql" && shouldUsePrismaPostgres) skills.push("prisma-postgres");
1456
- if (shouldUseComputeDeploy) skills.push("prisma-compute");
1446
+ function getRecommendedPrismaSkills(provider, shouldUsePrismaPostgres) {
1447
+ const skills = [...getAvailablePrismaSkills(provider)];
1448
+ if (!shouldUsePrismaPostgres) return skills.filter((skill) => skill !== "prisma-postgres");
1457
1449
  return uniqueValues(skills);
1458
1450
  }
1459
1451
  async function promptForAddons() {
@@ -1551,7 +1543,7 @@ async function collectCreateAddonSetupContext(input, options) {
1551
1543
  if (addons.length === 0) return null;
1552
1544
  const scope = addons.includes("skills") || addons.includes("mcp") ? options.useDefaults ? DEFAULT_ADDON_SCOPE : await promptForAddonScope() : DEFAULT_ADDON_SCOPE;
1553
1545
  if (!scope) return;
1554
- const recommendedSkills = getRecommendedPrismaSkills(options.provider, options.shouldUsePrismaPostgres, options.shouldUseComputeDeploy);
1546
+ const recommendedSkills = getRecommendedPrismaSkills(options.provider, options.shouldUsePrismaPostgres);
1555
1547
  const skills = !addons.includes("skills") ? [] : options.useDefaults ? recommendedSkills : await promptForPrismaSkills(options.provider, recommendedSkills);
1556
1548
  if (!skills) return;
1557
1549
  const skillsAgents = !addons.includes("skills") ? [] : options.useDefaults ? [...DEFAULT_SKILLS_AGENTS] : await promptForSkillsAgents();
@@ -2002,12 +1994,21 @@ async function executeComputeDeployContext(params) {
2002
1994
 
2003
1995
  //#endregion
2004
1996
  //#region src/telemetry/client.ts
2005
- const TELEMETRY_API_KEY = "";
1997
+ const TELEMETRY_API_KEY = "phc_cmc85avbWyuJ2JyKdGPdv7dxXli8xLdWDBPbvIXWJfs";
2006
1998
  const TELEMETRY_HOST = "https://us.i.posthog.com";
2007
1999
  const TELEMETRY_CONFIG_FILE = "telemetry.json";
2008
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
+ }
2009
2009
  function shouldDisableTelemetry() {
2010
- 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;
2011
2012
  }
2012
2013
  function getTelemetryConfigDir() {
2013
2014
  if (process.platform === "darwin") return path.join(os.homedir(), "Library", "Application Support", "create-prisma");
@@ -2029,7 +2030,7 @@ async function getAnonymousId() {
2029
2030
  }
2030
2031
  function getCommonProperties() {
2031
2032
  return {
2032
- "cli-version": "0.5.0-pr.42.125.1",
2033
+ "cli-version": "0.5.0",
2033
2034
  "node-version": process.version,
2034
2035
  platform: process.platform,
2035
2036
  arch: process.arch
@@ -2324,8 +2325,7 @@ async function collectCreateContext(input) {
2324
2325
  const addonSetupContext = await collectCreateAddonSetupContext(input, {
2325
2326
  useDefaults,
2326
2327
  provider: prismaSetupContext.databaseProvider,
2327
- shouldUsePrismaPostgres: prismaSetupContext.shouldUsePrismaPostgres,
2328
- shouldUseComputeDeploy: Boolean(computeDeployContext)
2328
+ shouldUsePrismaPostgres: prismaSetupContext.shouldUsePrismaPostgres
2329
2329
  });
2330
2330
  if (addonSetupContext === void 0) return;
2331
2331
  return {
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-ClKlnRHX.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-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-pr.42.125.1";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma",
3
- "version": "0.5.0-pr.42.125.1",
3
+ "version": "0.5.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",