@prisma/config 6.4.0-dev.55 → 6.4.0-dev.57

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.
@@ -10,7 +10,7 @@ declare const PrismaSchemaConfigShape: Shape.Union<[Shape.Struct<{
10
10
  /**
11
11
  * The path to a single `.prisma` schema file.
12
12
  */
13
- filenamePath: typeof Shape.String;
13
+ filePath: typeof Shape.String;
14
14
  }>, Shape.Struct<{
15
15
  /**
16
16
  * Tell Prisma to use multiple `.prisma` schema files, via the `prismaSchemaFolder` preview feature.
@@ -20,7 +20,7 @@ declare const PrismaSchemaConfigShape: Shape.Union<[Shape.Struct<{
20
20
  * The path to a folder containing multiple `.prisma` schema files.
21
21
  * All of the files in this folder will be used.
22
22
  */
23
- folder: typeof Shape.String;
23
+ folderPath: typeof Shape.String;
24
24
  }>]>;
25
25
  export type PrismaSchemaConfigShape = typeof PrismaSchemaConfigShape.Type;
26
26
  export declare const createPrismaConfigInternalShape: <Env = any>() => Shape.brand<Shape.Struct<{
@@ -39,7 +39,7 @@ export declare const createPrismaConfigInternalShape: <Env = any>() => Shape.bra
39
39
  /**
40
40
  * The path to a single `.prisma` schema file.
41
41
  */
42
- filenamePath: typeof Shape.String;
42
+ filePath: typeof Shape.String;
43
43
  }>, Shape.Struct<{
44
44
  /**
45
45
  * Tell Prisma to use multiple `.prisma` schema files, via the `prismaSchemaFolder` preview feature.
@@ -49,7 +49,7 @@ export declare const createPrismaConfigInternalShape: <Env = any>() => Shape.bra
49
49
  * The path to a folder containing multiple `.prisma` schema files.
50
50
  * All of the files in this folder will be used.
51
51
  */
52
- folder: typeof Shape.String;
52
+ folderPath: typeof Shape.String;
53
53
  }>]>>;
54
54
  /**
55
55
  * The configuration for Prisma Studio.
@@ -58,7 +58,7 @@ export declare const createPrismaConfigInternalShape: <Env = any>() => Shape.bra
58
58
  /**
59
59
  * Instantiates the Prisma driver adapter to use for Prisma Studio.
60
60
  */
61
- createAdapter: Shape.SchemaClass<(env: Env) => Promise<QueryableDriverAdapter>, (env: Env) => Promise<QueryableDriverAdapter>, never>;
61
+ adapter: Shape.SchemaClass<(env: Env) => Promise<QueryableDriverAdapter>, (env: Env) => Promise<QueryableDriverAdapter>, never>;
62
62
  }>>;
