@prisma/config 6.6.0-dev.40 → 6.6.0-dev.42

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
@@ -136,6 +136,10 @@ export declare type PrismaConfig<Env extends EnvVars = never> = {
136
136
  * The configuration for Prisma Studio.
137
137
  */
138
138
  studio?: PrismaStudioConfigShape<Env>;
139
+ /**
140
+ * The configuration for Prisma Migrate + Introspect
141
+ */
142
+ migrate?: PrismaMigrateConfigShape<Env>;
139
143
  };
140
144
 
141
145
  /**
@@ -160,6 +164,10 @@ declare type _PrismaConfigInternal<Env extends EnvVars = never> = {
160
164
  * The configuration for Prisma Studio.
161
165
  */
162
166
  studio?: PrismaStudioConfigShape<Env>;
167
+ /**
168
+ * The configuration for Prisma Migrate + Introspect
169
+ */
170
+ migrate?: PrismaMigrateConfigShape<Env>;
163
171
  /**
164
172
  * The path from where the config was loaded.
165
173
  * It's set to `null` if no config file was found and only default config is applied.
@@ -167,6 +175,10 @@ declare type _PrismaConfigInternal<Env extends EnvVars = never> = {
167
175
  loadedFromFile: string | null;
168
176
  };
169
177
 
178
+ declare type PrismaMigrateConfigShape<Env extends EnvVars = never> = {
179
+ adapter: (env: Env) => Promise<SqlDriverAdapter>;
180
+ };
181
+
170
182
  declare type PrismaSchemaConfigShape = {
171
183
  /**
172
184
  * Tell Prisma to use a single `.prisma` schema file.
package/dist/index.js CHANGED
@@ -22353,6 +22353,7 @@ function defineConfig(configInput) {
22353
22353
  debug("Prisma config [default]: %o", config2);
22354
22354
  defineSchemaConfig(config2, configInput);
22355
22355
  defineStudioConfig(config2, configInput);
22356
+ defineMigrateConfig(config2, configInput);
22356
22357
  return config2;
22357
22358
  }
22358
22359
  function defineSchemaConfig(config2, configInput) {
@@ -22371,6 +22372,15 @@ function defineStudioConfig(config2, configInput) {
22371
22372
  };
22372
22373
  debug("Prisma config [studio]: %o", config2.studio);
22373
22374
  }
22375
+ function defineMigrateConfig(config2, configInput) {
22376
+ if (!configInput.migrate) {
22377
+ return;
22378
+ }
22379
+ config2.migrate = {
22380
+ adapter: configInput.migrate.adapter
22381
+ };
22382
+ debug("Prisma config [migrate]: %o", config2.migrate);
22383
+ }
22374
22384
 
22375
22385
  // src/PrismaConfig.ts
22376
22386
  var debug2 = Debug("prisma:config:PrismaConfig");
@@ -22390,6 +22400,12 @@ var createPrismaStudioConfigInternalShape = () => Schema_exports.Struct({
22390
22400
  */
22391
22401
  adapter: adapterShape()
22392
22402
  });
22403
+ var createPrismaMigrateConfigInternalShape = () => Schema_exports.Struct({
22404
+ /**
22405
+ * Instantiates the Prisma driver adapter to use for Prisma Migrate + Introspect.
22406
+ */
22407
+ adapter: adapterShape()
22408
+ });
22393
22409
  var PrismaConfigSchemaSingleShape = Schema_exports.Struct({
22394
22410
  kind: Schema_exports.Literal("single"),
22395
22411
  filePath: Schema_exports.String
@@ -22404,6 +22420,8 @@ if (false) {
22404
22420
  __testPrismaSchemaConfigShapeValueB;
22405
22421
  __testPrismaStudioConfigShapeValueA;
22406
22422
  __testPrismaStudioConfigShapeValueB;
22423
+ __testPrismaMigrateConfigShapeValueA;
22424
+ __testPrismaMigrateConfigShapeValueB;
22407
22425
  }
22408
22426
  var createPrismaConfigShape = () => Schema_exports.Struct({
22409
22427
  earlyAccess: Schema_exports.Literal(true),
@@ -22423,6 +22441,7 @@ var createPrismaConfigInternalShape = () => Schema_exports.Struct({
22423
22441
  earlyAccess: Schema_exports.Literal(true),
22424
22442
  schema: Schema_exports.optional(PrismaSchemaConfigShape),
22425
22443
  studio: Schema_exports.optional(createPrismaStudioConfigInternalShape()),
22444
+ migrate: Schema_exports.optional(createPrismaMigrateConfigInternalShape()),
22426
22445
  loadedFromFile: Schema_exports.NullOr(Schema_exports.String)
22427
22446
  });
22428
22447
  if (false) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/config",
3
- "version": "6.6.0-dev.40",
3
+ "version": "6.6.0-dev.42",
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-dev.40",
26
- "@prisma/get-platform": "6.6.0-dev.40"
25
+ "@prisma/driver-adapter-utils": "6.6.0-dev.42",
26
+ "@prisma/get-platform": "6.6.0-dev.42"
27
27
  },
28
28
  "files": [
29
29
  "dist"