@prisma/internals 6.20.0-integration-feat-prisma-7-config.1 → 6.20.0-integration-merge-release-workflows.2

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 (116) hide show
  1. package/dist/{chunk-5ZSVGCMS.js → chunk-2GUGGLPK.js} +96 -40
  2. package/dist/chunk-3FP46GUV.js +471 -0
  3. package/dist/chunk-46ABODUM.js +186 -0
  4. package/dist/{chunk-GJSFP4V4.js → chunk-4CGPN5SR.js} +9 -3
  5. package/dist/{chunk-GL7OANR6.js → chunk-4JCVHBYR.js} +5 -5
  6. package/dist/{chunk-MEOOYUIZ.js → chunk-5AI4FIZ3.js} +10 -10
  7. package/dist/{chunk-WITEP52Z.js → chunk-6K6FK4UW.js} +5 -5
  8. package/dist/chunk-6TTRTZXU.js +37 -0
  9. package/dist/{chunk-ANOE4NZ5.js → chunk-6ZGNGCXO.js} +9 -8
  10. package/dist/{chunk-SMJRM3EM.js → chunk-75BIJ5PX.js} +9 -9
  11. package/dist/{chunk-MYLPCGTT.js → chunk-7QC5VORA.js} +5 -5
  12. package/dist/{chunk-TGA7DC5A.js → chunk-AX5N26KG.js} +9 -14
  13. package/dist/{chunk-C5YUUOQW.js → chunk-BSTUWVHD.js} +12 -12
  14. package/dist/{chunk-QSVWJ2S2.js → chunk-BVJP43JS.js} +784 -13
  15. package/dist/{chunk-B2BNIZB2.js → chunk-CCLAMTCA.js} +8 -7
  16. package/dist/chunk-D4VDA2TZ.js +66 -0
  17. package/dist/chunk-DZYINYAA.js +68 -0
  18. package/dist/{chunk-VHE2A7YV.js → chunk-E4H6V3Z4.js} +11 -11
  19. package/dist/{chunk-WKOGDEF4.js → chunk-E5VGO6SU.js} +11 -11
  20. package/dist/chunk-ERSH2BQA.js +58 -0
  21. package/dist/{chunk-3ZWEK4N6.js → chunk-EWDCQQHP.js} +5 -5
  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-VITPVRRI.js → chunk-FHZ5QJLR.js} +5 -5
  25. package/dist/{chunk-HNRMSI3R.js → chunk-FYZCPL2Z.js} +8 -5
  26. package/dist/{chunk-22HIO2UL.js → chunk-GMW36QQF.js} +7 -7
  27. package/dist/{chunk-BUQN4WLU.js → chunk-HFFWZTVM.js} +9 -7
  28. package/dist/{chunk-CGLLQXZE.js → chunk-HHG4DGHC.js} +12 -11
  29. package/dist/{chunk-5W3BSMTH.js → chunk-HO5HRHFZ.js} +6 -3
  30. package/dist/{chunk-3WXUQZS7.js → chunk-I6WLABB2.js} +5 -14
  31. package/dist/{chunk-FF7OLLBP.js → chunk-IDINCQMN.js} +784 -12
  32. package/dist/{chunk-QOZ7USPD.js → chunk-JOIIWB3U.js} +159 -193
  33. package/dist/{chunk-QJDVKII7.js → chunk-JTS4UPHJ.js} +5 -5
  34. package/dist/{chunk-RVTU2FIM.js → chunk-LV27YCGC.js} +11 -11
  35. package/dist/{chunk-KNNTV7IN.js → chunk-NVNI2SRU.js} +213 -687
  36. package/dist/{chunk-2Q43C56O.js → chunk-O2AHE2LQ.js} +5 -5
  37. package/dist/{chunk-H5STSTVK.js → chunk-OAT7ZJED.js} +20 -7
  38. package/dist/{chunk-DOY5PWV6.js → chunk-PXYIFYEC.js} +96 -40
  39. package/dist/chunk-PZMRR772.js +41 -0
  40. package/dist/{chunk-VFZCLI5X.js → chunk-QJ3QPUM5.js} +5 -5
  41. package/dist/{chunk-5I4ERIIY.js → chunk-RS2R7COT.js} +9 -3
  42. package/dist/{chunk-24ZPBDBI.js → chunk-S4PA7OZ7.js} +11 -11
  43. package/dist/{chunk-LA5QBRTU.js → chunk-SOKSKSEX.js} +20 -14
  44. package/dist/chunk-T2PM5TKT.js +55 -0
  45. package/dist/{chunk-QGQTFZOZ.js → chunk-T2UCYUSA.js} +20 -14
  46. package/dist/{chunk-5SJXW6MS.js → chunk-TBR6SNKL.js} +5 -5
  47. package/dist/{chunk-MLFKBBDL.js → chunk-TQFONRJP.js} +5 -5
  48. package/dist/{chunk-WSZXPLJQ.js → chunk-TZJROXB3.js} +4 -4
  49. package/dist/{chunk-WJKBKH3Y.js → chunk-UHI6VYFX.js} +5 -5
  50. package/dist/{chunk-BM3JIFQT.js → chunk-UQUWZJVN.js} +7 -7
  51. package/dist/{chunk-ARC7TW3L.js → chunk-WFNB7VRA.js} +14 -4
  52. package/dist/{chunk-COA7HD3T.js → chunk-WYQJ4JWO.js} +12 -12
  53. package/dist/{chunk-73HXEN2A.js → chunk-ZI7MNI3W.js} +5 -5
  54. package/dist/cli/checkUnsupportedDataProxy.js +60 -53
  55. package/dist/cli/checkUnsupportedSchemaEngineWasm.d.ts +22 -0
  56. package/dist/cli/checkUnsupportedSchemaEngineWasm.js +135 -0
  57. package/dist/cli/getGeneratorSuccessMessage.js +3 -2
  58. package/dist/cli/getSchema.d.ts +15 -1
  59. package/dist/cli/getSchema.js +5 -4
  60. package/dist/cli/hashes.js +4 -4
  61. package/dist/cli/schemaContext.d.ts +11 -2
  62. package/dist/cli/schemaContext.js +60 -53
  63. package/dist/client/getClientEngineType.d.ts +7 -0
  64. package/dist/client/getClientEngineType.js +26 -0
  65. package/dist/dotenvExpand.d.ts +35 -0
  66. package/dist/dotenvExpand.js +25 -0
  67. package/dist/engine-commands/errorHelpers.js +4 -4
  68. package/dist/engine-commands/formatSchema.js +59 -52
  69. package/dist/engine-commands/getConfig.d.ts +1 -0
  70. package/dist/engine-commands/getConfig.js +13 -13
  71. package/dist/engine-commands/getDmmf.js +10 -10
  72. package/dist/engine-commands/getEngineVersion.js +9 -6
  73. package/dist/engine-commands/getEnginesInfo.d.ts +1 -0
  74. package/dist/engine-commands/getEnginesInfo.js +9 -7
  75. package/dist/engine-commands/index.js +71 -64
  76. package/dist/engine-commands/lintSchema.js +9 -9
  77. package/dist/engine-commands/mergeSchemas.js +10 -10
  78. package/dist/engine-commands/queryEngineCommons.js +6 -6
  79. package/dist/engine-commands/validate.js +10 -10
  80. package/dist/errorReporting.js +6 -6
  81. package/dist/get-generators/getGenerators.d.ts +1 -0
  82. package/dist/get-generators/getGenerators.js +62 -55
  83. package/dist/get-generators/utils/binaryTypeToEngineType.js +2 -2
  84. package/dist/get-generators/utils/engineTypeToBinaryType.js +2 -2
  85. package/dist/get-generators/utils/getBinaryPathsByVersion.js +5 -6
  86. package/dist/getPackedPackage.js +3 -4
  87. package/dist/index.d.ts +10 -1
  88. package/dist/index.js +112 -95
  89. package/dist/{multipart-parser-UV3WZSWW.js → multipart-parser-3AFJFP6K.js} +6 -6
  90. package/dist/resolveBinary.js +7 -8
  91. package/dist/schemaEngineCommands.js +8 -9
  92. package/dist/sendPanic.js +4 -4
  93. package/dist/utils/cloudflareD1.d.ts +5 -0
  94. package/dist/utils/cloudflareD1.js +27 -0
  95. package/dist/utils/drawBox.js +2 -2
  96. package/dist/utils/fs-functional.js +10 -10
  97. package/dist/utils/fs-utils.js +8 -8
  98. package/dist/utils/getEnvPaths.d.ts +14 -0
  99. package/dist/utils/getEnvPaths.js +29 -0
  100. package/dist/utils/getVersionFromPackageJson.js +3 -3
  101. package/dist/utils/handleEngineLoadingErrors.d.ts +8 -0
  102. package/dist/utils/handleEngineLoadingErrors.js +27 -0
  103. package/dist/utils/handlePanic.js +6 -6
  104. package/dist/utils/link.js +2 -2
  105. package/dist/utils/load.d.ts +6 -0
  106. package/dist/utils/load.js +28 -0
  107. package/dist/utils/loadEnvFile.d.ts +10 -0
  108. package/dist/utils/loadEnvFile.js +30 -0
  109. package/dist/utils/missingDatasource.js +3 -3
  110. package/dist/utils/missingGeneratorMessage.js +5 -5
  111. package/dist/utils/serializeQueryEngineName.js +2 -2
  112. package/dist/utils/tryLoadEnvs.d.ts +25 -0
  113. package/dist/utils/tryLoadEnvs.js +30 -0
  114. package/dist/wasm.js +5 -5
  115. package/package.json +16 -15
  116. package/dist/chunk-DYV47NUW.js +0 -796