63
63
  /**
64
64
  * The path from where the config was loaded.
@@ -22144,12 +22144,12 @@ var ArrayFormatterIssue = class extends (/* @__PURE__ */ Struct({
22144
22144
  };
22145
22145
 
22146
22146
  // src/PrismaConfig.ts
22147
- var createAdapterShape = () => Schema_exports.declare(
22147
+ var adapterShape = () => Schema_exports.declare(
22148
22148
  (input) => {
22149
22149
  return input instanceof Function;
22150
22150
  },
22151
22151
  {
22152
- identifier: "CreateAdapter<Env>",
22152
+ identifier: "Adapter<Env>",
22153
22153
  encode: identity,
22154
22154
  decode: identity
22155
22155
  }
@@ -22158,7 +22158,7 @@ var createPrismaStudioConfigInternalShape = () => Schema_exports.Struct({
22158
22158
  /**
22159
22159
  * Instantiates the Prisma driver adapter to use for Prisma Studio.
22160
22160
  */
22161
- createAdapter: createAdapterShape()
22161
+ adapter: adapterShape()
22162
22162
  });
22163
22163
  var PrismaConfigSchemaSingleShape = Schema_exports.Struct({
22164
22164
  /**
@@ -22168,7 +22168,7 @@ var PrismaConfigSchemaSingleShape = Schema_exports.Struct({
22168
22168
  /**
22169
22169
  * The path to a single `.prisma` schema file.
22170
22170
  */
22171
- filenamePath: Schema_exports.String
22171
+ filePath: Schema_exports.String
22172
22172
  });
22173
22173
  var PrismaConfigSchemaMultiShape = Schema_exports.Struct({
22174
22174
  /**
@@ -22179,7 +22179,7 @@ var PrismaConfigSchemaMultiShape = Schema_exports.Struct({
22179
22179
  * The path to a folder containing multiple `.prisma` schema files.
22180
22180
  * All of the files in this folder will be used.
22181
22181
  */
22182
- folder: Schema_exports.String
22182
+ folderPath: Schema_exports.String
22183
22183
  });
22184
22184
  var PrismaSchemaConfigShape = Schema_exports.Union(PrismaConfigSchemaSingleShape, PrismaConfigSchemaMultiShape);
22185
22185
  var createPrismaConfigInternalShape = () => pipe(
@@ -22143,12 +22143,12 @@ var ArrayFormatterIssue = class extends (/* @__PURE__ */ Struct({
22143
22143
  };
22144
22144
 
22145
22145
  // src/PrismaConfig.ts
22146
- var createAdapterShape = () => Schema_exports.declare(
22146
+ var adapterShape = () => Schema_exports.declare(
22147
22147
  (input) => {
22148
22148
  return input instanceof Function;
22149
22149
  },
22150
22150
  {
22151
- identifier: "CreateAdapter<Env>",
22151
+ identifier: "Adapter<Env>",
22152
22152
  encode: identity,
22153
22153
  decode: identity
22154
22154
  }
@@ -22157,7 +22157,7 @@ var createPrismaStudioConfigInternalShape = () => Schema_exports.Struct({
22157
22157
  /**
22158
22158
  * Instantiates the Prisma driver adapter to use for Prisma Studio.
22159
22159
  */
22160
- createAdapter: createAdapterShape()
22160
+ adapter: adapterShape()
22161
22161
  });
22162
22162
  var PrismaConfigSchemaSingleShape = Schema_exports.Struct({
22163
22163
  /**
@@ -22167,7 +22167,7 @@ var PrismaConfigSchemaSingleShape = Schema_exports.Struct({
22167
22167
  /**
22168
22168
  * The path to a single `.prisma` schema file.
22169
22169
  */
22170
- filenamePath: Schema_exports.String
22170
+ filePath: Schema_exports.String
22171
22171
  });
22172
22172
  var PrismaConfigSchemaMultiShape = Schema_exports.Struct({
22173
22173
  /**
@@ -22178,7 +22178,7 @@ var PrismaConfigSchemaMultiShape = Schema_exports.Struct({
22178
22178
  * The path to a folder containing multiple `.prisma` schema files.
22179
22179
  * All of the files in this folder will be used.
22180
22180
  */
22181
- folder: Schema_exports.String
22181
+ folderPath: Schema_exports.String
22182
22182
  });
22183
22183
  var PrismaSchemaConfigShape = Schema_exports.Union(PrismaConfigSchemaSingleShape, PrismaConfigSchemaMultiShape);
22184
22184
  var createPrismaConfigInternalShape = () => pipe(
@@ -22143,12 +22143,12 @@ var ArrayFormatterIssue = class extends (/* @__PURE__ */ Struct({
22143
22143
  };
22144
22144
 
22145
22145
  // src/PrismaConfig.ts
22146
- var createAdapterShape = () => Schema_exports.declare(
22146
+ var adapterShape = () => Schema_exports.declare(
22147
22147
  (input) => {
22148
22148
  return input instanceof Function;
22149
22149
  },
22150
22150
  {
22151
- identifier: "CreateAdapter<Env>",
22151
+ identifier: "Adapter<Env>",
22152
22152
  encode: identity,
22153
22153
  decode: identity
22154
22154
  }
@@ -22157,7 +22157,7 @@ var createPrismaStudioConfigInternalShape = () => Schema_exports.Struct({
22157
22157
  /**
22158
22158
  * Instantiates the Prisma driver adapter to use for Prisma Studio.
22159
22159
  */
22160
- createAdapter: createAdapterShape()
22160
+ adapter: adapterShape()
22161
22161
  });
22162
22162
  var PrismaConfigSchemaSingleShape = Schema_exports.Struct({
22163
22163
  /**
@@ -22167,7 +22167,7 @@ var PrismaConfigSchemaSingleShape = Schema_exports.Struct({
22167
22167
  /**
22168
22168
  * The path to a single `.prisma` schema file.
22169
22169
  */
22170
- filenamePath: Schema_exports.String
22170
+ filePath: Schema_exports.String
22171
22171
  });
22172
22172
  var PrismaConfigSchemaMultiShape = Schema_exports.Struct({
22173
22173
  /**
@@ -22178,7 +22178,7 @@ var PrismaConfigSchemaMultiShape = Schema_exports.Struct({
22178
22178
  * The path to a folder containing multiple `.prisma` schema files.
22179
22179
  * All of the files in this folder will be used.
22180
22180
  */
22181
- folder: Schema_exports.String
22181
+ folderPath: Schema_exports.String
22182
22182
  });
22183
22183
  var PrismaSchemaConfigShape = Schema_exports.Union(PrismaConfigSchemaSingleShape, PrismaConfigSchemaMultiShape);
22184
22184
  var createPrismaConfigInternalShape = () => pipe(
@@ -22329,12 +22329,12 @@ var ArrayFormatterIssue = class extends (/* @__PURE__ */ Struct({
22329
22329
  };
22330
22330
 
22331
22331
  // src/PrismaConfig.ts
22332
- var createAdapterShape = () => Schema_exports.declare(
22332
+ var adapterShape = () => Schema_exports.declare(
22333
22333
  (input) => {
22334
22334
  return input instanceof Function;
22335
22335
  },
22336
22336
  {
22337
- identifier: "CreateAdapter<Env>",
22337
+ identifier: "Adapter<Env>",
22338
22338
  encode: identity,
22339
22339
  decode: identity
22340
22340
  }
@@ -22343,7 +22343,7 @@ var createPrismaStudioConfigInternalShape = () => Schema_exports.Struct({
22343
22343
  /**
22344
22344
  * Instantiates the Prisma driver adapter to use for Prisma Studio.
22345
22345
  */
22346
- createAdapter: createAdapterShape()
22346
+ adapter: adapterShape()
22347
22347
  });
22348
22348
  var PrismaConfigSchemaSingleShape = Schema_exports.Struct({
22349
22349
  /**
@@ -22353,7 +22353,7 @@ var PrismaConfigSchemaSingleShape = Schema_exports.Struct({
22353
22353
  /**
22354
22354
  * The path to a single `.prisma` schema file.
22355
22355
  */
22356
- filenamePath: Schema_exports.String
22356
+ filePath: Schema_exports.String
22357
22357
  });
22358
22358
  var PrismaConfigSchemaMultiShape = Schema_exports.Struct({
22359
22359
  /**
@@ -22364,7 +22364,7 @@ var PrismaConfigSchemaMultiShape = Schema_exports.Struct({
22364
22364
  * The path to a folder containing multiple `.prisma` schema files.
22365
22365
  * All of the files in this folder will be used.
22366
22366
  */
22367
- folder: Schema_exports.String
22367
+ folderPath: Schema_exports.String
22368
22368
  });
22369
22369
  var PrismaSchemaConfigShape = Schema_exports.Union(PrismaConfigSchemaSingleShape, PrismaConfigSchemaMultiShape);
22370
22370
  var createPrismaConfigInternalShape = () => pipe(
@@ -22418,7 +22418,7 @@ function defineStudioConfig(config2, configInput) {
22418
22418
  return;
22419
22419
  }
22420
22420
  config2.studio = {
22421
- createAdapter: configInput.studio.adapter
22421
+ adapter: configInput.studio.adapter
22422
22422
  };
22423
22423
  debug("Prisma config [studio]: %o", config2.studio);
22424
22424
  }
package/dist/index.js CHANGED
@@ -22274,12 +22274,12 @@ var ArrayFormatterIssue = class extends (/* @__PURE__ */ Struct({
22274
22274
  };
22275
22275
 
22276
22276
  // src/PrismaConfig.ts
22277
- var createAdapterShape = () => Schema_exports.declare(
22277
+ var adapterShape = () => Schema_exports.declare(
22278
22278
  (input) => {
22279
22279
  return input instanceof Function;
22280
22280
  },
22281
22281
  {
22282
- identifier: "CreateAdapter<Env>",
22282
+ identifier: "Adapter<Env>",
22283
22283
  encode: identity,
22284
22284
  decode: identity
22285
22285
  }
@@ -22288,7 +22288,7 @@ var createPrismaStudioConfigInternalShape = () => Schema_exports.Struct({
22288
22288
  /**
22289
22289
  * Instantiates the Prisma driver adapter to use for Prisma Studio.
22290
22290
  */
22291
- createAdapter: createAdapterShape()
22291
+ adapter: adapterShape()
22292
22292
  });
22293
22293
  var PrismaConfigSchemaSingleShape = Schema_exports.Struct({
22294
22294
  /**
@@ -22298,7 +22298,7 @@ var PrismaConfigSchemaSingleShape = Schema_exports.Struct({
22298
22298
  /**
22299
22299
  * The path to a single `.prisma` schema file.
22300
22300
  */
22301
- filenamePath: Schema_exports.String
22301
+ filePath: Schema_exports.String
22302
22302
  });
22303
22303
  var PrismaConfigSchemaMultiShape = Schema_exports.Struct({
22304
22304
  /**
@@ -22309,7 +22309,7 @@ var PrismaConfigSchemaMultiShape = Schema_exports.Struct({
22309
22309
  * The path to a folder containing multiple `.prisma` schema files.
22310
22310
  * All of the files in this folder will be used.
22311
22311
  */
22312
- folder: Schema_exports.String
22312
+ folderPath: Schema_exports.String
22313
22313
  });
22314
22314
  var PrismaSchemaConfigShape = Schema_exports.Union(PrismaConfigSchemaSingleShape, PrismaConfigSchemaMultiShape);
22315
22315
  var createPrismaConfigInternalShape = () => pipe(
@@ -22562,7 +22562,7 @@ function defineStudioConfig(config2, configInput) {
22562
22562
  return;
22563
22563
  }
22564
22564
  config2.studio = {
22565
- createAdapter: configInput.studio.adapter
22565
+ adapter: configInput.studio.adapter
22566
22566
  };
22567
22567
  debug("Prisma config [studio]: %o", config2.studio);
22568
22568
  }
@@ -22611,6 +22611,8 @@ async function loadConfigFromFile({
22611
22611
  }
22612
22612
  };
22613
22613
  }
22614
+ import_node_process.default.stdout.write(`Loaded Prisma config from "${resolvedPath}".
22615
+ `);
22614
22616
  const prismaConfig = transformPathsInConfigToAbsolute(parseResultEither.right, resolvedPath);
22615
22617
  return {
22616
22618
  config: {
@@ -22660,7 +22662,7 @@ function transformPathsInConfigToAbsolute(prismaConfig, resolvedPath) {
22660
22662
  ...prismaConfig,
22661
22663
  schema: {
22662
22664
  ...prismaConfig.schema,
22663
- filenamePath: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema.filenamePath)
22665
+ filePath: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema.filePath)
22664
22666
  }
22665
22667
  };
22666
22668
  } else if (prismaConfig.schema?.kind === "multi") {
@@ -22668,7 +22670,7 @@ function transformPathsInConfigToAbsolute(prismaConfig, resolvedPath) {
22668
22670
  ...prismaConfig,
22669
22671
  schema: {
22670
22672
  ...prismaConfig.schema,
22671
- folder: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema.folder)
22673
+ folderPath: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema.folderPath)
22672
22674
  }
22673
22675
  };
22674
22676
  } else {
@@ -22460,12 +22460,12 @@ var ArrayFormatterIssue = class extends (/* @__PURE__ */ Struct({
22460
22460
  };
22461
22461
 
22462
22462
  // src/PrismaConfig.ts
22463
- var createAdapterShape = () => Schema_exports.declare(
22463
+ var adapterShape = () => Schema_exports.declare(
22464
22464
  (input) => {
22465
22465
  return input instanceof Function;
22466
22466
  },
22467
22467
  {
22468
- identifier: "CreateAdapter<Env>",
22468
+ identifier: "Adapter<Env>",
22469
22469
  encode: identity,
22470
22470
  decode: identity
22471
22471
  }
@@ -22474,7 +22474,7 @@ var createPrismaStudioConfigInternalShape = () => Schema_exports.Struct({
22474
22474
  /**
22475
22475
  * Instantiates the Prisma driver adapter to use for Prisma Studio.
22476
22476
  */
22477
- createAdapter: createAdapterShape()
22477
+ adapter: adapterShape()
22478
22478
  });
22479
22479
  var PrismaConfigSchemaSingleShape = Schema_exports.Struct({
22480
22480
  /**
@@ -22484,7 +22484,7 @@ var PrismaConfigSchemaSingleShape = Schema_exports.Struct({
22484
22484
  /**
22485
22485
  * The path to a single `.prisma` schema file.
22486
22486
  */
22487
- filenamePath: Schema_exports.String
22487
+ filePath: Schema_exports.String
22488
22488
  });
22489
22489
  var PrismaConfigSchemaMultiShape = Schema_exports.Struct({
22490
22490
  /**
@@ -22495,7 +22495,7 @@ var PrismaConfigSchemaMultiShape = Schema_exports.Struct({
22495
22495
  * The path to a folder containing multiple `.prisma` schema files.
22496
22496
  * All of the files in this folder will be used.
22497
22497
  */
22498
- folder: Schema_exports.String
22498
+ folderPath: Schema_exports.String
22499
22499
  });
22500
22500
  var PrismaSchemaConfigShape = Schema_exports.Union(PrismaConfigSchemaSingleShape, PrismaConfigSchemaMultiShape);
22501
22501
  var createPrismaConfigInternalShape = () => pipe(
@@ -22567,6 +22567,8 @@ async function loadConfigFromFile({
22567
22567
  }
22568
22568
  };
22569
22569
  }
22570
+ import_node_process.default.stdout.write(`Loaded Prisma config from "${resolvedPath}".
22571
+ `);
22570
22572
  const prismaConfig = transformPathsInConfigToAbsolute(parseResultEither.right, resolvedPath);
22571
22573
  return {
22572
22574
  config: {
@@ -22616,7 +22618,7 @@ function transformPathsInConfigToAbsolute(prismaConfig, resolvedPath) {
22616
22618
  ...prismaConfig,
22617
22619
  schema: {
22618
22620
  ...prismaConfig.schema,
22619
- filenamePath: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema.filenamePath)
22621
+ filePath: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema.filePath)
22620
22622
  }
22621
22623
  };
22622
22624
  } else if (prismaConfig.schema?.kind === "multi") {
@@ -22624,7 +22626,7 @@ function transformPathsInConfigToAbsolute(prismaConfig, resolvedPath) {
22624
22626
  ...prismaConfig,
22625
22627
  schema: {
22626
22628
  ...prismaConfig.schema,
22627
- folder: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema.folder)
22629
+ folderPath: import_node_path.default.resolve(import_node_path.default.dirname(resolvedPath), prismaConfig.schema.folderPath)
22628
22630
  }
22629
22631
  };
22630
22632
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/config",
3
- "version": "6.4.0-dev.55",
3
+ "version": "6.4.0-dev.57",
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",
@@ -18,8 +18,8 @@
18
18
  "esbuild-register": "3.6.0",
19
19
  "jest": "29.7.0",
20
20
  "jest-junit": "16.0.0",
21
- "@prisma/driver-adapter-utils": "6.4.0-dev.55",
22
- "@prisma/get-platform": "6.4.0-dev.55"
21
+ "@prisma/get-platform": "6.4.0-dev.57",
22
+ "@prisma/driver-adapter-utils": "6.4.0-dev.57"
23
23
  },
24
24
  "files": [
25
25
  "dist"