@prisma/composer-prisma-cloud 0.20.0-dev.4 → 0.20.0-dev.5

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.
@@ -1,4 +1,4 @@
1
- import { C as ServiceKeyProvider, T as isWithin, b as Providers, c as PrismaCloudContainer, d as collectPreflightNames, h as prismaCloudContainerOf, i as OrmMigrationProvider, n as GeneratedParamProvider, p as deserialize, s as PgWarmProvider, u as S3CredentialsProvider, y as mintKeyPair } from "./s3-credentials-resource-CLB5qGGZ-GZqoAi6O.mjs";
1
+ import { C as ServiceKeyProvider, T as isWithin, b as Providers, c as PrismaCloudContainer, d as collectPreflightNames, h as prismaCloudContainerOf, i as OrmMigrationProvider, n as GeneratedParamProvider, p as deserialize, s as PgWarmProvider, u as S3CredentialsProvider, y as mintKeyPair } from "./s3-credentials-resource-CLB5qGGZ-DU52P0yF.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import { blindCast } from "@prisma/composer/casts";
4
4
  import * as Effect from "effect/Effect";
@@ -5986,15 +5986,15 @@ function databaseIdOfInput(value) {
5986
5986
  if (Predicate.isObject(value) && typeof value["databaseId"] === "string") return value["databaseId"];
5987
5987
  }
5988
5988
  function noPrismaDevError() {
5989
- return /* @__PURE__ */ new Error("local dev needs @prisma/dev for its local Postgres emulator — add \"prisma\" to your app's devDependencies.");
5989
+ return /* @__PURE__ */ new Error("local dev needs @prisma/dev for its local Postgres emulator — add \"@prisma/dev\" to the devDependencies of the project where you run Composer.");
5990
5990
  }
5991
5991
  /**
5992
5992
  * Two-step resolution, pinned (local-dev spec § 4): (1) resolve
5993
5993
  * `@prisma/dev` directly from the app's own `node_modules`; (2) on failure,
5994
- * resolve `prisma` (the CLI apps typically depend on, which itself carries
5995
- * `@prisma/dev`) and resolve `@prisma/dev` from THERE. The daemon imports
5996
- * the returned path dynamically, so the app stays in charge of its own
5997
- * Prisma version. `cwd` is the one place a local provider legitimately
5994
+ * resolve `prisma/package.json` and check that installation for `@prisma/dev`
5995
+ * (older CLI releases carry it; Prisma 8 does not). The daemon imports the
5996
+ * returned path dynamically, so the app owns its local Postgres runtime.
5997
+ * `cwd` is the one place a local provider legitimately
5998
5998
  * reads `process.cwd()` — finding the app's own installed version is
5999
5999
  * inherently cwd-relative.
6000
6000
  */
@@ -6004,7 +6004,7 @@ function resolvePrismaDevModulePath(cwd) {
6004
6004
  return appRequire.resolve("@prisma/dev");
6005
6005
  } catch {}
6006
6006
  try {
6007
- return createRequire(appRequire.resolve("prisma")).resolve("@prisma/dev");
6007
+ return createRequire(appRequire.resolve("prisma/package.json")).resolve("@prisma/dev");
6008
6008
  } catch {
6009
6009
  throw noPrismaDevError();
6010
6010
  }