@prisma/internals 6.19.0-integration-feat-remove-library-engine.4 → 6.19.0-integration-engines-6-19-0-31-next-6f525e2b254a97a9c547ae5f2b29c54a171f6b23.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.
Files changed (108) hide show
  1. package/dist/{chunk-ZVTQSH5K.js → chunk-2QAF26LC.js} +5 -5
  2. package/dist/{chunk-Z2IPE4NA.js → chunk-3D5WFBNU.js} +66 -38
  3. package/dist/{chunk-EYGLXZ7L.js → chunk-3NZLOTZP.js} +8 -8
  4. package/dist/{chunk-6QTN4DDB.js → chunk-46ABODUM.js} +21 -6
  5. package/dist/{chunk-GJSFP4V4.js → chunk-4CGPN5SR.js} +9 -3
  6. package/dist/{chunk-GL7OANR6.js → chunk-4JCVHBYR.js} +5 -5
  7. package/dist/{chunk-KUU5CPWK.js → chunk-4YZH45V6.js} +5 -5
  8. package/dist/{chunk-MEOOYUIZ.js → chunk-5AI4FIZ3.js} +10 -10
  9. package/dist/{chunk-NVSVTFPX.js → chunk-5MVBCW2Z.js} +5 -5
  10. package/dist/chunk-6TTRTZXU.js +37 -0
  11. package/dist/{chunk-UB2X7DGZ.js → chunk-75BIJ5PX.js} +9 -9
  12. package/dist/{chunk-MUZJUPDX.js → chunk-77HI77IU.js} +7 -7
  13. package/dist/{chunk-H6PPJ5PX.js → chunk-7QC5VORA.js} +7 -7
  14. package/dist/{chunk-NNYJV66S.js → chunk-APZUC47O.js} +5 -5
  15. package/dist/{chunk-33K2EQQZ.js → chunk-AX5N26KG.js} +10 -10
  16. package/dist/{chunk-32LLAKF4.js → chunk-BVJP43JS.js} +784 -13
  17. package/dist/{chunk-IKYFTE43.js → chunk-BZFXOLVC.js} +8 -8
  18. package/dist/{chunk-E4GP3FX7.js → chunk-C2HOY5Z2.js} +66 -38
  19. package/dist/{chunk-IRWX4FCC.js → chunk-D4VDA2TZ.js} +6 -6
  20. package/dist/chunk-DZYINYAA.js +68 -0
  21. package/dist/chunk-ERSH2BQA.js +58 -0
  22. package/dist/{chunk-OKVM3CW4.js → chunk-EYVG6XQS.js} +39 -3
  23. package/dist/{chunk-5MHUYAV3.js → chunk-F2OZV76L.js} +9 -9
  24. package/dist/{chunk-R3J2O23S.js → chunk-FCYHZHVW.js} +4 -4
  25. package/dist/{chunk-UMB3Y33W.js → chunk-FP7Y7C33.js} +7 -7
  26. package/dist/{chunk-HNRMSI3R.js → chunk-FYZCPL2Z.js} +8 -5
  27. package/dist/{chunk-22HIO2UL.js → chunk-GMW36QQF.js} +7 -7
  28. package/dist/{chunk-BUQN4WLU.js → chunk-HFFWZTVM.js} +9 -7
  29. package/dist/{chunk-CGLLQXZE.js → chunk-HHG4DGHC.js} +12 -11
  30. package/dist/{chunk-5W3BSMTH.js → chunk-HO5HRHFZ.js} +6 -3
  31. package/dist/{chunk-3WXUQZS7.js → chunk-I6WLABB2.js} +5 -14
  32. package/dist/{chunk-FF7OLLBP.js → chunk-IDINCQMN.js} +784 -12
  33. package/dist/{chunk-LGJMPZ7V.js → chunk-IE6Y4PMC.js} +5 -5
  34. package/dist/{chunk-2LOGW45F.js → chunk-JOIIWB3U.js} +33 -68
  35. package/dist/{chunk-XIVQSSTX.js → chunk-NE544QTB.js} +8 -8
  36. package/dist/{chunk-D7L3VT6R.js → chunk-NGOAZIZY.js} +8 -8
  37. package/dist/{chunk-KNNTV7IN.js → chunk-NVNI2SRU.js} +213 -687
  38. package/dist/{chunk-H5STSTVK.js → chunk-OAT7ZJED.js} +20 -7
  39. package/dist/{chunk-T3NMG3HB.js → chunk-OQH4MI73.js} +7 -7
  40. package/dist/{chunk-FURGECAD.js → chunk-PZMRR772.js} +6 -6
  41. package/dist/{chunk-L7QYUMS4.js → chunk-Q64XHKHF.js} +8 -8
  42. package/dist/{chunk-EBJBIVXN.js → chunk-RNYJUEDU.js} +5 -5
  43. package/dist/{chunk-5I4ERIIY.js → chunk-RS2R7COT.js} +9 -3
  44. package/dist/{chunk-KO44E4Z3.js → chunk-TBA7BNPC.js} +5 -5
  45. package/dist/{chunk-VNIE2AZB.js → chunk-TQCLUNM2.js} +4 -4
  46. package/dist/{chunk-MXAUURHG.js → chunk-TQFONRJP.js} +5 -5
  47. package/dist/{chunk-WJKBKH3Y.js → chunk-UHI6VYFX.js} +5 -5
  48. package/dist/{chunk-IU77SCOB.js → chunk-UQUWZJVN.js} +9 -9
  49. package/dist/{chunk-AOJ2N25Z.js → chunk-VFCLWZ3O.js} +8 -8
  50. package/dist/{chunk-BZV6PVWV.js → chunk-VSGMGR6A.js} +8 -8
  51. package/dist/{chunk-ARC7TW3L.js → chunk-WFNB7VRA.js} +14 -4
  52. package/dist/{chunk-TDQDOFYQ.js → chunk-XZBDRJF3.js} +5 -5
  53. package/dist/cli/checkUnsupportedDataProxy.js +54 -52
  54. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +54 -52
  55. package/dist/cli/getGeneratorSuccessMessage.js +3 -2
  56. package/dist/cli/getSchema.d.ts +15 -1
  57. package/dist/cli/getSchema.js +5 -4
  58. package/dist/cli/hashes.js +4 -4
  59. package/dist/cli/schemaContext.js +54 -52
  60. package/dist/client/getClientEngineType.d.ts +7 -0
  61. package/dist/client/getClientEngineType.js +26 -0
  62. package/dist/engine-commands/errorHelpers.js +4 -4
  63. package/dist/engine-commands/formatSchema.js +53 -51
  64. package/dist/engine-commands/getConfig.js +10 -10
  65. package/dist/engine-commands/getDmmf.js +7 -7
  66. package/dist/engine-commands/getEngineVersion.js +9 -6
  67. package/dist/engine-commands/getEnginesInfo.d.ts +1 -0
  68. package/dist/engine-commands/getEnginesInfo.js +9 -7
  69. package/dist/engine-commands/index.js +65 -63
  70. package/dist/engine-commands/lintSchema.js +8 -8
  71. package/dist/engine-commands/mergeSchemas.js +7 -7
  72. package/dist/engine-commands/validate.js +7 -7
  73. package/dist/errorReporting.js +6 -6
  74. package/dist/get-generators/getGenerators.d.ts +1 -0
  75. package/dist/get-generators/getGenerators.js +56 -54
  76. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  77. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  78. package/dist/get-generators/utils/getBinaryPathsByVersion.js +5 -6
  79. package/dist/getPackedPackage.js +3 -4
  80. package/dist/highlight/highlight.js +5 -5
  81. package/dist/index.d.ts +4 -1
  82. package/dist/index.js +109 -102
  83. package/dist/{multipart-parser-UV3WZSWW.js → multipart-parser-3AFJFP6K.js} +6 -6
  84. package/dist/resolveBinary.js +7 -8
  85. package/dist/schemaEngineCommands.js +8 -9
  86. package/dist/sendPanic.js +4 -4
  87. package/dist/utils/canPrompt.js +3 -3
  88. package/dist/utils/cloudflareD1.js +3 -3
  89. package/dist/utils/drawBox.js +2 -2
  90. package/dist/utils/fs-functional.js +10 -10
  91. package/dist/utils/fs-utils.js +8 -8
  92. package/dist/utils/getEnvPaths.d.ts +1 -1
  93. package/dist/utils/getEnvPaths.js +3 -2
  94. package/dist/utils/getVersionFromPackageJson.js +3 -3
  95. package/dist/utils/handleEngineLoadingErrors.d.ts +8 -0
  96. package/dist/utils/handleEngineLoadingErrors.js +27 -0
  97. package/dist/utils/handlePanic.js +8 -8
  98. package/dist/utils/link.js +2 -2
  99. package/dist/utils/load.d.ts +6 -0
  100. package/dist/utils/load.js +28 -0
  101. package/dist/utils/loadEnvFile.d.ts +1 -1
  102. package/dist/utils/loadEnvFile.js +4 -3
  103. package/dist/utils/missingDatasource.js +5 -5
  104. package/dist/utils/missingGeneratorMessage.js +7 -7
  105. package/dist/utils/serializeQueryEngineName.js +2 -2
  106. package/dist/wasm.js +5 -5
  107. package/package.json +15 -15
  108. package/dist/chunk-DYV47NUW.js +0 -796
