@prisma/config 6.6.0-integration-mcp.3 → 6.6.0-integration-feat-orm-693-d1-driver-create-migration-adapter-using-new-http-binding.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.
package/dist/index.d.ts CHANGED
@@ -129,9 +129,9 @@ export declare type PrismaConfig<Env extends EnvVars = never> = {
129
129
  */
130
130
  earlyAccess: true;
131
131
  /**
132
- * The path to the schema file or path to a folder that shall be recursively searched for .prisma files.
132
+ * The configuration for the Prisma schema file(s).
133
133
  */
134
- schema?: string;
134
+ schema?: PrismaSchemaConfigShape;
135
135
  /**
136
136
  * The configuration for Prisma Studio.
137
137
  */
@@ -157,9 +157,9 @@ declare type _PrismaConfigInternal<Env extends EnvVars = never> = {
157
157
  */
158
158
  earlyAccess: true;
159
159
  /**
160
- * The path to the schema file or path to a folder that shall be recursively searched for .prisma files.
160
+ * The configuration for the Prisma schema file(s).
161
161
  */
162
- schema?: string;
162
+ schema?: PrismaSchemaConfigShape;
163
163
  /**
164
164
  * The configuration for Prisma Studio.
165
165
  */
@@ -179,6 +179,27 @@ declare type PrismaMigrateConfigShape<Env extends EnvVars = never> = {
179
179
  adapter: (env: Env) => Promise<SqlDriverAdapter>;
180
180
  };
181
181
 
182
+ declare type PrismaSchemaConfigShape = {
183
+ /**
184
+ * Tell Prisma to use a single `.prisma` schema file.
185
+ */
186
+ kind: 'single';
187
+ /**
188
+ * The path to a single `.prisma` schema file.
189
+ */
190
+ filePath: string;
191
+ } | {
192
+ /**
193
+ * Tell Prisma to use multiple `.prisma` schema files, via the `prismaSchemaFolder` preview feature.
194
+ */
195
+ kind: 'multi';
196
+ /**
197
+ * The path to a folder containing multiple `.prisma` schema files.
198
+ * All of the files in this folder will be used.
199
+ */
200
+ folderPath: string;
201
+ };
202
+
182
203
  declare type PrismaStudioConfigShape<Env extends EnvVars = never> = {
183
204
  adapter: (env: Env) => Promise<SqlDriverAdapter>;
184
205
  };
package/dist/index.js CHANGED
@@ -22406,7 +22406,18 @@ var createPrismaMigrateConfigInternalShape = () => Schema_exports.Struct({
22406
22406
  */
22407
22407
  adapter: adapterShape()
22408
22408
  });
22409
+ var PrismaConfigSchemaSingleShape = Schema_exports.Struct({
22410
+ kind: Schema_exports.Literal("single"),
22411
+ filePath: Schema_exports.String
22412
+ });
22413
+ var PrismaConfigSchemaMultiShape = Schema_exports.Struct({
22414
+ kind: Schema_exports.Literal("multi"),
22415
+ folderPath: Schema_exports.String
22416
+ });
22417
+ var PrismaSchemaConfigShape = Schema_exports.Union(PrismaConfigSchemaSingleShape, PrismaConfigSchemaMultiShape);
22409
22418
  if (false) {
22419
+ __testPrismaSchemaConfigShapeValueA;
22420
+ __testPrismaSchemaConfigShapeValueB;
22410
22421
  __testPrismaStudioConfigShapeValueA;
22411
22422
  __testPrismaStudioConfigShapeValueB;
22412
22423
  __testPrismaMigrateConfigShapeValueA;
@@ -22414,7 +22425,7 @@ if (false) {
22414
22425
  }
22415
22426
  var createPrismaConfigShape = () => Schema_exports.Struct({
22416
22427
  earlyAccess: Schema_exports.Literal(true),
22417
- schema: Schema_exports.optional(Schema_exports.String)
22428
+ schema: Schema_exports.optional(PrismaSchemaConfigShape)
22418
22429
  });
22419
22430
  if (false) {
22420
22431
  __testPrismaConfigValueA;
@@ -22428,7 +22439,7 @@ function parsePrismaConfigShape(input) {
22428
22439
  var PRISMA_CONFIG_INTERNAL_BRAND = Symbol.for("PrismaConfigInternal");
22429
22440
  var createPrismaConfigInternalShape = () => Schema_exports.Struct({
22430
22441
  earlyAccess: Schema_exports.Literal(true),
22431
- schema: Schema_exports.optional(Schema_exports.String),
22442
+ schema: Schema_exports.optional(PrismaSchemaConfigShape),
22432
22443
  studio: Schema_exports.optional(createPrismaStudioConfigInternalShape()),
22433
22444
  migrate: Schema_exports.optional(createPrismaMigrateConfigInternalShape()),
22434
22445
  loadedFromFile: Schema_exports.NullOr(Schema_exports.String)
@@ -22586,10 +22597,21 @@ async function requireTypeScriptFile(resolvedPath) {
22586
22597
  }
22587
22598
  }
22588
22599
  function transformPathsInConfigToAbsolute(prismaConfig, resolvedPath) {
22589
- if (prismaConfig.schema) {
22600
+ if (prismaConfig.schema?.kind === "single") {
22590
22601
  return {
22591
22602
  ...prismaConfig,
22592
- schema: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema)
22603
+ schema: {
22604
+ ...prismaConfig.schema,
22605
+ filePath: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema.filePath)
22606
+ }
22607
+ };
22608
+ } else if (prismaConfig.schema?.kind === "multi") {
22609
+ return {
22610
+ ...prismaConfig,
22611
+ schema: {
22612
+ ...prismaConfig.schema,
22613
+ folderPath: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema.folderPath)
22614
+ }
22593
22615
  };
22594
22616
  } else {
22595
22617
  return prismaConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/config",
3
- "version": "6.6.0-integration-mcp.3",
3
+ "version": "6.6.0-integration-feat-orm-693-d1-driver-create-migration-adapter-using-new-http-binding.5",
4
4
  "description": "Internal package used to define and read Prisma configuration files",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,8 +22,8 @@
22
22
  "esbuild-register": "3.6.0",
23
23
  "jest": "29.7.0",
24
24
  "jest-junit": "16.0.0",
25
- "@prisma/driver-adapter-utils": "6.6.0-integration-mcp.3",
26
- "@prisma/get-platform": "6.6.0-integration-mcp.3"
25
+ "@prisma/driver-adapter-utils": "6.6.0-integration-feat-orm-693-d1-driver-create-migration-adapter-using-new-http-binding.5",
26
+ "@prisma/get-platform": "6.6.0-integration-feat-orm-693-d1-driver-create-migration-adapter-using-new-http-binding.5"
27
27
  },
28
28
  "files": [
29
29
  "dist"