@@ -26,16 +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_GL7OANR6_exports = {};
30
- __export(chunk_GL7OANR6_exports, {
29
+ var chunk_4JCVHBYR_exports = {};
30
+ __export(chunk_4JCVHBYR_exports, {
31
31
  getCLIPathHash: () => getCLIPathHash,
32
32
  getProjectHash: () => getProjectHash
33
33
  });
34
- module.exports = __toCommonJS(chunk_GL7OANR6_exports);
35
- var import_chunk_OKVM3CW4 = require("./chunk-OKVM3CW4.js");
34
+ module.exports = __toCommonJS(chunk_4JCVHBYR_exports);
35
+ var import_chunk_EYVG6XQS = require("./chunk-EYVG6XQS.js");
36
36
  var import_crypto = __toESM(require("crypto"));
37
37
  async function getProjectHash(schemaPathFromArgs, schemaPathFromConfig) {
38
- const projectPath = (await (0, import_chunk_OKVM3CW4.getSchemaWithPath)(schemaPathFromArgs, schemaPathFromConfig))?.schemaPath ?? process.cwd();
38
+ const projectPath = (await (0, import_chunk_EYVG6XQS.getSchemaWithPath)(schemaPathFromArgs, schemaPathFromConfig))?.schemaPath ?? process.cwd();
39
39
  return import_crypto.default.createHash("sha256").update(projectPath).digest("hex").substring(0, 8);
40
40
  }
41
41
  function getCLIPathHash() {
@@ -26,15 +26,15 @@ 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_MEOOYUIZ_exports = {};
30
- __export(chunk_MEOOYUIZ_exports, {
29
+ var chunk_5AI4FIZ3_exports = {};
30
+ __export(chunk_5AI4FIZ3_exports, {
31
31
  ErrorKind: () => ErrorKind,
32
32
  createErrorReport: () => createErrorReport,
33
33
  makeErrorReportCompleted: () => makeErrorReportCompleted,
34
34
  uploadZip: () => uploadZip
35
35
  });
36
- module.exports = __toCommonJS(chunk_MEOOYUIZ_exports);
37
- var import_chunk_KNNTV7IN = require("./chunk-KNNTV7IN.js");
36
+ module.exports = __toCommonJS(chunk_5AI4FIZ3_exports);
37
+ var import_chunk_NVNI2SRU = require("./chunk-NVNI2SRU.js");
38
38
  var import_fetch_engine = require("@prisma/fetch-engine");
39
39
  var import_node_http = __toESM(require("node:http"));
40
40
  var import_node_https = __toESM(require("node:https"));
@@ -151,8 +151,8 @@ var Body = class {
151
151
  } else if (ArrayBuffer.isView(body)) {
152
152
  body = import_node_buffer2.Buffer.from(body.buffer, body.byteOffset, body.byteLength);
153
153
  } else if (body instanceof import_node_stream2.default) {
154
- } else if (body instanceof import_chunk_KNNTV7IN.FormData) {
155
- body = (0, import_chunk_KNNTV7IN.formDataToBlob)(body);
154
+ } else if (body instanceof import_chunk_NVNI2SRU.FormData) {
155
+ body = (0, import_chunk_NVNI2SRU.formDataToBlob)(body);
156
156
  boundary = body.type.split("=")[1];
157
157
  } else {
158
158
  body = import_node_buffer2.Buffer.from(String(body));
@@ -196,14 +196,14 @@ var Body = class {
196
196
  async formData() {
197
197
  const ct = this.headers.get("content-type");
198
198
  if (ct.startsWith("application/x-www-form-urlencoded")) {
199
- const formData = new import_chunk_KNNTV7IN.FormData();
199
+ const formData = new import_chunk_NVNI2SRU.FormData();
200
200
  const parameters = new URLSearchParams(await this.text());
201
201
  for (const [name, value] of parameters) {
202
202
  formData.append(name, value);
203
203
  }
204
204
  return formData;
205
205
  }
206
- const { toFormData } = await import("./multipart-parser-UV3WZSWW.js");
206
+ const { toFormData } = await import("./multipart-parser-3AFJFP6K.js");
207
207
  return toFormData(this.body, ct);
208
208
  }
209
209
  /**
@@ -214,7 +214,7 @@ var Body = class {
214
214
  async blob() {
215
215
  const ct = this.headers && this.headers.get("content-type") || this[INTERNALS].body && this[INTERNALS].body.type || "";
216
216
  const buf = await this.arrayBuffer();
217
- return new import_chunk_KNNTV7IN.fetch_blob_default([buf], {
217
+ return new import_chunk_NVNI2SRU.fetch_blob_default([buf], {
218
218
  type: ct
219
219
  });
220
220
  }
@@ -342,7 +342,7 @@ var extractContentType = (body, request2) => {
342
342
  if (import_node_buffer2.Buffer.isBuffer(body) || import_node_util.types.isAnyArrayBuffer(body) || ArrayBuffer.isView(body)) {
343
343
  return null;
344
344
  }
345
- if (body instanceof import_chunk_KNNTV7IN.FormData) {
345
+ if (body instanceof import_chunk_NVNI2SRU.FormData) {
346
346
  return `multipart/form-data; boundary=${request2[INTERNALS].boundary}`;
347
347
  }
348
348
  if (body && typeof body.getBoundary === "function") {
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_WITEP52Z_exports = {};
20
- __export(chunk_WITEP52Z_exports, {
19
+ var chunk_6K6FK4UW_exports = {};
20
+ __export(chunk_6K6FK4UW_exports, {
21
21
  version: () => version
22
22
  });
23
- module.exports = __toCommonJS(chunk_WITEP52Z_exports);
24
- var import_chunk_ANOE4NZ5 = require("./chunk-ANOE4NZ5.js");
25
- var packageJson = (0, import_chunk_ANOE4NZ5.require_package)();
23
+ module.exports = __toCommonJS(chunk_6K6FK4UW_exports);
24
+ var import_chunk_6ZGNGCXO = require("./chunk-6ZGNGCXO.js");
25
+ var packageJson = (0, import_chunk_6ZGNGCXO.require_package)();
26
26
  var version = packageJson.version;
@@ -0,0 +1,37 @@
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_6TTRTZXU_exports = {};
20
+ __export(chunk_6TTRTZXU_exports, {
21
+ loadLibrary: () => loadLibrary
22
+ });
23
+ module.exports = __toCommonJS(chunk_6TTRTZXU_exports);
24
+ var import_chunk_DZYINYAA = require("./chunk-DZYINYAA.js");
25
+ var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
26
+ function loadLibrary(id, platformInfo) {
27
+ try {
28
+ return (0, import_chunk_4VNS5WPM.__require)(id);
29
+ } catch (e) {
30
+ const errorMessage = (0, import_chunk_DZYINYAA.handleLibraryLoadingErrors)({
31
+ e,
32
+ platformInfo,
33
+ id
34
+ });
35
+ throw new Error(errorMessage);
36
+ }
37
+ }
@@ -16,17 +16,17 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_ANOE4NZ5_exports = {};
20
- __export(chunk_ANOE4NZ5_exports, {
19
+ var chunk_6ZGNGCXO_exports = {};
20
+ __export(chunk_6ZGNGCXO_exports, {
21
21
  require_package: () => require_package
22
22
  });
23
- module.exports = __toCommonJS(chunk_ANOE4NZ5_exports);
23
+ module.exports = __toCommonJS(chunk_6ZGNGCXO_exports);
24
24
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
25
25
  var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
26
26
  "package.json"(exports, module2) {
27
27
  module2.exports = {
28
28
  name: "@prisma/internals",
29
- version: "6.20.0-integration-feat-prisma-7-config.1",
29
+ version: "6.20.0-integration-merge-release-workflows.2",
30
30
  description: "This package is intended for Prisma's internal use",
31
31
  main: "dist/index.js",
32
32
  types: "dist/index.d.ts",
@@ -59,11 +59,12 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
59
59
  "@swc/jest": "0.2.37",
60
60
  "@types/babel__helper-validator-identifier": "7.15.2",
61
61
  "@types/jest": "29.5.14",
62
- "@types/node": "~20.19.24",
62
+ "@types/node": "18.19.76",
63
63
  "@types/resolve": "1.20.6",
64
64
  archiver: "6.0.2",
65
65
  "checkpoint-client": "1.1.33",
66
66
  "cli-truncate": "4.0.0",
67
+ dotenv: "16.5.0",
67
68
  empathic: "2.0.0",
68
69
  "escape-string-regexp": "5.0.0",
69
70
  execa: "8.0.1",
@@ -108,14 +109,14 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
108
109
  "@prisma/generator": "workspace:*",
109
110
  "@prisma/generator-helper": "workspace:*",
110
111
  "@prisma/get-platform": "workspace:*",
111
- "@prisma/prisma-schema-wasm": "6.19.0-33.next-fca7ed8aa5fe6347594ad793adb59b37f021379a",
112
- "@prisma/schema-engine-wasm": "6.19.0-21.next-3ab778d6c5a8df0d39fd88ffd67461d3395af732",
112
+ "@prisma/prisma-schema-wasm": "6.19.0-26.2ba551f319ab1df4bc874a89965d8b3641056773",
113
+ "@prisma/schema-engine-wasm": "6.19.0-26.2ba551f319ab1df4bc874a89965d8b3641056773",
113
114
  "@prisma/schema-files-loader": "workspace:*",
114
115
  arg: "5.0.2",
115
116
  prompts: "2.4.2"
116
117
  },
117
118
  peerDependencies: {
118
- typescript: ">=5.4.0"
119
+ typescript: ">=5.1.0"
119
120
  },
120
121
  peerDependenciesMeta: {
121
122
  typescript: {
@@ -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_SMJRM3EM_exports = {};
30
- __export(chunk_SMJRM3EM_exports, {
29
+ var chunk_75BIJ5PX_exports = {};
30
+ __export(chunk_75BIJ5PX_exports, {
31
31
  createDirIfNotExists: () => createDirIfNotExists2,
32
32
  fs_functional_exports: () => fs_functional_exports,
33
33
  getFilesInDir: () => getFilesInDir2,
@@ -37,8 +37,8 @@ __export(chunk_SMJRM3EM_exports, {
37
37
  removeFile: () => removeFile,
38
38
  writeFile: () => writeFile2
39
39
  });
40
- module.exports = __toCommonJS(chunk_SMJRM3EM_exports);
41
- var import_chunk_MLFKBBDL = require("./chunk-MLFKBBDL.js");
40
+ module.exports = __toCommonJS(chunk_75BIJ5PX_exports);
41
+ var import_chunk_TQFONRJP = require("./chunk-TQFONRJP.js");
42
42
  var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
43
43
  var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
44
44
  var import_promises = __toESM(require("fs/promises"));
@@ -3981,13 +3981,13 @@ var fs_functional_exports = {};
3981
3981
  });
3982
3982
  var import_function = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_R6QH57HZ.require_function)());
3983
3983
  var TE = (0, import_chunk_4VNS5WPM.__toESM)(require_TaskEither());
3984
- var createDirIfNotExists2 = (dir) => TE.tryCatch(() => (0, import_chunk_MLFKBBDL.createDirIfNotExists)(dir), createTaggedSystemError("fs-create-dir", { dir }));
3985
- var writeFile2 = (params) => TE.tryCatch(() => (0, import_chunk_MLFKBBDL.writeFile)(params), createTaggedSystemError("fs-write-file", params));
3986
- var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0, import_chunk_MLFKBBDL.removeEmptyDirs)(dir), createTaggedSystemError("fs-remove-empty-dirs", { dir }));
3984
+ var createDirIfNotExists2 = (dir) => TE.tryCatch(() => (0, import_chunk_TQFONRJP.createDirIfNotExists)(dir), createTaggedSystemError("fs-create-dir", { dir }));
3985
+ var writeFile2 = (params) => TE.tryCatch(() => (0, import_chunk_TQFONRJP.writeFile)(params), createTaggedSystemError("fs-write-file", params));
3986
+ var removeEmptyDirs2 = (dir) => TE.tryCatch(() => (0, import_chunk_TQFONRJP.removeEmptyDirs)(dir), createTaggedSystemError("fs-remove-empty-dirs", { dir }));
3987
3987
  var removeDir = (dir) => (0, import_function.pipe)(TE.tryCatch(() => import_promises.default.rm(dir, { recursive: true }), createTaggedSystemError("fs-remove-dir", { dir })));
3988
3988
  var removeFile = (filePath) => (0, import_function.pipe)(TE.tryCatch(() => import_promises.default.unlink(filePath), createTaggedSystemError("fs-remove-file", { filePath })));
3989
- var getNestedFoldersInDir2 = (dir) => () => (0, import_chunk_MLFKBBDL.getNestedFoldersInDir)(dir);
3990
- var getFilesInDir2 = (dir, pattern = "**") => () => (0, import_chunk_MLFKBBDL.getFilesInDir)(dir, pattern);
3989
+ var getNestedFoldersInDir2 = (dir) => () => (0, import_chunk_TQFONRJP.getNestedFoldersInDir)(dir);
3990
+ var getFilesInDir2 = (dir, pattern = "**") => () => (0, import_chunk_TQFONRJP.getFilesInDir)(dir, pattern);
3991
3991
  function createTaggedSystemError(type, meta) {
3992
3992
  return (e) => ({
3993
3993
  type,
@@ -16,12 +16,12 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_MYLPCGTT_exports = {};
20
- __export(chunk_MYLPCGTT_exports, {
19
+ var chunk_7QC5VORA_exports = {};
20
+ __export(chunk_7QC5VORA_exports, {
21
21
  missingDatasource: () => missingDatasource
22
22
  });
23
- module.exports = __toCommonJS(chunk_MYLPCGTT_exports);
24
- var import_chunk_3WXUQZS7 = require("./chunk-3WXUQZS7.js");
23
+ module.exports = __toCommonJS(chunk_7QC5VORA_exports);
24
+ var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
25
25
  var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
26
26
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
27
27
  var missingDatasource = `
@@ -36,5 +36,5 @@ ${(0, import_chunk_PG5FDKSF.bold)(
36
36
  )}
37
37
 
38
38
  More information in our documentation:
39
- ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/prisma-schema")}
39
+ ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
40
40
  `;
@@ -16,32 +16,27 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_TGA7DC5A_exports = {};
20
- __export(chunk_TGA7DC5A_exports, {
19
+ var chunk_AX5N26KG_exports = {};
20
+ __export(chunk_AX5N26KG_exports, {
21
21
  missingGeneratorMessage: () => missingGeneratorMessage,
22
22
  missingModelMessage: () => missingModelMessage,
23
23
  missingModelMessageMongoDB: () => missingModelMessageMongoDB
24
24
  });
25
- module.exports = __toCommonJS(chunk_TGA7DC5A_exports);
26
- var import_chunk_3WXUQZS7 = require("./chunk-3WXUQZS7.js");
25
+ module.exports = __toCommonJS(chunk_AX5N26KG_exports);
26
+ var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
27
27
  var import_chunk_TQCLUNM2 = require("./chunk-TQCLUNM2.js");
28
28
  var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
29
29
  var missingGeneratorMessage = `
30
30
  ${(0, import_chunk_PG5FDKSF.blue)("info")} You don't have any generators defined in your ${(0, import_chunk_PG5FDKSF.bold)(
31
31
  "schema.prisma"
32
32
  )}, so nothing will be generated.
33
- Add the Prisma Client generator like this:
33
+ You can define them like this:
34
34
 
35
35
  ${(0, import_chunk_PG5FDKSF.bold)(
36
36
  (0, import_chunk_TQCLUNM2.highlightDatamodel)(`generator client {
37
- provider = "prisma-client"
38
- output = "../src/generated/prisma"
37
+ provider = "prisma-client-js"
39
38
  }`)
40
- )}
41
-
42
- More information in our documentation:
43
- ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/prisma-schema")}
44
- `;
39
+ )}`;
45
40
  var missingModelMessage = `
46
41
  You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your ${(0, import_chunk_PG5FDKSF.bold)(
47
42
  "schema.prisma"
@@ -57,7 +52,7 @@ ${(0, import_chunk_PG5FDKSF.bold)(
57
52
  )}
58
53
 
59
54
  More information in our documentation:
60
- ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/prisma-schema")}
55
+ ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
61
56
  `;
62
57
  var missingModelMessageMongoDB = `
63
58
  You don't have any ${(0, import_chunk_PG5FDKSF.bold)("models")} defined in your ${(0, import_chunk_PG5FDKSF.bold)(
@@ -74,5 +69,5 @@ ${(0, import_chunk_PG5FDKSF.bold)(
74
69
  )}
75
70
 
76
71
  More information in our documentation:
77
- ${(0, import_chunk_3WXUQZS7.link)("https://pris.ly/d/prisma-schema")}
72
+ ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/prisma-schema")}
78
73
  `;
@@ -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_C5YUUOQW_exports = {};
30
- __export(chunk_C5YUUOQW_exports, {
29
+ var chunk_BSTUWVHD_exports = {};
30
+ __export(chunk_BSTUWVHD_exports, {
31
31
  ValidateError: () => ValidateError,
32
32
  validate: () => validate
33
33
  });
34
- module.exports = __toCommonJS(chunk_C5YUUOQW_exports);
35
- var import_chunk_WSZXPLJQ = require("./chunk-WSZXPLJQ.js");
36
- var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
34
+ module.exports = __toCommonJS(chunk_BSTUWVHD_exports);
35
+ var import_chunk_TZJROXB3 = require("./chunk-TZJROXB3.js");
37
36
  var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
38
- var import_chunk_2Q43C56O = require("./chunk-2Q43C56O.js");
39
- var import_chunk_3ZWEK4N6 = require("./chunk-3ZWEK4N6.js");
37
+ var import_chunk_R6QH57HZ = require("./chunk-R6QH57HZ.js");
38
+ var import_chunk_O2AHE2LQ = require("./chunk-O2AHE2LQ.js");
39
+ var import_chunk_EWDCQQHP = require("./chunk-EWDCQQHP.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,25 +59,25 @@ ${detailsHeader} ${message}`;
59
59
  }).exhaustive();
60
60
  const errorMessageWithContext = `${constructedErrorMessage}
61
61
  [Context: validate]`;
62
- super((0, import_chunk_2Q43C56O.addVersionDetailsToErrorMessage)(errorMessageWithContext));
62
+ super((0, import_chunk_O2AHE2LQ.addVersionDetailsToErrorMessage)(errorMessageWithContext));
63
63
  this.name = "ValidateError";
64
64
  }
65
65
  };
66
66
  function validate(options) {
67
- const debugErrorType = (0, import_chunk_WSZXPLJQ.createDebugErrorType)(debug, "validateWasm");
67
+ const debugErrorType = (0, import_chunk_TZJROXB3.createDebugErrorType)(debug, "validateWasm");
68
68
  debug(`Using validate Wasm`);
69
69
  const validateEither = (0, import_function.pipe)(
70
70
  (0, import_chunk_5DBOS77Y.tryCatch)(
71
71
  () => {
72
72
  if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
73
73
  debug("Triggering a Rust panic...");
74
- import_chunk_3ZWEK4N6.prismaSchemaWasm.debug_panic();
74
+ import_chunk_EWDCQQHP.prismaSchemaWasm.debug_panic();
75
75
  }
76
76
  const params = JSON.stringify({
77
77
  prismaSchema: options.schemas,
78
78
  noColor: Boolean(process.env.NO_COLOR)
79
79
  });
80
- import_chunk_3ZWEK4N6.prismaSchemaWasm.validate(params);
80
+ import_chunk_EWDCQQHP.prismaSchemaWasm.validate(params);
81
81
  },
82
82
  (e) => ({
83
83
  type: "wasm-error",
@@ -109,7 +109,7 @@ function validate(options) {
109
109
  return panic;
110
110
  }
111
111
  const errorOutput = e.error.message;
112
- return new ValidateError((0, import_chunk_WSZXPLJQ.parseQueryEngineError)({ errorOutput, reason: e.reason }));
112
+ return new ValidateError((0, import_chunk_TZJROXB3.parseQueryEngineError)({ errorOutput, reason: e.reason }));
113
113
  }).exhaustive();
114
114
  throw error;
115
115
  }