@@ -26,20 +26,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_IKYFTE43_exports = {};
30
- __export(chunk_IKYFTE43_exports, {
29
+ var chunk_BZFXOLVC_exports = {};
30
+ __export(chunk_BZFXOLVC_exports, {
31
31
  GetConfigError: () => GetConfigError,
32
32
  getConfig: () => getConfig,
33
33
  getDirectUrl: () => getDirectUrl,
34
34
  getEffectiveUrl: () => getEffectiveUrl,
35
35
  resolveUrl: () => resolveUrl
36
36
  });
37
- module.exports = __toCommonJS(chunk_IKYFTE43_exports);
37
+ module.exports = __toCommonJS(chunk_BZFXOLVC_exports);
38
38
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
39
39
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
40
40
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
41
- var import_chunk_LGJMPZ7V = require("./chunk-LGJMPZ7V.js");
42
- var import_chunk_TDQDOFYQ = require("./chunk-TDQDOFYQ.js");
41
+ var import_chunk_IE6Y4PMC = require("./chunk-IE6Y4PMC.js");
42
+ var import_chunk_2QAF26LC = require("./chunk-2QAF26LC.js");
43
43
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
44
44
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
45
45
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -64,7 +64,7 @@ ${detailsHeader} ${message}`;
64
64
  }).exhaustive();
65
65
  const errorMessageWithContext = `${constructedErrorMessage}
66
66
  [Context: getConfig]`;
67
- super((0, import_chunk_LGJMPZ7V.addVersionDetailsToErrorMessage)(errorMessageWithContext));
67
+ super((0, import_chunk_IE6Y4PMC.addVersionDetailsToErrorMessage)(errorMessageWithContext));
68
68
  this.name = "GetConfigError";
69
69
  }
70
70
  };
@@ -89,7 +89,7 @@ async function getConfig(options) {
89
89
  () => {
90
90
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
91
91
  debug("Triggering a Rust panic...");
92
- import_chunk_TDQDOFYQ.prismaSchemaWasm.debug_panic();
92
+ import_chunk_2QAF26LC.prismaSchemaWasm.debug_panic();
93
93
  }
94
94
  const params = JSON.stringify({
95
95
  prismaSchema: options.datamodel,
@@ -97,7 +97,7 @@ async function getConfig(options) {
97
97
  ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
98
98
  env: process.env
99
99
  });
100
- const data = import_chunk_TDQDOFYQ.prismaSchemaWasm.get_config(params);
100
+ const data = import_chunk_2QAF26LC.prismaSchemaWasm.get_config(params);
101
101
  return data;
102
102
  },
103
103
  (e) => ({
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_E4GP3FX7_exports = {};
30
- __export(chunk_E4GP3FX7_exports, {
29
+ var chunk_C2HOY5Z2_exports = {};
30
+ __export(chunk_C2HOY5Z2_exports, {
31
31
  checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
32
32
  checkUnsupportedSchemaEngineWasm: () => checkUnsupportedSchemaEngineWasm,
33
33
  forbiddenCmdFlagWithSchemaEngineWasm: () => forbiddenCmdFlagWithSchemaEngineWasm,
@@ -36,29 +36,31 @@ __export(chunk_E4GP3FX7_exports, {
36
36
  getBinaryTargetForCurrentPlatform: () => import_get_platform2.getBinaryTargetForCurrentPlatform,
37
37
  getGenerator: () => getGenerator,
38
38
  getGenerators: () => getGenerators,
39
+ getNodeAPIName: () => import_get_platform2.getNodeAPIName,
39
40
  knownBinaryTargets: () => knownBinaryTargets,
40
41
  loadSchemaContext: () => loadSchemaContext,
41
42
  processSchemaResult: () => processSchemaResult,
42
43
  skipIndex: () => skipIndex
43
44
  });
44
- module.exports = __toCommonJS(chunk_E4GP3FX7_exports);
45
- var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
46
- var import_chunk_5MHUYAV3 = require("./chunk-5MHUYAV3.js");
45
+ module.exports = __toCommonJS(chunk_C2HOY5Z2_exports);
47
46
  var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
48
47
  var import_chunk_LRU47BGE = require("./chunk-LRU47BGE.js");
48
+ var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
49
+ var import_chunk_F2OZV76L = require("./chunk-F2OZV76L.js");
50
+ var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
49
51
  var import_chunk_GXW4NTU2 = require("./chunk-GXW4NTU2.js");
50
52
  var import_chunk_5FJ3MENK = require("./chunk-5FJ3MENK.js");
51
- var import_chunk_H6PPJ5PX = require("./chunk-H6PPJ5PX.js");
52
- var import_chunk_33K2EQQZ = require("./chunk-33K2EQQZ.js");
53
- var import_chunk_6QTN4DDB = require("./chunk-6QTN4DDB.js");
54
- var import_chunk_3WXUQZS7 = require("./chunk-3WXUQZS7.js");
53
+ var import_chunk_7QC5VORA = require("./chunk-7QC5VORA.js");
54
+ var import_chunk_AX5N26KG = require("./chunk-AX5N26KG.js");
55
+ var import_chunk_46ABODUM = require("./chunk-46ABODUM.js");
56
+ var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
55
57
  var import_chunk_CRVLHWC5 = require("./chunk-CRVLHWC5.js");
56
- var import_chunk_IKYFTE43 = require("./chunk-IKYFTE43.js");
57
- var import_chunk_L7QYUMS4 = require("./chunk-L7QYUMS4.js");
58
- var import_chunk_KUU5CPWK = require("./chunk-KUU5CPWK.js");
59
- var import_chunk_T3NMG3HB = require("./chunk-T3NMG3HB.js");
60
- var import_chunk_OKVM3CW4 = require("./chunk-OKVM3CW4.js");
61
- var import_chunk_TDQDOFYQ = require("./chunk-TDQDOFYQ.js");
58
+ var import_chunk_NGOAZIZY = require("./chunk-NGOAZIZY.js");
59
+ var import_chunk_Q64XHKHF = require("./chunk-Q64XHKHF.js");
60
+ var import_chunk_APZUC47O = require("./chunk-APZUC47O.js");
61
+ var import_chunk_OQH4MI73 = require("./chunk-OQH4MI73.js");
62
+ var import_chunk_EYVG6XQS = require("./chunk-EYVG6XQS.js");
63
+ var import_chunk_XZBDRJF3 = require("./chunk-XZBDRJF3.js");
62
64
  var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
63
65
  var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
64
66
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
@@ -66,7 +68,7 @@ var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
66
68
  var import_chunk_BPDMLM32 = require("./chunk-BPDMLM32.js");
67
69
  var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
68
70
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
69
- var import_chunk_32LLAKF4 = require("./chunk-32LLAKF4.js");
71
+ var import_chunk_BVJP43JS = require("./chunk-BVJP43JS.js");
70
72
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
71
73
  var import_path = __toESM(require("path"));
72
74
  var import_debug = __toESM(require("@prisma/debug"));
@@ -79,7 +81,7 @@ var forbiddenCmdFlagWithSchemaEngineWasm = ({ cmd, flag }) => `
79
81
  Passing the ${(0, import_chunk_PG5FDKSF.green)(`${flag}`)} flag to the ${(0, import_chunk_PG5FDKSF.green)(`prisma ${cmd}`)} command is not supported when
80
82
  defining an ${(0, import_chunk_PG5FDKSF.green)(`adapter`)} in Prisma config file (e.g., ${(0, import_chunk_PG5FDKSF.green)(`\`prisma.config.ts\``)}).
81
83
 
82
- More information about this limitation: ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/schema-engine-limitations")}
84
+ More information about this limitation: ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/schema-engine-limitations")}
83
85
  `;
84
86
  function checkUnsupportedSchemaEngineWasm({
85
87
  cmd,
@@ -100,7 +102,7 @@ var debug = (0, import_debug.default)("prisma:format");
100
102
  async function formatSchema({ schemas }, inputFormattingOptions) {
101
103
  if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
102
104
  handleFormatPanic(() => {
103
- import_chunk_TDQDOFYQ.prismaSchemaWasm.debug_panic();
105
+ import_chunk_XZBDRJF3.prismaSchemaWasm.debug_panic();
104
106
  });
105
107
  }
106
108
  const defaultFormattingOptions = {
@@ -117,10 +119,10 @@ async function formatSchema({ schemas }, inputFormattingOptions) {
117
119
  const { formattedMultipleSchemas, lintDiagnostics } = handleFormatPanic(() => {
118
120
  const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas), documentFormattingParams);
119
121
  const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
120
- const lintDiagnostics2 = (0, import_chunk_KUU5CPWK.lintSchema)({ schemas: formattedMultipleSchemas2 });
122
+ const lintDiagnostics2 = (0, import_chunk_APZUC47O.lintSchema)({ schemas: formattedMultipleSchemas2 });
121
123
  return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
122
124
  });
123
- const lintWarnings = (0, import_chunk_KUU5CPWK.getLintWarningsAsText)(lintDiagnostics);
125
+ const lintWarnings = (0, import_chunk_APZUC47O.getLintWarningsAsText)(lintDiagnostics);
124
126
  if (lintWarnings && import_chunk_ZJWZK45Z.logger_exports.should.warn()) {
125
127
  console.warn(lintWarnings);
126
128
  }
@@ -147,7 +149,7 @@ function handleFormatPanic(tryCb) {
147
149
  }
148
150
  }
149
151
  function formatWasm(schema, documentFormattingParams) {
150
- const formattedSchema = import_chunk_TDQDOFYQ.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
152
+ const formattedSchema = import_chunk_XZBDRJF3.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
151
153
  return formattedSchema;
152
154
  }
153
155
  async function loadSchemaContext({
@@ -162,13 +164,13 @@ async function loadSchemaContext({
162
164
  } = {}) {
163
165
  let schemaResult = null;
164
166
  if (allowNull) {
165
- schemaResult = await (0, import_chunk_OKVM3CW4.getSchemaWithPathOptional)(schemaPathFromArg, schemaPathFromConfig, {
167
+ schemaResult = await (0, import_chunk_EYVG6XQS.getSchemaWithPathOptional)(schemaPathFromArg, schemaPathFromConfig, {
166
168
  argumentName: schemaPathArgumentName,
167
169
  cwd
168
170
  });
169
171
  if (!schemaResult) return null;
170
172
  } else {
171
- schemaResult = await (0, import_chunk_OKVM3CW4.getSchemaWithPath)(schemaPathFromArg, schemaPathFromConfig, {
173
+ schemaResult = await (0, import_chunk_EYVG6XQS.getSchemaWithPath)(schemaPathFromArg, schemaPathFromConfig, {
172
174
  argumentName: schemaPathArgumentName,
173
175
  cwd
174
176
  });
@@ -185,9 +187,9 @@ async function processSchemaResult({
185
187
  const loadedFromPathForLogMessages = import_path.default.relative(cwd, schemaResult.schemaPath);
186
188
  const schemaRootDir = schemaResult.schemaRootDir || cwd;
187
189
  if (printLoadMessage) {
188
- (0, import_chunk_OKVM3CW4.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
190
+ (0, import_chunk_EYVG6XQS.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
189
191
  }
190
- const configFromPsl = await (0, import_chunk_IKYFTE43.getConfig)({ datamodel: schemaResult.schemas, ignoreEnvVarErrors });
192
+ const configFromPsl = await (0, import_chunk_NGOAZIZY.getConfig)({ datamodel: schemaResult.schemas, ignoreEnvVarErrors });
191
193
  const datasourceFromPsl = configFromPsl.datasources.at(0);
192
194
  const primaryDatasource = (0, import_chunk_XKZ6CBLA.z)(schemaEngineConfig).with({ engine: "classic" }, ({ datasource }) => {
193
195
  const { url, directUrl, shadowDatabaseUrl } = datasource;
@@ -220,7 +222,7 @@ function getPrimaryDatasourceDirectory(primaryDatasource) {
220
222
  }
221
223
  return null;
222
224
  }
223
- var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_32LLAKF4.require_p_map)());
225
+ var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_BVJP43JS.require_p_map)());
224
226
  var debug2 = (0, import_debug2.default)("prisma:getGenerators");
225
227
  async function getGenerators(options) {
226
228
  if (options.registry === void 0 && options.providerAliases !== void 0) {
@@ -245,6 +247,7 @@ async function getGenerators(options) {
245
247
  binaryPathsOverride,
246
248
  generatorNames = [],
247
249
  postinstall,
250
+ noEngine,
248
251
  allowNoModels = true,
249
252
  typedSql
250
253
  } = options;
@@ -253,19 +256,19 @@ async function getGenerators(options) {
253
256
  throw new Error(`no schema provided for getGenerators`);
254
257
  }
255
258
  if (!schemaContext.primaryDatasource) {
256
- throw new Error(import_chunk_H6PPJ5PX.missingDatasource);
259
+ throw new Error(import_chunk_7QC5VORA.missingDatasource);
257
260
  }
258
261
  (0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
259
262
  const previewFeatures = (0, import_chunk_CRVLHWC5.extractPreviewFeatures)(schemaContext.generators);
260
- const dmmf = await (0, import_chunk_L7QYUMS4.getDMMF)({
263
+ const dmmf = await (0, import_chunk_Q64XHKHF.getDMMF)({
261
264
  datamodel: schemaContext.schemaFiles,
262
265
  previewFeatures
263
266
  });
264
267
  if (dmmf.datamodel.models.length === 0 && !allowNoModels) {
265
268
  if (schemaContext.primaryDatasource.provider === "mongodb") {
266
- throw new Error(import_chunk_33K2EQQZ.missingModelMessageMongoDB);
269
+ throw new Error(import_chunk_AX5N26KG.missingModelMessageMongoDB);
267
270
  }
268
- throw new Error(import_chunk_33K2EQQZ.missingModelMessage);
271
+ throw new Error(import_chunk_AX5N26KG.missingModelMessage);
269
272
  }
270
273
  const generatorConfigs = filterGenerators(overrideGenerators || schemaContext.generators, generatorNames);
271
274
  await validateGenerators(generatorConfigs);
@@ -308,8 +311,8 @@ You need to define \`output\` in the generator block in the schema file.`
308
311
  fromEnvVar: null
309
312
  };
310
313
  }
