create-prisma 0.4.2-pr.34.109.1 → 0.4.2-pr.34.111.1

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 "./create-dRPbnGmA.mjs";
2
+ import "./create-Co1kBCus.mjs";
3
3
  import { createCreatePrismaCli } from "./index.mjs";
4
4
 
5
5
  //#region src/cli.ts
@@ -1706,7 +1706,7 @@ async function executeCreateAddonSetupContext(params) {
1706
1706
 
1707
1707
  //#endregion
1708
1708
  //#region src/tasks/deploy-to-compute.ts
1709
- const PRISMA_CLI_PACKAGE = "@prisma/cli@dev";
1709
+ const PRISMA_CLI_PACKAGE = "@prisma/cli@latest";
1710
1710
  const DEPLOY_OPTIONS_BY_TEMPLATE = {
1711
1711
  hono: {
1712
1712
  framework: "hono",
@@ -1720,12 +1720,15 @@ const DEPLOY_OPTIONS_BY_TEMPLATE = {
1720
1720
  "tanstack-start": { framework: "tanstack-start" }
1721
1721
  };
1722
1722
  function getPrismaCliCommand(packageManager) {
1723
- return getPackageExecutionCommand(packageManager, [PRISMA_CLI_PACKAGE]);
1723
+ return getPackageExecutionCommand(getPrismaCliExecutionPackageManager(packageManager), [PRISMA_CLI_PACKAGE]);
1724
1724
  }
1725
1725
  function runPrismaCli(packageManager, args, options = {}) {
1726
- const execution = getPackageExecutionArgs(packageManager, [PRISMA_CLI_PACKAGE, ...args]);
1726
+ const execution = getPackageExecutionArgs(getPrismaCliExecutionPackageManager(packageManager), [PRISMA_CLI_PACKAGE, ...args]);
1727
1727
  return execa(execution.command, execution.args, options);
1728
1728
  }
1729
+ function getPrismaCliExecutionPackageManager(packageManager) {
1730
+ return packageManager === "deno" ? "npm" : packageManager;
1731
+ }
1729
1732
  async function isAuthenticated(packageManager) {
1730
1733
  try {
1731
1734
  await runPrismaCli(packageManager, [
@@ -2051,7 +2054,7 @@ async function getAnonymousId() {
2051
2054
  }
2052
2055
  function getCommonProperties() {
2053
2056
  return {
2054
- "cli-version": "0.4.2-pr.34.109.1",
2057
+ "cli-version": "0.4.2-pr.34.111.1",
2055
2058
  "node-version": process.version,
2056
2059
  platform: process.platform,
2057
2060
  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-dRPbnGmA.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-Co1kBCus.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.4.2-pr.34.109.1";
7
+ const CLI_VERSION = "0.4.2-pr.34.111.1";
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.4.2-pr.34.109.1",
3
+ "version": "0.4.2-pr.34.111.1",
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",