311
- const datamodel = (0, import_chunk_T3NMG3HB.mergeSchemas)({ schemas: schemaContext.schemaFiles });
312
- const envPaths = (0, import_chunk_6QTN4DDB.getEnvPaths)(schemaContext.schemaPath, { cwd: generatorConfig.output.value });
314
+ const datamodel = (0, import_chunk_OQH4MI73.mergeSchemas)({ schemas: schemaContext.schemaFiles });
315
+ const envPaths = await (0, import_chunk_46ABODUM.getEnvPaths)(schemaContext.schemaPath, { cwd: generatorConfig.output.value });
313
316
  const options2 = {
314
317
  datamodel,
315
318
  datasources: schemaContext.datasources,
@@ -321,6 +324,7 @@ You need to define \`output\` in the generator block in the schema file.`
321
324
  version: version2 || import_engines.enginesVersion,
322
325
  // this version makes no sense anymore and should be ignored
323
326
  postinstall,
327
+ noEngine,
324
328
  allowNoModels,
325
329
  envPaths,
326
330
  typedSql
@@ -366,16 +370,18 @@ generator gen {
366
370
  }
367
371
  const generatorBinaryTargets = g.options?.generator?.binaryTargets;
368
372
  if (generatorBinaryTargets && generatorBinaryTargets.length > 0) {
369
- for (const binaryTarget of generatorBinaryTargets) {
370
- if (!neededVersions[neededVersion].binaryTargets.find((object) => object.value === binaryTarget.value)) {
371
- neededVersions[neededVersion].binaryTargets.push(binaryTarget);
373
+ for (const binaryTarget2 of generatorBinaryTargets) {
374
+ if (!neededVersions[neededVersion].binaryTargets.find((object) => object.value === binaryTarget2.value)) {
375
+ neededVersions[neededVersion].binaryTargets.push(binaryTarget2);
372
376
  }
373
377
  }
374
378
  }
375
379
  }
376
380
  }
381
+ const queryEngineBinaryType = (0, import_engines.getCliQueryEngineBinaryType)();
382
+ const queryEngineType = (0, import_chunk_RS2R7COT.binaryTypeToEngineType)(queryEngineBinaryType);
377
383
  debug2("neededVersions", JSON.stringify(neededVersions, null, 2));
378
- const { binaryPathsByVersion } = await (0, import_chunk_5MHUYAV3.getBinaryPathsByVersion)({
384
+ const { binaryPathsByVersion, binaryTarget } = await (0, import_chunk_F2OZV76L.getBinaryPathsByVersion)({
379
385
  neededVersions,
380
386
  // We're lazily computing the binary target here, to avoid printing the
381
387
  // `Prisma failed to detect the libssl/openssl version to use` warning
@@ -396,6 +402,17 @@ generator gen {
396
402
  const generatorBinaryPaths = (0, import_chunk_GXW4NTU2.pick)(binaryPaths ?? {}, generator.manifest.requiresEngines);
397
403
  debug2({ generatorBinaryPaths });
398
404
  generator.setBinaryPaths(generatorBinaryPaths);
405
+ if (engineVersion !== version2 && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
406
+ const customDmmf = await (0, import_chunk_Q64XHKHF.getDMMF)({
407
+ datamodel: schemaContext.schemaFiles,
408
+ previewFeatures
409
+ });
410
+ const options2 = { ...generator.options, dmmf: customDmmf };
411
+ debug2("generator.manifest.prettyName", generator.manifest.prettyName);
412
+ debug2("options", options2);
413
+ debug2("options.generator.binaryTargets", options2.generator.binaryTargets);
414
+ generator.setOptions(options2);
415
+ }
399
416
  }
400
417
  }
401
418
  return generators;
@@ -420,6 +437,17 @@ var oldToNewBinaryTargetsMapping = {
420
437
  async function validateGenerators(generators) {
421
438
  const binaryTarget = await (0, import_get_platform.getBinaryTargetForCurrentPlatform)();
422
439
  for (const generator of generators) {
440
+ if (generator.config.platforms) {
441
+ throw new Error(
442
+ `The \`platforms\` field on the generator definition is deprecated. Please rename it to \`binaryTargets\`.`
443
+ );
444
+ }
445
+ if (generator.config.pinnedBinaryTargets) {
446
+ throw new Error(
447
+ `The \`pinnedBinaryTargets\` field on the generator definition is deprecated.
448
+ Please use the PRISMA_QUERY_ENGINE_BINARY env var instead to pin the binary target.`
449
+ );
450
+ }
423
451
  if (generator.binaryTargets) {
424
452
  const binaryTargets2 = generator.binaryTargets && generator.binaryTargets.length > 0 ? generator.binaryTargets : [{ fromEnvVar: null, value: "native" }];
425
453
  const resolvedBinaryTargets = binaryTargets2.flatMap((object) => (0, import_chunk_IOIAK7V7.parseBinaryTargetsEnvValue)(object)).map((p) => p === "native" ? binaryTarget : p);
@@ -483,7 +511,7 @@ var forbiddenCmdWithDataProxyFlagMessage = (command) => `
483
511
  Using an Accelerate URL is not supported for this CLI command ${(0, import_chunk_PG5FDKSF.green)(`prisma ${command}`)} yet.
484
512
  Please use a direct connection to your database via the datasource \`directUrl\` setting.
485
513
 
486
- More information about this limitation: ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/accelerate-limitations")}
514
+ More information about this limitation: ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/accelerate-limitations")}
487
515
  `;
488
516
  function checkUnsupportedDataProxy({
489
517
  cmd,
@@ -496,7 +524,7 @@ function checkUnsupportedDataProxy({
496
524
  }
497
525
  }
498
526
  if (!schemaContext?.primaryDatasource) return;
499
- const url = (0, import_chunk_IKYFTE43.resolveUrl)((0, import_chunk_IKYFTE43.getEffectiveUrl)(schemaContext.primaryDatasource));
527
+ const url = (0, import_chunk_NGOAZIZY.resolveUrl)((0, import_chunk_NGOAZIZY.getEffectiveUrl)(schemaContext.primaryDatasource));
500
528
  if (url?.startsWith("prisma://")) {
501
529
  throw new Error(forbiddenCmdWithDataProxyFlagMessage(cmd));
502
530
  }
@@ -26,18 +26,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_IRWX4FCC_exports = {};
30
- __export(chunk_IRWX4FCC_exports, {
29
+ var chunk_D4VDA2TZ_exports = {};
30
+ __export(chunk_D4VDA2TZ_exports, {
31
31
  locateLocalCloudflareD1: () => locateLocalCloudflareD1
32
32
  });
33
- module.exports = __toCommonJS(chunk_IRWX4FCC_exports);
33
+ module.exports = __toCommonJS(chunk_D4VDA2TZ_exports);
34
34
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
35
- var import_chunk_2LOGW45F = require("./chunk-2LOGW45F.js");
35
+ var import_chunk_JOIIWB3U = require("./chunk-JOIIWB3U.js");
36
36
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
37
37
  var import_node_path = __toESM(require("node:path"));
38
38
  var import_node_process = __toESM(require("node:process"));
39
- var import_fast_glob = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_2LOGW45F.require_out)());
40
- var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_2LOGW45F.require_globby)());
39
+ var import_fast_glob = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_JOIIWB3U.require_out)());
40
+ var import_globby = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_JOIIWB3U.require_globby)());
41
41
  var defaultD1DirPath = import_node_path.default.join(".wrangler", "state", "v3", "d1", "miniflare-D1DatabaseObject");
42
42
  async function locateLocalCloudflareD1({ arg }) {
43
43
  const cwd = import_node_process.default.cwd();
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_DZYINYAA_exports = {};
20
+ __export(chunk_DZYINYAA_exports, {
21
+ handleLibraryLoadingErrors: () => handleLibraryLoadingErrors
22
+ });
23
+ module.exports = __toCommonJS(chunk_DZYINYAA_exports);
24
+ var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
25
+ var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
26
+ var import_get_platform = require("@prisma/get-platform");
27
+ function handleLibraryLoadingErrors(args) {
28
+ const error = args.e;
29
+ const systemLibraryNotFound = (library) => `Prisma cannot find the required \`${library}\` system library in your system`;
30
+ const hasLinkingProblem = error.message.includes("cannot open shared object file");
31
+ const referToSystemRequirementsDocs = `Please refer to the documentation about Prisma's system requirements: ${(0, import_get_platform.link)(
32
+ "https://pris.ly/d/system-requirements"
33
+ )}`;
34
+ const errorTitle = `Unable to require(\`${(0, import_chunk_PG5FDKSF.dim)(args.id)}\`).`;
35
+ const potentialReasonMessage = (0, import_chunk_XKZ6CBLA.z)({ message: error.message, code: error.code }).with({ code: "ENOENT" }, () => `File does not exist.`).when(
36
+ ({ message }) => hasLinkingProblem && message.includes("libz"),
37
+ () => {
38
+ return `${systemLibraryNotFound("libz")}. Please install it and try again.`;
39
+ }
40
+ ).when(
41
+ ({ message }) => hasLinkingProblem && message.includes("libgcc_s"),
42
+ () => {
43
+ return `${systemLibraryNotFound("libgcc_s")}. Please install it and try again.`;
44
+ }
45
+ ).when(
46
+ ({ message }) => hasLinkingProblem && message.includes("libssl"),
47
+ () => {
48
+ const libsslVersion = args.platformInfo.libssl ? `openssl-${args.platformInfo.libssl}` : "openssl";
49
+ return `${systemLibraryNotFound("libssl")}. Please install ${libsslVersion} and try again.`;
50
+ }
51
+ ).when(
52
+ ({ message }) => message.includes("GLIBC"),
53
+ () => {
54
+ return `Prisma has detected an incompatible version of the \`glibc\` C standard library installed in your system. This probably means your system may be too old to run Prisma. ${referToSystemRequirementsDocs}`;
55
+ }
56
+ ).when(
57
+ ({ message }) => args.platformInfo.platform === "linux" && message.includes("symbol not found"),
58
+ () => {
59
+ return `The Prisma engines are not compatible with your system ${args.platformInfo.originalDistro} on (${args.platformInfo.archFromUname}) which uses the \`${args.platformInfo.binaryTarget}\` binaryTarget by default. ${referToSystemRequirementsDocs}`;
60
+ }
61
+ ).otherwise(() => {
62
+ return `The Prisma engines do not seem to be compatible with your system. ${referToSystemRequirementsDocs}`;
63
+ });
64
+ return `${errorTitle}
65
+ ${potentialReasonMessage}
66
+
67
+ Details: ${error.message}`;
68
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var chunk_ERSH2BQA_exports = {};
20
+ __export(chunk_ERSH2BQA_exports, {
21
+ ClientEngineType: () => ClientEngineType,
22
+ getClientEngineType: () => getClientEngineType
23
+ });
24
+ module.exports = __toCommonJS(chunk_ERSH2BQA_exports);
25
+ var ClientEngineType = /* @__PURE__ */ ((ClientEngineType2) => {
26
+ ClientEngineType2["Library"] = "library";
27
+ ClientEngineType2["Binary"] = "binary";
28
+ ClientEngineType2["Client"] = "client";
29
+ return ClientEngineType2;
30
+ })(ClientEngineType || {});
31
+ function getClientEngineType(generatorConfig) {
32
+ const engineTypeFromEnvVar = getEngineTypeFromEnvVar();
33
+ if (engineTypeFromEnvVar) return engineTypeFromEnvVar;
34
+ if (generatorConfig?.config.engineType === "library") {
35
+ return "library";
36
+ } else if (generatorConfig?.config.engineType === "binary") {
37
+ return "binary";
38
+ } else if (generatorConfig?.config.engineType === "client") {
39
+ return "client";
40
+ } else {
41
+ return getDefaultEngineType();
42
+ }
43
+ }
44
+ function getEngineTypeFromEnvVar() {
45
+ const engineType = process.env.PRISMA_CLIENT_ENGINE_TYPE;
46
+ if (engineType === "library") {
47
+ return "library";
48
+ } else if (engineType === "binary") {
49
+ return "binary";
50
+ } else if (engineType === "client") {
51
+ return "client";
52
+ } else {
53
+ return void 0;
54
+ }
55
+ }
56
+ function getDefaultEngineType() {
57
+ return "library";
58
+ }
@@ -26,14 +26,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_OKVM3CW4_exports = {};
30
- __export(chunk_OKVM3CW4_exports, {
29
+ var chunk_EYVG6XQS_exports = {};
30
+ __export(chunk_EYVG6XQS_exports, {
31
+ getSchemaFromPackageJson: () => getSchemaFromPackageJson,
31
32
  getSchemaWithPath: () => getSchemaWithPath,
32
33
  getSchemaWithPathOptional: () => getSchemaWithPathOptional,
33
34
  printSchemaLoadedMessage: () => printSchemaLoadedMessage
34
35
  });
35
- module.exports = __toCommonJS(chunk_OKVM3CW4_exports);
36
+ module.exports = __toCommonJS(chunk_EYVG6XQS_exports);
36
37
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
38
+ var import_config = require("@prisma/config");
37
39
  var import_debug = require("@prisma/debug");
38
40
  var import_schema_files_loader = require("@prisma/schema-files-loader");
39
41
  var import_fs = __toESM(require("fs"));
@@ -117,6 +119,10 @@ async function getSchemaWithPathInternal(schemaPathFromArgs, schemaPathFromConfi
117
119
  if (prismaConfigResult.ok) {
118
120
  return prismaConfigResult;
119
121
  }
122
+ const pkgJsonResult = await getSchemaFromPackageJson(cwd);
123
+ if (pkgJsonResult.ok) {
124
+ return pkgJsonResult;
125
+ }
120
126
  const defaultResult = await getDefaultSchema(cwd);
121
127
  if (defaultResult.ok) {
122
128
  return defaultResult;
@@ -173,6 +179,36 @@ async function readSchemaFromPrismaConfigBasedLocation(schemaPathFromConfig) {
173
179
  }
174
180
  return schemaResult;
175
181
  }
182
+ async function getSchemaFromPackageJson(cwd) {
183
+ const prismaConfig = await (0, import_config.loadConfigFromPackageJson)(cwd);
184
+ debug("prismaConfig", prismaConfig);
185
+ if (!prismaConfig || !prismaConfig.config?.schema) {
186
+ return { ok: false, error: { kind: "PackageJsonNotConfigured" } };
187
+ }
188
+ const schemaPathFromPkgJson = prismaConfig.config.schema;
189
+ if (typeof schemaPathFromPkgJson !== "string") {
190
+ throw new Error(
191
+ `Provided schema path \`${schemaPathFromPkgJson}\` from \`${import_path.default.relative(
192
+ cwd,
193
+ prismaConfig.loadedFromFile
194
+ )}\` must be of type string`
195
+ );
196
+ }
197
+ const absoluteSchemaPath = import_path.default.isAbsolute(schemaPathFromPkgJson) ? schemaPathFromPkgJson : import_path.default.resolve(import_path.default.dirname(prismaConfig.loadedFromFile), schemaPathFromPkgJson);
198
+ const lookupResult = await readSchemaFromFileOrDirectory(absoluteSchemaPath);
199
+ if (!lookupResult.ok) {
200
+ throw new Error(
201
+ `Could not load schema from \`${import_path.default.relative(
202
+ cwd,
203
+ absoluteSchemaPath
204
+ )}\` provided by "prisma.schema" config of \`${import_path.default.relative(
205
+ cwd,
206
+ prismaConfig.loadedFromFile
207
+ )}\`: ${renderLookupError(lookupResult.error)}`
208
+ );
209
+ }
210
+ return lookupResult;
211
+ }
176
212
  async function getDefaultSchema(cwd, failures = []) {
177
213
  const lookupPaths = [import_path.default.join(cwd, "schema.prisma"), import_path.default.join(cwd, "prisma", "schema.prisma")];
178
214
  for (const path2 of lookupPaths) {
@@ -26,21 +26,21 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_5MHUYAV3_exports = {};
30
- __export(chunk_5MHUYAV3_exports, {
29
+ var chunk_F2OZV76L_exports = {};
30
+ __export(chunk_F2OZV76L_exports, {
31
31
  getBinaryPathsByVersion: () => getBinaryPathsByVersion
32
32
  });
33
- module.exports = __toCommonJS(chunk_5MHUYAV3_exports);
34
- var import_chunk_5I4ERIIY = require("./chunk-5I4ERIIY.js");
35
- var import_chunk_GJSFP4V4 = require("./chunk-GJSFP4V4.js");
33
+ module.exports = __toCommonJS(chunk_F2OZV76L_exports);
34
+ var import_chunk_RS2R7COT = require("./chunk-RS2R7COT.js");
35
+ var import_chunk_4CGPN5SR = require("./chunk-4CGPN5SR.js");
36
36
  var import_chunk_2SDPW6AX = require("./chunk-2SDPW6AX.js");
37
37
  var import_chunk_7B5PXS6N = require("./chunk-7B5PXS6N.js");
38
- var import_chunk_FF7OLLBP = require("./chunk-FF7OLLBP.js");
38
+ var import_chunk_IDINCQMN = require("./chunk-IDINCQMN.js");
39
39
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
40
40
  var import_engines = require("@prisma/engines");
41
41
  var import_fetch_engine = require("@prisma/fetch-engine");
42
42
  var import_path = __toESM2(require("path"));
43
- var import_fs_extra = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_FF7OLLBP.require_lib)());
43
+ var import_fs_extra = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_IDINCQMN.require_lib)());
44
44
  async function getBinaryPathsByVersion({
45
45
  neededVersions,
46
46
  detectBinaryTarget,
@@ -91,7 +91,7 @@ async function getBinaryPathsByVersion({
91
91
  }
92
92
  const binariesConfig = neededVersion.engines.reduce((acc, curr) => {
93
93
  if (!binaryPathsOverride?.[curr]) {
94
- acc[(0, import_chunk_GJSFP4V4.engineTypeToBinaryType)(curr)] = binaryTargetBaseDir;
94
+ acc[(0, import_chunk_4CGPN5SR.engineTypeToBinaryType)(curr)] = binaryTargetBaseDir;
95
95
  }
96
96
  return acc;
97
97
  }, /* @__PURE__ */ Object.create(null));
@@ -107,7 +107,7 @@ async function getBinaryPathsByVersion({
107
107
  skipDownload
108
108
  };
109
109
  const binaryPathsWithEngineType = await (0, import_fetch_engine.download)(downloadParams);
110
- const binaryPaths = (0, import_chunk_7B5PXS6N.mapKeys)(binaryPathsWithEngineType, import_chunk_5I4ERIIY.binaryTypeToEngineType);
110
+ const binaryPaths = (0, import_chunk_7B5PXS6N.mapKeys)(binaryPathsWithEngineType, import_chunk_RS2R7COT.binaryTypeToEngineType);
111
111
  binaryPathsByVersion[currentVersion] = binaryPaths;
112
112
  }
113
113
  if (binaryPathsOverride) {
@@ -26,13 +26,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_R3J2O23S_exports = {};
30
- __export(chunk_R3J2O23S_exports, {
29
+ var chunk_FCYHZHVW_exports = {};
30
+ __export(chunk_FCYHZHVW_exports, {
31
31
  canPrompt: () => canPrompt
32
32
  });
33
- module.exports = __toCommonJS(chunk_R3J2O23S_exports);
34
- var import_chunk_ICFLO5JW = require("./chunk-ICFLO5JW.js");
33
+ module.exports = __toCommonJS(chunk_FCYHZHVW_exports);
35
34
  var import_chunk_H4NI2RIK = require("./chunk-H4NI2RIK.js");
35
+ var import_chunk_ICFLO5JW = require("./chunk-ICFLO5JW.js");
36
36
  var import_prompts = __toESM(require("prompts"));
37
37
  var canPrompt = () => {
38
38
  const injectedCount = import_prompts.default._injected?.length;
@@ -26,17 +26,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_UMB3Y33W_exports = {};
30
- __export(chunk_UMB3Y33W_exports, {
29
+ var chunk_FP7Y7C33_exports = {};
30
+ __export(chunk_FP7Y7C33_exports, {
31
31
  MergeSchemasError: () => MergeSchemasError,
32
32
  mergeSchemas: () => mergeSchemas
33
33
  });
34
- module.exports = __toCommonJS(chunk_UMB3Y33W_exports);
34
+ module.exports = __toCommonJS(chunk_FP7Y7C33_exports);
35
35
  var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
36
36
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
37
37
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
- var import_chunk_EBJBIVXN = require("./chunk-EBJBIVXN.js");
39
- var import_chunk_ZVTQSH5K = require("./chunk-ZVTQSH5K.js");
38
+ var import_chunk_IE6Y4PMC = require("./chunk-IE6Y4PMC.js");
39
+ var import_chunk_2QAF26LC = require("./chunk-2QAF26LC.js");
40
40
  var import_chunk_5DBOS77Y = require("./chunk-5DBOS77Y.js");
41
41
  var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
42
42
  var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
@@ -59,7 +59,7 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: mergeSchemas]`;
62
- super((0, import_chunk_EBJBIVXN.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_IE6Y4PMC.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "MergeSchemasError";
64
64
  }
65
65
  };
@@ -72,7 +72,7 @@ function mergeSchemas(options) {
72
72
  const params = JSON.stringify({
73
73
  schema: options.schemas
74
74
  });
75
- return import_chunk_ZVTQSH5K.prismaSchemaWasm.merge_schemas(params);
75
+ return import_chunk_2QAF26LC.prismaSchemaWasm.merge_schemas(params);
76
76
  },
77
77
  (e) => ({
78
78
  type: "wasm-error",