@prisma/client-generator-js 6.19.0-integration-next.22 → 6.20.0-dev.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.
package/dist/index.js CHANGED
@@ -111,14 +111,14 @@ var require_polyfills = __commonJS({
111
111
  fs3.fstatSync = statFixSync(fs3.fstatSync);
112
112
  fs3.lstatSync = statFixSync(fs3.lstatSync);
113
113
  if (fs3.chmod && !fs3.lchmod) {
114
- fs3.lchmod = function(path8, mode, cb) {
114
+ fs3.lchmod = function(path9, mode, cb) {
115
115
  if (cb) process.nextTick(cb);
116
116
  };
117
117
  fs3.lchmodSync = function() {
118
118
  };
119
119
  }
120
120
  if (fs3.chown && !fs3.lchown) {
121
- fs3.lchown = function(path8, uid, gid, cb) {
121
+ fs3.lchown = function(path9, uid, gid, cb) {
122
122
  if (cb) process.nextTick(cb);
123
123
  };
124
124
  fs3.lchownSync = function() {
@@ -185,9 +185,9 @@ var require_polyfills = __commonJS({
185
185
  };
186
186
  }(fs3.readSync);
187
187
  function patchLchmod(fs4) {
188
- fs4.lchmod = function(path8, mode, callback) {
188
+ fs4.lchmod = function(path9, mode, callback) {
189
189
  fs4.open(
190
- path8,
190
+ path9,
191
191
  constants3.O_WRONLY | constants3.O_SYMLINK,
192
192
  mode,
193
193
  function(err, fd) {
@@ -203,8 +203,8 @@ var require_polyfills = __commonJS({
203
203
  }
204
204
  );
205
205
  };
206
- fs4.lchmodSync = function(path8, mode) {
207
- var fd = fs4.openSync(path8, constants3.O_WRONLY | constants3.O_SYMLINK, mode);
206
+ fs4.lchmodSync = function(path9, mode) {
207
+ var fd = fs4.openSync(path9, constants3.O_WRONLY | constants3.O_SYMLINK, mode);
208
208
  var threw = true;
209
209
  var ret;
210
210
  try {
@@ -225,8 +225,8 @@ var require_polyfills = __commonJS({
225
225
  }
226
226
  function patchLutimes(fs4) {
227
227
  if (constants3.hasOwnProperty("O_SYMLINK") && fs4.futimes) {
228
- fs4.lutimes = function(path8, at, mt, cb) {
229
- fs4.open(path8, constants3.O_SYMLINK, function(er, fd) {
228
+ fs4.lutimes = function(path9, at, mt, cb) {
229
+ fs4.open(path9, constants3.O_SYMLINK, function(er, fd) {
230
230
  if (er) {
231
231
  if (cb) cb(er);
232
232
  return;
@@ -238,8 +238,8 @@ var require_polyfills = __commonJS({
238
238
  });
239
239
  });
240
240
  };
241
- fs4.lutimesSync = function(path8, at, mt) {
242
- var fd = fs4.openSync(path8, constants3.O_SYMLINK);
241
+ fs4.lutimesSync = function(path9, at, mt) {
242
+ var fd = fs4.openSync(path9, constants3.O_SYMLINK);
243
243
  var ret;
244
244
  var threw = true;
245
245
  try {
@@ -358,11 +358,11 @@ var require_legacy_streams = __commonJS({
358
358
  ReadStream,
359
359
  WriteStream
360
360
  };
361
- function ReadStream(path8, options) {
362
- if (!(this instanceof ReadStream)) return new ReadStream(path8, options);
361
+ function ReadStream(path9, options) {
362
+ if (!(this instanceof ReadStream)) return new ReadStream(path9, options);
363
363
  Stream.call(this);
364
364
  var self = this;
365
- this.path = path8;
365
+ this.path = path9;
366
366
  this.fd = null;
367
367
  this.readable = true;
368
368
  this.paused = false;
@@ -407,10 +407,10 @@ var require_legacy_streams = __commonJS({
407
407
  self._read();
408
408
  });
409
409
  }
410
- function WriteStream(path8, options) {
411
- if (!(this instanceof WriteStream)) return new WriteStream(path8, options);
410
+ function WriteStream(path9, options) {
411
+ if (!(this instanceof WriteStream)) return new WriteStream(path9, options);
412
412
  Stream.call(this);
413
- this.path = path8;
413
+ this.path = path9;
414
414
  this.fd = null;
415
415
  this.writable = true;
416
416
  this.flags = "w";
@@ -494,11 +494,11 @@ var require_graceful_fs = __commonJS({
494
494
  }
495
495
  });
496
496
  }
497
- var debug2 = noop2;
497
+ var debug4 = noop2;
498
498
  if (util.debuglog)
499
- debug2 = util.debuglog("gfs4");
499
+ debug4 = util.debuglog("gfs4");
500
500
  else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
501
- debug2 = function() {
501
+ debug4 = function() {
502
502
  var m = util.format.apply(util, arguments);
503
503
  m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
504
504
  console.error(m);
@@ -533,7 +533,7 @@ var require_graceful_fs = __commonJS({
533
533
  }(fs3.closeSync);
534
534
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
535
535
  process.on("exit", function() {
536
- debug2(fs3[gracefulQueue]);
536
+ debug4(fs3[gracefulQueue]);
537
537
  require("assert").equal(fs3[gracefulQueue].length, 0);
538
538
  });
539
539
  }
@@ -554,14 +554,14 @@ var require_graceful_fs = __commonJS({
554
554
  fs4.createWriteStream = createWriteStream2;
555
555
  var fs$readFile = fs4.readFile;
556
556
  fs4.readFile = readFile;
557
- function readFile(path8, options, cb) {
557
+ function readFile(path9, options, cb) {
558
558
  if (typeof options === "function")
559
559
  cb = options, options = null;
560
- return go$readFile(path8, options, cb);
561
- function go$readFile(path9, options2, cb2, startTime) {
562
- return fs$readFile(path9, options2, function(err) {
560
+ return go$readFile(path9, options, cb);
561
+ function go$readFile(path10, options2, cb2, startTime) {
562
+ return fs$readFile(path10, options2, function(err) {
563
563
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
564
- enqueue([go$readFile, [path9, options2, cb2], err, startTime || Date.now(), Date.now()]);
564
+ enqueue([go$readFile, [path10, options2, cb2], err, startTime || Date.now(), Date.now()]);
565
565
  else {
566
566
  if (typeof cb2 === "function")
567
567
  cb2.apply(this, arguments);
@@ -571,14 +571,14 @@ var require_graceful_fs = __commonJS({
571
571
  }
572
572
  var fs$writeFile = fs4.writeFile;
573
573
  fs4.writeFile = writeFile;
574
- function writeFile(path8, data, options, cb) {
574
+ function writeFile(path9, data, options, cb) {
575
575
  if (typeof options === "function")
576
576
  cb = options, options = null;
577
- return go$writeFile(path8, data, options, cb);
578
- function go$writeFile(path9, data2, options2, cb2, startTime) {
579
- return fs$writeFile(path9, data2, options2, function(err) {
577
+ return go$writeFile(path9, data, options, cb);
578
+ function go$writeFile(path10, data2, options2, cb2, startTime) {
579
+ return fs$writeFile(path10, data2, options2, function(err) {
580
580
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
581
- enqueue([go$writeFile, [path9, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
581
+ enqueue([go$writeFile, [path10, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
582
582
  else {
583
583
  if (typeof cb2 === "function")
584
584
  cb2.apply(this, arguments);
@@ -589,14 +589,14 @@ var require_graceful_fs = __commonJS({
589
589
  var fs$appendFile = fs4.appendFile;
590
590
  if (fs$appendFile)
591
591
  fs4.appendFile = appendFile;
592
- function appendFile(path8, data, options, cb) {
592
+ function appendFile(path9, data, options, cb) {
593
593
  if (typeof options === "function")
594
594
  cb = options, options = null;
595
- return go$appendFile(path8, data, options, cb);
596
- function go$appendFile(path9, data2, options2, cb2, startTime) {
597
- return fs$appendFile(path9, data2, options2, function(err) {
595
+ return go$appendFile(path9, data, options, cb);
596
+ function go$appendFile(path10, data2, options2, cb2, startTime) {
597
+ return fs$appendFile(path10, data2, options2, function(err) {
598
598
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
599
- enqueue([go$appendFile, [path9, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
599
+ enqueue([go$appendFile, [path10, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
600
600
  else {
601
601
  if (typeof cb2 === "function")
602
602
  cb2.apply(this, arguments);
@@ -627,31 +627,31 @@ var require_graceful_fs = __commonJS({
627
627
  var fs$readdir = fs4.readdir;
628
628
  fs4.readdir = readdir;
629
629
  var noReaddirOptionVersions = /^v[0-5]\./;
630
- function readdir(path8, options, cb) {
630
+ function readdir(path9, options, cb) {
631
631
  if (typeof options === "function")
632
632
  cb = options, options = null;
633
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path9, options2, cb2, startTime) {
634
- return fs$readdir(path9, fs$readdirCallback(
635
- path9,
633
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path10, options2, cb2, startTime) {
634
+ return fs$readdir(path10, fs$readdirCallback(
635
+ path10,
636
636
  options2,
637
637
  cb2,
638
638
  startTime
639
639
  ));
640
- } : function go$readdir2(path9, options2, cb2, startTime) {
641
- return fs$readdir(path9, options2, fs$readdirCallback(
642
- path9,
640
+ } : function go$readdir2(path10, options2, cb2, startTime) {
641
+ return fs$readdir(path10, options2, fs$readdirCallback(
642
+ path10,
643
643
  options2,
644
644
  cb2,
645
645
  startTime
646
646
  ));
647
647
  };
648
- return go$readdir(path8, options, cb);
649
- function fs$readdirCallback(path9, options2, cb2, startTime) {
648
+ return go$readdir(path9, options, cb);
649
+ function fs$readdirCallback(path10, options2, cb2, startTime) {
650
650
  return function(err, files) {
651
651
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
652
652
  enqueue([
653
653
  go$readdir,
654
- [path9, options2, cb2],
654
+ [path10, options2, cb2],
655
655
  err,
656
656
  startTime || Date.now(),
657
657
  Date.now()
@@ -722,7 +722,7 @@ var require_graceful_fs = __commonJS({
722
722
  enumerable: true,
723
723
  configurable: true
724
724
  });
725
- function ReadStream(path8, options) {
725
+ function ReadStream(path9, options) {
726
726
  if (this instanceof ReadStream)
727
727
  return fs$ReadStream.apply(this, arguments), this;
728
728
  else
@@ -742,7 +742,7 @@ var require_graceful_fs = __commonJS({
742
742
  }
743
743
  });
744
744
  }
745
- function WriteStream(path8, options) {
745
+ function WriteStream(path9, options) {
746
746
  if (this instanceof WriteStream)
747
747
  return fs$WriteStream.apply(this, arguments), this;
748
748
  else
@@ -760,22 +760,22 @@ var require_graceful_fs = __commonJS({
760
760
  }
761
761
  });
762
762
  }
763
- function createReadStream2(path8, options) {
764
- return new fs4.ReadStream(path8, options);
763
+ function createReadStream2(path9, options) {
764
+ return new fs4.ReadStream(path9, options);
765
765
  }
766
- function createWriteStream2(path8, options) {
767
- return new fs4.WriteStream(path8, options);
766
+ function createWriteStream2(path9, options) {
767
+ return new fs4.WriteStream(path9, options);
768
768
  }
769
769
  var fs$open = fs4.open;
770
770
  fs4.open = open;
771
- function open(path8, flags, mode, cb) {
771
+ function open(path9, flags, mode, cb) {
772
772
  if (typeof mode === "function")
773
773
  cb = mode, mode = null;
774
- return go$open(path8, flags, mode, cb);
775
- function go$open(path9, flags2, mode2, cb2, startTime) {
776
- return fs$open(path9, flags2, mode2, function(err, fd) {
774
+ return go$open(path9, flags, mode, cb);
775
+ function go$open(path10, flags2, mode2, cb2, startTime) {
776
+ return fs$open(path10, flags2, mode2, function(err, fd) {
777
777
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
778
- enqueue([go$open, [path9, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
778
+ enqueue([go$open, [path10, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
779
779
  else {
780
780
  if (typeof cb2 === "function")
781
781
  cb2.apply(this, arguments);
@@ -786,7 +786,7 @@ var require_graceful_fs = __commonJS({
786
786
  return fs4;
787
787
  }
788
788
  function enqueue(elem) {
789
- debug2("ENQUEUE", elem[0].name, elem[1]);
789
+ debug4("ENQUEUE", elem[0].name, elem[1]);
790
790
  fs3[gracefulQueue].push(elem);
791
791
  retry();
792
792
  }
@@ -813,10 +813,10 @@ var require_graceful_fs = __commonJS({
813
813
  var startTime = elem[3];
814
814
  var lastTime = elem[4];
815
815
  if (startTime === void 0) {
816
- debug2("RETRY", fn.name, args);
816
+ debug4("RETRY", fn.name, args);
817
817
  fn.apply(null, args);
818
818
  } else if (Date.now() - startTime >= 6e4) {
819
- debug2("TIMEOUT", fn.name, args);
819
+ debug4("TIMEOUT", fn.name, args);
820
820
  var cb = args.pop();
821
821
  if (typeof cb === "function")
822
822
  cb.call(null, err);
@@ -825,7 +825,7 @@ var require_graceful_fs = __commonJS({
825
825
  var sinceStart = Math.max(lastTime - startTime, 1);
826
826
  var desiredDelay = Math.min(sinceStart * 1.2, 100);
827
827
  if (sinceAttempt >= desiredDelay) {
828
- debug2("RETRY", fn.name, args);
828
+ debug4("RETRY", fn.name, args);
829
829
  fn.apply(null, args.concat([startTime]));
830
830
  } else {
831
831
  fs3[gracefulQueue].push(elem);
@@ -958,10 +958,10 @@ var require_fs = __commonJS({
958
958
  var require_utils = __commonJS({
959
959
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports2, module2) {
960
960
  "use strict";
961
- var path8 = require("path");
961
+ var path9 = require("path");
962
962
  module2.exports.checkPath = function checkPath(pth) {
963
963
  if (process.platform === "win32") {
964
- const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path8.parse(pth).root, ""));
964
+ const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path9.parse(pth).root, ""));
965
965
  if (pathHasInvalidWinCharacters) {
966
966
  const error = new Error(`Path contains invalid characters: ${pth}`);
967
967
  error.code = "EINVAL";
@@ -1025,8 +1025,8 @@ var require_path_exists = __commonJS({
1025
1025
  "use strict";
1026
1026
  var u = require_universalify().fromPromise;
1027
1027
  var fs3 = require_fs();
1028
- function pathExists(path8) {
1029
- return fs3.access(path8).then(() => true).catch(() => false);
1028
+ function pathExists(path9) {
1029
+ return fs3.access(path9).then(() => true).catch(() => false);
1030
1030
  }
1031
1031
  module2.exports = {
1032
1032
  pathExists: u(pathExists),
@@ -1041,8 +1041,8 @@ var require_utimes = __commonJS({
1041
1041
  "use strict";
1042
1042
  var fs3 = require_fs();
1043
1043
  var u = require_universalify().fromPromise;
1044
- async function utimesMillis(path8, atime, mtime) {
1045
- const fd = await fs3.open(path8, "r+");
1044
+ async function utimesMillis(path9, atime, mtime) {
1045
+ const fd = await fs3.open(path9, "r+");
1046
1046
  let closeErr = null;
1047
1047
  try {
1048
1048
  await fs3.futimes(fd, atime, mtime);
@@ -1057,8 +1057,8 @@ var require_utimes = __commonJS({
1057
1057
  throw closeErr;
1058
1058
  }
1059
1059
  }
1060
- function utimesMillisSync(path8, atime, mtime) {
1061
- const fd = fs3.openSync(path8, "r+");
1060
+ function utimesMillisSync(path9, atime, mtime) {
1061
+ const fd = fs3.openSync(path9, "r+");
1062
1062
  fs3.futimesSync(fd, atime, mtime);
1063
1063
  return fs3.closeSync(fd);
1064
1064
  }
@@ -1074,7 +1074,7 @@ var require_stat = __commonJS({
1074
1074
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
1075
1075
  "use strict";
1076
1076
  var fs3 = require_fs();
1077
- var path8 = require("path");
1077
+ var path9 = require("path");
1078
1078
  var u = require_universalify().fromPromise;
1079
1079
  function getStats(src, dest, opts) {
1080
1080
  const statFunc = opts.dereference ? (file4) => fs3.stat(file4, { bigint: true }) : (file4) => fs3.lstat(file4, { bigint: true });
@@ -1102,8 +1102,8 @@ var require_stat = __commonJS({
1102
1102
  const { srcStat, destStat } = await getStats(src, dest, opts);
1103
1103
  if (destStat) {
1104
1104
  if (areIdentical(srcStat, destStat)) {
1105
- const srcBaseName = path8.basename(src);
1106
- const destBaseName = path8.basename(dest);
1105
+ const srcBaseName = path9.basename(src);
1106
+ const destBaseName = path9.basename(dest);
1107
1107
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
1108
1108
  return { srcStat, destStat, isChangingCase: true };
1109
1109
  }
@@ -1125,8 +1125,8 @@ var require_stat = __commonJS({
1125
1125
  const { srcStat, destStat } = getStatsSync(src, dest, opts);
1126
1126
  if (destStat) {
1127
1127
  if (areIdentical(srcStat, destStat)) {
1128
- const srcBaseName = path8.basename(src);
1129
- const destBaseName = path8.basename(dest);
1128
+ const srcBaseName = path9.basename(src);
1129
+ const destBaseName = path9.basename(dest);
1130
1130
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
1131
1131
  return { srcStat, destStat, isChangingCase: true };
1132
1132
  }
@@ -1145,9 +1145,9 @@ var require_stat = __commonJS({
1145
1145
  return { srcStat, destStat };
1146
1146
  }
1147
1147
  async function checkParentPaths(src, srcStat, dest, funcName) {
1148
- const srcParent = path8.resolve(path8.dirname(src));
1149
- const destParent = path8.resolve(path8.dirname(dest));
1150
- if (destParent === srcParent || destParent === path8.parse(destParent).root) return;
1148
+ const srcParent = path9.resolve(path9.dirname(src));
1149
+ const destParent = path9.resolve(path9.dirname(dest));
1150
+ if (destParent === srcParent || destParent === path9.parse(destParent).root) return;
1151
1151
  let destStat;
1152
1152
  try {
1153
1153
  destStat = await fs3.stat(destParent, { bigint: true });
@@ -1161,9 +1161,9 @@ var require_stat = __commonJS({
1161
1161
  return checkParentPaths(src, srcStat, destParent, funcName);
1162
1162
  }
1163
1163
  function checkParentPathsSync(src, srcStat, dest, funcName) {
1164
- const srcParent = path8.resolve(path8.dirname(src));
1165
- const destParent = path8.resolve(path8.dirname(dest));
1166
- if (destParent === srcParent || destParent === path8.parse(destParent).root) return;
1164
+ const srcParent = path9.resolve(path9.dirname(src));
1165
+ const destParent = path9.resolve(path9.dirname(dest));
1166
+ if (destParent === srcParent || destParent === path9.parse(destParent).root) return;
1167
1167
  let destStat;
1168
1168
  try {
1169
1169
  destStat = fs3.statSync(destParent, { bigint: true });
@@ -1180,8 +1180,8 @@ var require_stat = __commonJS({
1180
1180
  return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
1181
1181
  }
1182
1182
  function isSrcSubdir(src, dest) {
1183
- const srcArr = path8.resolve(src).split(path8.sep).filter((i) => i);
1184
- const destArr = path8.resolve(dest).split(path8.sep).filter((i) => i);
1183
+ const srcArr = path9.resolve(src).split(path9.sep).filter((i) => i);
1184
+ const destArr = path9.resolve(dest).split(path9.sep).filter((i) => i);
1185
1185
  return srcArr.every((cur, i) => destArr[i] === cur);
1186
1186
  }
1187
1187
  function errMsg(src, dest, funcName) {
@@ -1206,7 +1206,7 @@ var require_copy = __commonJS({
1206
1206
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
1207
1207
  "use strict";
1208
1208
  var fs3 = require_fs();
1209
- var path8 = require("path");
1209
+ var path9 = require("path");
1210
1210
  var { mkdirs } = require_mkdirs();
1211
1211
  var { pathExists } = require_path_exists();
1212
1212
  var { utimesMillis } = require_utimes();
@@ -1228,7 +1228,7 @@ var require_copy = __commonJS({
1228
1228
  await stat.checkParentPaths(src, srcStat, dest, "copy");
1229
1229
  const include = await runFilter(src, dest, opts);
1230
1230
  if (!include) return;
1231
- const destParent = path8.dirname(dest);
1231
+ const destParent = path9.dirname(dest);
1232
1232
  const dirExists = await pathExists(destParent);
1233
1233
  if (!dirExists) {
1234
1234
  await mkdirs(destParent);
@@ -1282,8 +1282,8 @@ var require_copy = __commonJS({
1282
1282
  }
1283
1283
  const promises = [];
1284
1284
  for await (const item of await fs3.opendir(src)) {
1285
- const srcItem = path8.join(src, item.name);
1286
- const destItem = path8.join(dest, item.name);
1285
+ const srcItem = path9.join(src, item.name);
1286
+ const destItem = path9.join(dest, item.name);
1287
1287
  promises.push(
1288
1288
  runFilter(srcItem, destItem, opts).then((include) => {
1289
1289
  if (include) {
@@ -1302,7 +1302,7 @@ var require_copy = __commonJS({
1302
1302
  async function onLink(destStat, src, dest, opts) {
1303
1303
  let resolvedSrc = await fs3.readlink(src);
1304
1304
  if (opts.dereference) {
1305
- resolvedSrc = path8.resolve(process.cwd(), resolvedSrc);
1305
+ resolvedSrc = path9.resolve(process.cwd(), resolvedSrc);
1306
1306
  }
1307
1307
  if (!destStat) {
1308
1308
  return fs3.symlink(resolvedSrc, dest);
@@ -1315,7 +1315,7 @@ var require_copy = __commonJS({
1315
1315
  throw e;
1316
1316
  }
1317
1317
  if (opts.dereference) {
1318
- resolvedDest = path8.resolve(process.cwd(), resolvedDest);
1318
+ resolvedDest = path9.resolve(process.cwd(), resolvedDest);
1319
1319
  }
1320
1320
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
1321
1321
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
@@ -1335,7 +1335,7 @@ var require_copy_sync = __commonJS({
1335
1335
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports2, module2) {
1336
1336
  "use strict";
1337
1337
  var fs3 = require_graceful_fs();
1338
- var path8 = require("path");
1338
+ var path9 = require("path");
1339
1339
  var mkdirsSync = require_mkdirs().mkdirsSync;
1340
1340
  var utimesMillisSync = require_utimes().utimesMillisSync;
1341
1341
  var stat = require_stat();
@@ -1356,7 +1356,7 @@ var require_copy_sync = __commonJS({
1356
1356
  const { srcStat, destStat } = stat.checkPathsSync(src, dest, "copy", opts);
1357
1357
  stat.checkParentPathsSync(src, srcStat, dest, "copy");
1358
1358
  if (opts.filter && !opts.filter(src, dest)) return;
1359
- const destParent = path8.dirname(dest);
1359
+ const destParent = path9.dirname(dest);
1360
1360
  if (!fs3.existsSync(destParent)) mkdirsSync(destParent);
1361
1361
  return getStats(destStat, src, dest, opts);
1362
1362
  }
@@ -1425,8 +1425,8 @@ var require_copy_sync = __commonJS({
1425
1425
  }
1426
1426
  }
1427
1427
  function copyDirItem(item, src, dest, opts) {
1428
- const srcItem = path8.join(src, item);
1429
- const destItem = path8.join(dest, item);
1428
+ const srcItem = path9.join(src, item);
1429
+ const destItem = path9.join(dest, item);
1430
1430
  if (opts.filter && !opts.filter(srcItem, destItem)) return;
1431
1431
  const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
1432
1432
  return getStats(destStat, srcItem, destItem, opts);
@@ -1434,7 +1434,7 @@ var require_copy_sync = __commonJS({
1434
1434
  function onLink(destStat, src, dest, opts) {
1435
1435
  let resolvedSrc = fs3.readlinkSync(src);
1436
1436
  if (opts.dereference) {
1437
- resolvedSrc = path8.resolve(process.cwd(), resolvedSrc);
1437
+ resolvedSrc = path9.resolve(process.cwd(), resolvedSrc);
1438
1438
  }
1439
1439
  if (!destStat) {
1440
1440
  return fs3.symlinkSync(resolvedSrc, dest);
@@ -1447,7 +1447,7 @@ var require_copy_sync = __commonJS({
1447
1447
  throw err;
1448
1448
  }
1449
1449
  if (opts.dereference) {
1450
- resolvedDest = path8.resolve(process.cwd(), resolvedDest);
1450
+ resolvedDest = path9.resolve(process.cwd(), resolvedDest);
1451
1451
  }
1452
1452
  if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
1453
1453
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
@@ -1484,11 +1484,11 @@ var require_remove = __commonJS({
1484
1484
  "use strict";
1485
1485
  var fs3 = require_graceful_fs();
1486
1486
  var u = require_universalify().fromCallback;
1487
- function remove(path8, callback) {
1488
- fs3.rm(path8, { recursive: true, force: true }, callback);
1487
+ function remove(path9, callback) {
1488
+ fs3.rm(path9, { recursive: true, force: true }, callback);
1489
1489
  }
1490
- function removeSync(path8) {
1491
- fs3.rmSync(path8, { recursive: true, force: true });
1490
+ function removeSync(path9) {
1491
+ fs3.rmSync(path9, { recursive: true, force: true });
1492
1492
  }
1493
1493
  module2.exports = {
1494
1494
  remove: u(remove),
@@ -1503,7 +1503,7 @@ var require_empty = __commonJS({
1503
1503
  "use strict";
1504
1504
  var u = require_universalify().fromPromise;
1505
1505
  var fs3 = require_fs();
1506
- var path8 = require("path");
1506
+ var path9 = require("path");
1507
1507
  var mkdir = require_mkdirs();
1508
1508
  var remove = require_remove();
1509
1509
  var emptyDir = u(async function emptyDir2(dir) {
@@ -1513,7 +1513,7 @@ var require_empty = __commonJS({
1513
1513
  } catch {
1514
1514
  return mkdir.mkdirs(dir);
1515
1515
  }
1516
- return Promise.all(items.map((item) => remove.remove(path8.join(dir, item))));
1516
+ return Promise.all(items.map((item) => remove.remove(path9.join(dir, item))));
1517
1517
  });
1518
1518
  function emptyDirSync(dir) {
1519
1519
  let items;
@@ -1523,7 +1523,7 @@ var require_empty = __commonJS({
1523
1523
  return mkdir.mkdirsSync(dir);
1524
1524
  }
1525
1525
  items.forEach((item) => {
1526
- item = path8.join(dir, item);
1526
+ item = path9.join(dir, item);
1527
1527
  remove.removeSync(item);
1528
1528
  });
1529
1529
  }
@@ -1541,7 +1541,7 @@ var require_file = __commonJS({
1541
1541
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
1542
1542
  "use strict";
1543
1543
  var u = require_universalify().fromPromise;
1544
- var path8 = require("path");
1544
+ var path9 = require("path");
1545
1545
  var fs3 = require_fs();
1546
1546
  var mkdir = require_mkdirs();
1547
1547
  async function createFile(file4) {
@@ -1551,7 +1551,7 @@ var require_file = __commonJS({
1551
1551
  } catch {
1552
1552
  }
1553
1553
  if (stats && stats.isFile()) return;
1554
- const dir = path8.dirname(file4);
1554
+ const dir = path9.dirname(file4);
1555
1555
  let dirStats = null;
1556
1556
  try {
1557
1557
  dirStats = await fs3.stat(dir);
@@ -1577,7 +1577,7 @@ var require_file = __commonJS({
1577
1577
  } catch {
1578
1578
  }
1579
1579
  if (stats && stats.isFile()) return;
1580
- const dir = path8.dirname(file4);
1580
+ const dir = path9.dirname(file4);
1581
1581
  try {
1582
1582
  if (!fs3.statSync(dir).isDirectory()) {
1583
1583
  fs3.readdirSync(dir);
@@ -1600,7 +1600,7 @@ var require_link = __commonJS({
1600
1600
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
1601
1601
  "use strict";
1602
1602
  var u = require_universalify().fromPromise;
1603
- var path8 = require("path");
1603
+ var path9 = require("path");
1604
1604
  var fs3 = require_fs();
1605
1605
  var mkdir = require_mkdirs();
1606
1606
  var { pathExists } = require_path_exists();
@@ -1619,7 +1619,7 @@ var require_link = __commonJS({
1619
1619
  throw err;
1620
1620
  }
1621
1621
  if (dstStat && areIdentical(srcStat, dstStat)) return;
1622
- const dir = path8.dirname(dstpath);
1622
+ const dir = path9.dirname(dstpath);
1623
1623
  const dirExists = await pathExists(dir);
1624
1624
  if (!dirExists) {
1625
1625
  await mkdir.mkdirs(dir);
@@ -1639,7 +1639,7 @@ var require_link = __commonJS({
1639
1639
  err.message = err.message.replace("lstat", "ensureLink");
1640
1640
  throw err;
1641
1641
  }
1642
- const dir = path8.dirname(dstpath);
1642
+ const dir = path9.dirname(dstpath);
1643
1643
  const dirExists = fs3.existsSync(dir);
1644
1644
  if (dirExists) return fs3.linkSync(srcpath, dstpath);
1645
1645
  mkdir.mkdirsSync(dir);
@@ -1656,12 +1656,12 @@ var require_link = __commonJS({
1656
1656
  var require_symlink_paths = __commonJS({
1657
1657
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
1658
1658
  "use strict";
1659
- var path8 = require("path");
1659
+ var path9 = require("path");
1660
1660
  var fs3 = require_fs();
1661
1661
  var { pathExists } = require_path_exists();
1662
1662
  var u = require_universalify().fromPromise;
1663
1663
  async function symlinkPaths(srcpath, dstpath) {
1664
- if (path8.isAbsolute(srcpath)) {
1664
+ if (path9.isAbsolute(srcpath)) {
1665
1665
  try {
1666
1666
  await fs3.lstat(srcpath);
1667
1667
  } catch (err) {
@@ -1673,8 +1673,8 @@ var require_symlink_paths = __commonJS({
1673
1673
  toDst: srcpath
1674
1674
  };
1675
1675
  }
1676
- const dstdir = path8.dirname(dstpath);
1677
- const relativeToDst = path8.join(dstdir, srcpath);
1676
+ const dstdir = path9.dirname(dstpath);
1677
+ const relativeToDst = path9.join(dstdir, srcpath);
1678
1678
  const exists = await pathExists(relativeToDst);
1679
1679
  if (exists) {
1680
1680
  return {
@@ -1690,11 +1690,11 @@ var require_symlink_paths = __commonJS({
1690
1690
  }
1691
1691
  return {
1692
1692
  toCwd: srcpath,
1693
- toDst: path8.relative(dstdir, srcpath)
1693
+ toDst: path9.relative(dstdir, srcpath)
1694
1694
  };
1695
1695
  }
1696
1696
  function symlinkPathsSync(srcpath, dstpath) {
1697
- if (path8.isAbsolute(srcpath)) {
1697
+ if (path9.isAbsolute(srcpath)) {
1698
1698
  const exists2 = fs3.existsSync(srcpath);
1699
1699
  if (!exists2) throw new Error("absolute srcpath does not exist");
1700
1700
  return {
@@ -1702,8 +1702,8 @@ var require_symlink_paths = __commonJS({
1702
1702
  toDst: srcpath
1703
1703
  };
1704
1704
  }
1705
- const dstdir = path8.dirname(dstpath);
1706
- const relativeToDst = path8.join(dstdir, srcpath);
1705
+ const dstdir = path9.dirname(dstpath);
1706
+ const relativeToDst = path9.join(dstdir, srcpath);
1707
1707
  const exists = fs3.existsSync(relativeToDst);
1708
1708
  if (exists) {
1709
1709
  return {
@@ -1715,7 +1715,7 @@ var require_symlink_paths = __commonJS({
1715
1715
  if (!srcExists) throw new Error("relative srcpath does not exist");
1716
1716
  return {
1717
1717
  toCwd: srcpath,
1718
- toDst: path8.relative(dstdir, srcpath)
1718
+ toDst: path9.relative(dstdir, srcpath)
1719
1719
  };
1720
1720
  }
1721
1721
  module2.exports = {
@@ -1763,7 +1763,7 @@ var require_symlink = __commonJS({
1763
1763
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
1764
1764
  "use strict";
1765
1765
  var u = require_universalify().fromPromise;
1766
- var path8 = require("path");
1766
+ var path9 = require("path");
1767
1767
  var fs3 = require_fs();
1768
1768
  var { mkdirs, mkdirsSync } = require_mkdirs();
1769
1769
  var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
@@ -1786,7 +1786,7 @@ var require_symlink = __commonJS({
1786
1786
  const relative = await symlinkPaths(srcpath, dstpath);
1787
1787
  srcpath = relative.toDst;
1788
1788
  const toType = await symlinkType(relative.toCwd, type);
1789
- const dir = path8.dirname(dstpath);
1789
+ const dir = path9.dirname(dstpath);
1790
1790
  if (!await pathExists(dir)) {
1791
1791
  await mkdirs(dir);
1792
1792
  }
@@ -1806,7 +1806,7 @@ var require_symlink = __commonJS({
1806
1806
  const relative = symlinkPathsSync(srcpath, dstpath);
1807
1807
  srcpath = relative.toDst;
1808
1808
  type = symlinkTypeSync(relative.toCwd, type);
1809
- const dir = path8.dirname(dstpath);
1809
+ const dir = path9.dirname(dstpath);
1810
1810
  const exists = fs3.existsSync(dir);
1811
1811
  if (exists) return fs3.symlinkSync(srcpath, dstpath, type);
1812
1812
  mkdirsSync(dir);
@@ -1846,9 +1846,9 @@ var require_ensure = __commonJS({
1846
1846
  }
1847
1847
  });
1848
1848
 
1849
- // ../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js
1849
+ // ../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js
1850
1850
  var require_utils2 = __commonJS({
1851
- "../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js"(exports2, module2) {
1851
+ "../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports2, module2) {
1852
1852
  "use strict";
1853
1853
  function stringify9(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
1854
1854
  const EOF = finalEOL ? EOL : "";
@@ -1863,9 +1863,9 @@ var require_utils2 = __commonJS({
1863
1863
  }
1864
1864
  });
1865
1865
 
1866
- // ../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js
1866
+ // ../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/index.js
1867
1867
  var require_jsonfile = __commonJS({
1868
- "../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js"(exports2, module2) {
1868
+ "../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/index.js"(exports2, module2) {
1869
1869
  "use strict";
1870
1870
  var _fs;
1871
1871
  try {
@@ -1927,12 +1927,13 @@ var require_jsonfile = __commonJS({
1927
1927
  const str = stringify9(obj, options);
1928
1928
  return fs3.writeFileSync(file4, str, options);
1929
1929
  }
1930
- module2.exports = {
1930
+ var jsonfile = {
1931
1931
  readFile,
1932
1932
  readFileSync: readFileSync2,
1933
1933
  writeFile,
1934
1934
  writeFileSync
1935
1935
  };
1936
+ module2.exports = jsonfile;
1936
1937
  }
1937
1938
  });
1938
1939
 
@@ -1957,18 +1958,18 @@ var require_output_file = __commonJS({
1957
1958
  "use strict";
1958
1959
  var u = require_universalify().fromPromise;
1959
1960
  var fs3 = require_fs();
1960
- var path8 = require("path");
1961
+ var path9 = require("path");
1961
1962
  var mkdir = require_mkdirs();
1962
1963
  var pathExists = require_path_exists().pathExists;
1963
1964
  async function outputFile(file4, data, encoding = "utf-8") {
1964
- const dir = path8.dirname(file4);
1965
+ const dir = path9.dirname(file4);
1965
1966
  if (!await pathExists(dir)) {
1966
1967
  await mkdir.mkdirs(dir);
1967
1968
  }
1968
1969
  return fs3.writeFile(file4, data, encoding);
1969
1970
  }
1970
1971
  function outputFileSync(file4, ...args) {
1971
- const dir = path8.dirname(file4);
1972
+ const dir = path9.dirname(file4);
1972
1973
  if (!fs3.existsSync(dir)) {
1973
1974
  mkdir.mkdirsSync(dir);
1974
1975
  }
@@ -2032,7 +2033,7 @@ var require_move = __commonJS({
2032
2033
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
2033
2034
  "use strict";
2034
2035
  var fs3 = require_fs();
2035
- var path8 = require("path");
2036
+ var path9 = require("path");
2036
2037
  var { copy } = require_copy2();
2037
2038
  var { remove } = require_remove();
2038
2039
  var { mkdirp } = require_mkdirs();
@@ -2042,8 +2043,8 @@ var require_move = __commonJS({
2042
2043
  const overwrite = opts.overwrite || opts.clobber || false;
2043
2044
  const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);
2044
2045
  await stat.checkParentPaths(src, srcStat, dest, "move");
2045
- const destParent = path8.dirname(dest);
2046
- const parsedParentPath = path8.parse(destParent);
2046
+ const destParent = path9.dirname(dest);
2047
+ const parsedParentPath = path9.parse(destParent);
2047
2048
  if (parsedParentPath.root !== destParent) {
2048
2049
  await mkdirp(destParent);
2049
2050
  }
@@ -2084,7 +2085,7 @@ var require_move_sync = __commonJS({
2084
2085
  "../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move-sync.js"(exports2, module2) {
2085
2086
  "use strict";
2086
2087
  var fs3 = require_graceful_fs();
2087
- var path8 = require("path");
2088
+ var path9 = require("path");
2088
2089
  var copySync = require_copy2().copySync;
2089
2090
  var removeSync = require_remove().removeSync;
2090
2091
  var mkdirpSync = require_mkdirs().mkdirpSync;
@@ -2094,12 +2095,12 @@ var require_move_sync = __commonJS({
2094
2095
  const overwrite = opts.overwrite || opts.clobber || false;
2095
2096
  const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
2096
2097
  stat.checkParentPathsSync(src, srcStat, dest, "move");
2097
- if (!isParentRoot(dest)) mkdirpSync(path8.dirname(dest));
2098
+ if (!isParentRoot(dest)) mkdirpSync(path9.dirname(dest));
2098
2099
  return doRename(src, dest, overwrite, isChangingCase);
2099
2100
  }
2100
2101
  function isParentRoot(dest) {
2101
- const parent = path8.dirname(dest);
2102
- const parsedPath = path8.parse(parent);
2102
+ const parent = path9.dirname(dest);
2103
+ const parsedPath = path9.parse(parent);
2103
2104
  return parsedPath.root === parent;
2104
2105
  }
2105
2106
  function doRename(src, dest, overwrite, isChangingCase) {
@@ -2172,7 +2173,7 @@ var require_windows = __commonJS({
2172
2173
  module2.exports = isexe;
2173
2174
  isexe.sync = sync;
2174
2175
  var fs3 = require("fs");
2175
- function checkPathExt(path8, options) {
2176
+ function checkPathExt(path9, options) {
2176
2177
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
2177
2178
  if (!pathext) {
2178
2179
  return true;
@@ -2183,25 +2184,25 @@ var require_windows = __commonJS({
2183
2184
  }
2184
2185
  for (var i = 0; i < pathext.length; i++) {
2185
2186
  var p = pathext[i].toLowerCase();
2186
- if (p && path8.substr(-p.length).toLowerCase() === p) {
2187
+ if (p && path9.substr(-p.length).toLowerCase() === p) {
2187
2188
  return true;
2188
2189
  }
2189
2190
  }
2190
2191
  return false;
2191
2192
  }
2192
- function checkStat(stat, path8, options) {
2193
+ function checkStat(stat, path9, options) {
2193
2194
  if (!stat.isSymbolicLink() && !stat.isFile()) {
2194
2195
  return false;
2195
2196
  }
2196
- return checkPathExt(path8, options);
2197
+ return checkPathExt(path9, options);
2197
2198
  }
2198
- function isexe(path8, options, cb) {
2199
- fs3.stat(path8, function(er, stat) {
2200
- cb(er, er ? false : checkStat(stat, path8, options));
2199
+ function isexe(path9, options, cb) {
2200
+ fs3.stat(path9, function(er, stat) {
2201
+ cb(er, er ? false : checkStat(stat, path9, options));
2201
2202
  });
2202
2203
  }
2203
- function sync(path8, options) {
2204
- return checkStat(fs3.statSync(path8), path8, options);
2204
+ function sync(path9, options) {
2205
+ return checkStat(fs3.statSync(path9), path9, options);
2205
2206
  }
2206
2207
  }
2207
2208
  });
@@ -2213,13 +2214,13 @@ var require_mode = __commonJS({
2213
2214
  module2.exports = isexe;
2214
2215
  isexe.sync = sync;
2215
2216
  var fs3 = require("fs");
2216
- function isexe(path8, options, cb) {
2217
- fs3.stat(path8, function(er, stat) {
2217
+ function isexe(path9, options, cb) {
2218
+ fs3.stat(path9, function(er, stat) {
2218
2219
  cb(er, er ? false : checkStat(stat, options));
2219
2220
  });
2220
2221
  }
2221
- function sync(path8, options) {
2222
- return checkStat(fs3.statSync(path8), options);
2222
+ function sync(path9, options) {
2223
+ return checkStat(fs3.statSync(path9), options);
2223
2224
  }
2224
2225
  function checkStat(stat, options) {
2225
2226
  return stat.isFile() && checkMode(stat, options);
@@ -2253,7 +2254,7 @@ var require_isexe = __commonJS({
2253
2254
  }
2254
2255
  module2.exports = isexe;
2255
2256
  isexe.sync = sync;
2256
- function isexe(path8, options, cb) {
2257
+ function isexe(path9, options, cb) {
2257
2258
  if (typeof options === "function") {
2258
2259
  cb = options;
2259
2260
  options = {};
@@ -2263,7 +2264,7 @@ var require_isexe = __commonJS({
2263
2264
  throw new TypeError("callback not provided");
2264
2265
  }
2265
2266
  return new Promise(function(resolve, reject) {
2266
- isexe(path8, options || {}, function(er, is) {
2267
+ isexe(path9, options || {}, function(er, is) {
2267
2268
  if (er) {
2268
2269
  reject(er);
2269
2270
  } else {
@@ -2272,7 +2273,7 @@ var require_isexe = __commonJS({
2272
2273
  });
2273
2274
  });
2274
2275
  }
2275
- core(path8, options || {}, function(er, is) {
2276
+ core(path9, options || {}, function(er, is) {
2276
2277
  if (er) {
2277
2278
  if (er.code === "EACCES" || options && options.ignoreErrors) {
2278
2279
  er = null;
@@ -2282,9 +2283,9 @@ var require_isexe = __commonJS({
2282
2283
  cb(er, is);
2283
2284
  });
2284
2285
  }
2285
- function sync(path8, options) {
2286
+ function sync(path9, options) {
2286
2287
  try {
2287
- return core.sync(path8, options || {});
2288
+ return core.sync(path9, options || {});
2288
2289
  } catch (er) {
2289
2290
  if (options && options.ignoreErrors || er.code === "EACCES") {
2290
2291
  return false;
@@ -2301,7 +2302,7 @@ var require_which = __commonJS({
2301
2302
  "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports2, module2) {
2302
2303
  "use strict";
2303
2304
  var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
2304
- var path8 = require("path");
2305
+ var path9 = require("path");
2305
2306
  var COLON = isWindows ? ";" : ":";
2306
2307
  var isexe = require_isexe();
2307
2308
  var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
@@ -2339,7 +2340,7 @@ var require_which = __commonJS({
2339
2340
  return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
2340
2341
  const ppRaw = pathEnv[i];
2341
2342
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
2342
- const pCmd = path8.join(pathPart, cmd);
2343
+ const pCmd = path9.join(pathPart, cmd);
2343
2344
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
2344
2345
  resolve(subStep(p, i, 0));
2345
2346
  });
@@ -2366,7 +2367,7 @@ var require_which = __commonJS({
2366
2367
  for (let i = 0; i < pathEnv.length; i++) {
2367
2368
  const ppRaw = pathEnv[i];
2368
2369
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
2369
- const pCmd = path8.join(pathPart, cmd);
2370
+ const pCmd = path9.join(pathPart, cmd);
2370
2371
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
2371
2372
  for (let j = 0; j < pathExt.length; j++) {
2372
2373
  const cur = p + pathExt[j];
@@ -2414,7 +2415,7 @@ var require_path_key = __commonJS({
2414
2415
  var require_resolveCommand = __commonJS({
2415
2416
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
2416
2417
  "use strict";
2417
- var path8 = require("path");
2418
+ var path9 = require("path");
2418
2419
  var which = require_which();
2419
2420
  var getPathKey = require_path_key();
2420
2421
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -2432,7 +2433,7 @@ var require_resolveCommand = __commonJS({
2432
2433
  try {
2433
2434
  resolved = which.sync(parsed.command, {
2434
2435
  path: env[getPathKey({ env })],
2435
- pathExt: withoutPathExt ? path8.delimiter : void 0
2436
+ pathExt: withoutPathExt ? path9.delimiter : void 0
2436
2437
  });
2437
2438
  } catch (e) {
2438
2439
  } finally {
@@ -2441,7 +2442,7 @@ var require_resolveCommand = __commonJS({
2441
2442
  }
2442
2443
  }
2443
2444
  if (resolved) {
2444
- resolved = path8.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
2445
+ resolved = path9.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
2445
2446
  }
2446
2447
  return resolved;
2447
2448
  }
@@ -2491,12 +2492,12 @@ var require_shebang_command = __commonJS({
2491
2492
  "use strict";
2492
2493
  var shebangRegex = require_shebang_regex();
2493
2494
  module2.exports = (string = "") => {
2494
- const match = string.match(shebangRegex);
2495
- if (!match) {
2495
+ const match2 = string.match(shebangRegex);
2496
+ if (!match2) {
2496
2497
  return null;
2497
2498
  }
2498
- const [path8, argument] = match[0].replace(/#! ?/, "").split(" ");
2499
- const binary = path8.split("/").pop();
2499
+ const [path9, argument] = match2[0].replace(/#! ?/, "").split(" ");
2500
+ const binary = path9.split("/").pop();
2500
2501
  if (binary === "env") {
2501
2502
  return argument;
2502
2503
  }
@@ -2531,7 +2532,7 @@ var require_readShebang = __commonJS({
2531
2532
  var require_parse = __commonJS({
2532
2533
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
2533
2534
  "use strict";
2534
- var path8 = require("path");
2535
+ var path9 = require("path");
2535
2536
  var resolveCommand = require_resolveCommand();
2536
2537
  var escape = require_escape();
2537
2538
  var readShebang = require_readShebang();
@@ -2556,7 +2557,7 @@ var require_parse = __commonJS({
2556
2557
  const needsShell = !isExecutableRegExp.test(commandFile);
2557
2558
  if (parsed.options.forceShell || needsShell) {
2558
2559
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
2559
- parsed.command = path8.normalize(parsed.command);
2560
+ parsed.command = path9.normalize(parsed.command);
2560
2561
  parsed.command = escape.command(parsed.command);
2561
2562
  parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
2562
2563
  const shellCommand = [parsed.command].concat(parsed.args).join(" ");
@@ -2763,8 +2764,10 @@ function getMappings(mappings, datamodel) {
2763
2764
  }
2764
2765
 
2765
2766
  // src/generateClient.ts
2766
- var import_internals9 = require("@prisma/internals");
2767
- var import_crypto = require("crypto");
2767
+ var import_debug = require("@prisma/debug");
2768
+ var import_fetch_engine = require("@prisma/fetch-engine");
2769
+ var import_internals10 = require("@prisma/internals");
2770
+ var import_crypto2 = require("crypto");
2768
2771
  var import_env_paths = __toESM(require("env-paths"));
2769
2772
  var import_fs = require("fs");
2770
2773
  var import_promises = __toESM(require("fs/promises"));
@@ -2820,7 +2823,7 @@ var bgWhite = init(47, 49);
2820
2823
 
2821
2824
  // src/generateClient.ts
2822
2825
  var import_package_up = require("package-up");
2823
- var import_path2 = __toESM(require("path"));
2826
+ var import_path3 = __toESM(require("path"));
2824
2827
 
2825
2828
  // ../client/package.json
2826
2829
  var package_default = {
@@ -2852,7 +2855,8 @@ var package_default = {
2852
2855
  "MSSQL",
2853
2856
  "SQL Server",
2854
2857
  "SQLServer",
2855
- "MongoDB"
2858
+ "MongoDB",
2859
+ "react-native"
2856
2860
  ],
2857
2861
  main: "default.js",
2858
2862
  types: "default.d.ts",
@@ -2878,6 +2882,18 @@ var package_default = {
2878
2882
  },
2879
2883
  default: "./default.js"
2880
2884
  },
2885
+ "./edge": {
2886
+ types: "./edge.d.ts",
2887
+ require: "./edge.js",
2888
+ import: "./edge.js",
2889
+ default: "./edge.js"
2890
+ },
2891
+ "./react-native": {
2892
+ types: "./react-native.d.ts",
2893
+ require: "./react-native.js",
2894
+ import: "./react-native.js",
2895
+ default: "./react-native.js"
2896
+ },
2881
2897
  "./extension": {
2882
2898
  types: "./extension.d.ts",
2883
2899
  require: "./extension.js",
@@ -2912,12 +2928,42 @@ var package_default = {
2912
2928
  import: "./runtime/client.mjs",
2913
2929
  default: "./runtime/client.mjs"
2914
2930
  },
2931
+ "./runtime/library": {
2932
+ types: "./runtime/library.d.ts",
2933
+ require: "./runtime/library.js",
2934
+ import: "./runtime/library.mjs",
2935
+ default: "./runtime/library.mjs"
2936
+ },
2937
+ "./runtime/binary": {
2938
+ types: "./runtime/binary.d.ts",
2939
+ require: "./runtime/binary.js",
2940
+ import: "./runtime/binary.mjs",
2941
+ default: "./runtime/binary.mjs"
2942
+ },
2943
+ "./runtime/wasm-engine-edge": {
2944
+ types: "./runtime/wasm-engine-edge.d.ts",
2945
+ require: "./runtime/wasm-engine-edge.js",
2946
+ import: "./runtime/wasm-engine-edge.mjs",
2947
+ default: "./runtime/wasm-engine-edge.mjs"
2948
+ },
2915
2949
  "./runtime/wasm-compiler-edge": {
2916
2950
  types: "./runtime/wasm-compiler-edge.d.ts",
2917
2951
  require: "./runtime/wasm-compiler-edge.js",
2918
2952
  import: "./runtime/wasm-compiler-edge.mjs",
2919
2953
  default: "./runtime/wasm-compiler-edge.mjs"
2920
2954
  },
2955
+ "./runtime/edge": {
2956
+ types: "./runtime/edge.d.ts",
2957
+ require: "./runtime/edge.js",
2958
+ import: "./runtime/edge-esm.js",
2959
+ default: "./runtime/edge-esm.js"
2960
+ },
2961
+ "./runtime/react-native": {
2962
+ types: "./runtime/react-native.d.ts",
2963
+ require: "./runtime/react-native.js",
2964
+ import: "./runtime/react-native.js",
2965
+ default: "./runtime/react-native.js"
2966
+ },
2921
2967
  "./runtime/index-browser": {
2922
2968
  types: "./runtime/index-browser.d.ts",
2923
2969
  require: "./runtime/index-browser.js",
@@ -2946,7 +2992,7 @@ var package_default = {
2946
2992
  },
2947
2993
  license: "Apache-2.0",
2948
2994
  engines: {
2949
- node: "^20.19 || ^22.12 || ^24.0"
2995
+ node: ">=18.18"
2950
2996
  },
2951
2997
  homepage: "https://www.prisma.io",
2952
2998
  repository: {
@@ -2962,7 +3008,7 @@ var package_default = {
2962
3008
  test: "dotenv -e ../../.db.env -- jest --silent",
2963
3009
  "test:e2e": "dotenv -e ../../.db.env -- tsx tests/e2e/_utils/run.ts",
2964
3010
  "test:functional": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts",
2965
- "test:functional:client": "pnpm run test:functional --client-runtime client",
3011
+ "test:functional:client": "pnpm run test:functional --client-runtime client --engine-type client",
2966
3012
  "test:memory": "dotenv -e ../../.db.env -- tsx helpers/memory-tests.ts",
2967
3013
  "test:functional:code": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --no-types",
2968
3014
  "test:functional:types": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --types-only",
@@ -2977,10 +3023,14 @@ var package_default = {
2977
3023
  "runtime",
2978
3024
  "scripts",
2979
3025
  "generator-build",
3026
+ "edge.js",
3027
+ "edge.d.ts",
2980
3028
  "wasm.js",
2981
3029
  "wasm.d.ts",
2982
3030
  "index.js",
2983
3031
  "index.d.ts",
3032
+ "react-native.js",
3033
+ "react-native.d.ts",
2984
3034
  "default.js",
2985
3035
  "default.d.ts",
2986
3036
  "index-browser.js",
@@ -2991,7 +3041,7 @@ var package_default = {
2991
3041
  "sql.mjs"
2992
3042
  ],
2993
3043
  devDependencies: {
2994
- "@cloudflare/workers-types": "^4.20251014.0",
3044
+ "@cloudflare/workers-types": "^4.20250408.0",
2995
3045
  "@codspeed/benchmark.js-plugin": "4.0.0",
2996
3046
  "@faker-js/faker": "9.6.0",
2997
3047
  "@fast-check/jest": "2.0.3",
@@ -3026,7 +3076,7 @@ var package_default = {
3026
3076
  "@prisma/dmmf": "workspace:*",
3027
3077
  "@prisma/driver-adapter-utils": "workspace:*",
3028
3078
  "@prisma/engines": "workspace:*",
3029
- "@prisma/engines-version": "6.19.0-31.next-6f525e2b254a97a9c547ae5f2b29c54a171f6b23",
3079
+ "@prisma/engines-version": "6.19.0-26.2ba551f319ab1df4bc874a89965d8b3641056773",
3030
3080
  "@prisma/fetch-engine": "workspace:*",
3031
3081
  "@prisma/generator": "workspace:*",
3032
3082
  "@prisma/generator-helper": "workspace:*",
@@ -3034,8 +3084,9 @@ var package_default = {
3034
3084
  "@prisma/instrumentation": "workspace:*",
3035
3085
  "@prisma/internals": "workspace:*",
3036
3086
  "@prisma/migrate": "workspace:*",
3037
- "@prisma/query-compiler-wasm": "6.19.0-31.next-6f525e2b254a97a9c547ae5f2b29c54a171f6b23",
3038
- "@prisma/query-engine-wasm": "6.19.0-31.next-6f525e2b254a97a9c547ae5f2b29c54a171f6b23",
3087
+ "@prisma/mini-proxy": "0.9.5",
3088
+ "@prisma/query-compiler-wasm": "6.19.0-26.2ba551f319ab1df4bc874a89965d8b3641056773",
3089
+ "@prisma/query-engine-wasm": "6.19.0-26.2ba551f319ab1df4bc874a89965d8b3641056773",
3039
3090
  "@prisma/query-plan-executor": "workspace:*",
3040
3091
  "@prisma/ts-builders": "workspace:*",
3041
3092
  "@snaplet/copycat": "6.0.0",
@@ -3048,11 +3099,12 @@ var package_default = {
3048
3099
  "@types/jest": "29.5.14",
3049
3100
  "@types/js-levenshtein": "1.1.3",
3050
3101
  "@types/mssql": "9.1.8",
3051
- "@types/node": "~20.19.24",
3102
+ "@types/node": "18.19.76",
3052
3103
  "@types/pg": "8.11.11",
3053
3104
  arg: "5.0.2",
3054
3105
  benchmark: "2.1.4",
3055
3106
  "cookie-es": "2.0.0",
3107
+ "decimal.js": "10.5.0",
3056
3108
  execa: "8.0.1",
3057
3109
  "expect-type": "1.2.2",
3058
3110
  "fs-extra": "11.3.0",
@@ -3077,6 +3129,7 @@ var package_default = {
3077
3129
  "simple-statistics": "7.8.8",
3078
3130
  "sort-keys": "5.1.0",
3079
3131
  "source-map-support": "0.5.21",
3132
+ "sql-template-tag": "5.2.1",
3080
3133
  "stacktrace-parser": "0.1.11",
3081
3134
  "strip-ansi": "7.1.0",
3082
3135
  "strip-indent": "4.0.0",
@@ -3087,12 +3140,9 @@ var package_default = {
3087
3140
  undici: "7.4.0",
3088
3141
  zx: "8.4.1"
3089
3142
  },
3090
- dependencies: {
3091
- "@prisma/client-runtime-utils": "workspace:*"
3092
- },
3093
3143
  peerDependencies: {
3094
3144
  prisma: "*",
3095
- typescript: ">=5.4.0"
3145
+ typescript: ">=5.1.0"
3096
3146
  },
3097
3147
  peerDependenciesMeta: {
3098
3148
  prisma: {
@@ -3137,7 +3187,7 @@ var Enum = class {
3137
3187
  toJS() {
3138
3188
  const { type } = this;
3139
3189
  const enumVariants = `{
3140
- ${(0, import_indent_string.default)(type.data.map((v) => `${v.key}: ${this.getValueJS(v.value)}`).join(",\n"), TAB_SIZE)}
3190
+ ${(0, import_indent_string.default)(type.values.map((v) => `${v}: ${this.getValueJS(v)}`).join(",\n"), TAB_SIZE)}
3141
3191
  }`;
3142
3192
  const enumBody = this.isStrictEnum() ? `makeStrictEnum(${enumVariants})` : enumVariants;
3143
3193
  return this.useNamespace ? `exports.Prisma.${type.name} = ${enumBody};` : `exports.${type.name} = exports.$Enums.${type.name} = ${enumBody};`;
@@ -3148,7 +3198,7 @@ ${(0, import_indent_string.default)(type.data.map((v) => `${v.key}: ${this.getVa
3148
3198
  toTS() {
3149
3199
  const { type } = this;
3150
3200
  return `export const ${type.name}: {
3151
- ${(0, import_indent_string.default)(type.data.map((v) => `${v.key}: ${this.getValueTS(v.value)}`).join(",\n"), TAB_SIZE)}
3201
+ ${(0, import_indent_string.default)(type.values.map((v) => `${v}: ${this.getValueTS(v)}`).join(",\n"), TAB_SIZE)}
3152
3202
  };
3153
3203
 
3154
3204
  export type ${type.name} = (typeof ${type.name})[keyof typeof ${type.name}]
@@ -4875,11 +4925,12 @@ function fluentWrapperName(modelName) {
4875
4925
 
4876
4926
  // src/TSClient/TSClient.ts
4877
4927
  var import_dmmf = require("@prisma/dmmf");
4878
- var import_internals6 = require("@prisma/internals");
4928
+ var import_internals7 = require("@prisma/internals");
4879
4929
  var ts12 = __toESM(require("@prisma/ts-builders"));
4880
4930
  var import_ci_info = __toESM(require("ci-info"));
4931
+ var import_crypto = __toESM(require("crypto"));
4881
4932
  var import_indent_string8 = __toESM(require("indent-string"));
4882
- var import_path = __toESM(require("path"));
4933
+ var import_path2 = __toESM(require("path"));
4883
4934
 
4884
4935
  // src/dmmf.ts
4885
4936
  var import_client_common10 = require("@prisma/client-common");
@@ -5074,12 +5125,44 @@ var GenericArgsInfo = class {
5074
5125
  }
5075
5126
  };
5076
5127
 
5128
+ // src/utils/buildInjectableEdgeEnv.ts
5129
+ function buildInjectableEdgeEnv(edge, datasources) {
5130
+ if (edge === true) {
5131
+ return declareInjectableEdgeEnv(datasources);
5132
+ }
5133
+ return ``;
5134
+ }
5135
+ function declareInjectableEdgeEnv(datasources) {
5136
+ const injectableEdgeEnv = { parsed: {} };
5137
+ const envVarNames = getSelectedEnvVarNames(datasources);
5138
+ for (const envVarName of envVarNames) {
5139
+ injectableEdgeEnv.parsed[envVarName] = getRuntimeEdgeEnvVar(envVarName);
5140
+ }
5141
+ const injectableEdgeEnvJson = JSON.stringify(injectableEdgeEnv, null, 2);
5142
+ const injectableEdgeEnvCode = injectableEdgeEnvJson.replace(/"/g, "");
5143
+ return `
5144
+ config.injectableEdgeEnv = () => (${injectableEdgeEnvCode})`;
5145
+ }
5146
+ function getSelectedEnvVarNames(datasources) {
5147
+ return datasources.reduce((acc, datasource) => {
5148
+ if (datasource.url.fromEnvVar) {
5149
+ return [...acc, datasource.url.fromEnvVar];
5150
+ }
5151
+ return acc;
5152
+ }, []);
5153
+ }
5154
+ function getRuntimeEdgeEnvVar(envVarName) {
5155
+ const cfwEnv = `typeof globalThis !== 'undefined' && globalThis['${envVarName}']`;
5156
+ const nodeOrVercelEnv = `typeof process !== 'undefined' && process.env && process.env.${envVarName}`;
5157
+ return `${cfwEnv} || ${nodeOrVercelEnv} || undefined`;
5158
+ }
5159
+
5077
5160
  // src/utils/buildDebugInitialization.ts
5078
5161
  function buildDebugInitialization(edge) {
5079
5162
  if (!edge) {
5080
5163
  return "";
5081
5164
  }
5082
- const debugVar = `typeof globalThis !== 'undefined' && globalThis['DEBUG'] || (typeof process !== 'undefined' && process.env && process.env.DEBUG) || undefined`;
5165
+ const debugVar = getRuntimeEdgeEnvVar("DEBUG");
5083
5166
  return `if (${debugVar}) {
5084
5167
  Debug.enable(${debugVar})
5085
5168
  }
@@ -5122,7 +5205,7 @@ var import_client_common12 = require("@prisma/client-common");
5122
5205
  function buildRuntimeDataModel(datamodel, runtimeNameJs) {
5123
5206
  const runtimeDataModel = (0, import_client_common12.dmmfToRuntimeDataModel)(datamodel);
5124
5207
  let prunedDataModel;
5125
- if (runtimeNameJs === "wasm-compiler-edge" || runtimeNameJs === "client") {
5208
+ if (runtimeNameJs === "wasm-engine-edge" || runtimeNameJs === "wasm-compiler-edge" || runtimeNameJs === "client") {
5126
5209
  prunedDataModel = (0, import_client_common12.pruneRuntimeDataModel)(runtimeDataModel);
5127
5210
  } else {
5128
5211
  prunedDataModel = runtimeDataModel;
@@ -5160,8 +5243,8 @@ function buildQueryCompilerWasmModule(forceEdgeWasmLoader, runtimeNameJs) {
5160
5243
  }
5161
5244
 
5162
5245
  // src/utils/buildGetQueryEngineWasmModule.ts
5163
- function buildQueryEngineWasmModule(runtimeNameJs) {
5164
- if (runtimeNameJs === "library" && process.env.PRISMA_CLIENT_FORCE_WASM) {
5246
+ function buildQueryEngineWasmModule(wasm, copyEngine, runtimeNameJs) {
5247
+ if (copyEngine && runtimeNameJs === "library" && process.env.PRISMA_CLIENT_FORCE_WASM) {
5165
5248
  return `config.engineWasm = {
5166
5249
  getRuntime: async () => require('./query_engine_bg.js'),
5167
5250
  getQueryEngineWasmModule: async () => {
@@ -5172,6 +5255,16 @@ function buildQueryEngineWasmModule(runtimeNameJs) {
5172
5255
  }
5173
5256
  }`;
5174
5257
  }
5258
+ if (copyEngine && wasm === true && runtimeNameJs === "wasm-engine-edge") {
5259
+ return `config.engineWasm = {
5260
+ getRuntime: async () => require('./query_engine_bg.js'),
5261
+ getQueryEngineWasmModule: async () => {
5262
+ const loader = (await import('#wasm-engine-loader')).default
5263
+ const engine = (await loader).default
5264
+ return engine
5265
+ }
5266
+ }`;
5267
+ }
5175
5268
  return `config.engineWasm = undefined`;
5176
5269
  }
5177
5270
 
@@ -5189,6 +5282,50 @@ function buildInlineDatasource(ds) {
5189
5282
  }
5190
5283
  }
5191
5284
 
5285
+ // src/utils/buildNFTAnnotations.ts
5286
+ var import_get_platform = require("@prisma/get-platform");
5287
+ var import_internals5 = require("@prisma/internals");
5288
+ var import_path = __toESM(require("path"));
5289
+ function buildNFTAnnotations(noEngine, engineType, binaryTargets, relativeOutdir) {
5290
+ if (noEngine === true) return "";
5291
+ if (binaryTargets === void 0) {
5292
+ return "";
5293
+ }
5294
+ if (process.env.NETLIFY) {
5295
+ const isNodeMajor20OrUp = parseInt(process.versions.node.split(".")[0]) >= 20;
5296
+ const awsRuntimeVersion = (0, import_internals5.parseAWSNodejsRuntimeEnvVarVersion)();
5297
+ const isRuntimeEnvVar20OrUp = awsRuntimeVersion && awsRuntimeVersion >= 20;
5298
+ const isRuntimeEnvVar18OrDown = awsRuntimeVersion && awsRuntimeVersion <= 18;
5299
+ if ((isNodeMajor20OrUp || isRuntimeEnvVar20OrUp) && !isRuntimeEnvVar18OrDown) {
5300
+ binaryTargets = ["rhel-openssl-3.0.x"];
5301
+ } else {
5302
+ binaryTargets = ["rhel-openssl-1.0.x"];
5303
+ }
5304
+ }
5305
+ const engineAnnotations = binaryTargets.map((binaryTarget) => {
5306
+ const engineFilename = getQueryEngineFilename(engineType, binaryTarget);
5307
+ return engineFilename ? buildNFTAnnotation(engineFilename, relativeOutdir) : "";
5308
+ }).join("\n");
5309
+ const schemaAnnotations = buildNFTAnnotation("schema.prisma", relativeOutdir);
5310
+ return `${engineAnnotations}${schemaAnnotations}`;
5311
+ }
5312
+ function getQueryEngineFilename(engineType, binaryTarget) {
5313
+ if (engineType === import_internals5.ClientEngineType.Library) {
5314
+ return (0, import_get_platform.getNodeAPIName)(binaryTarget, "fs");
5315
+ }
5316
+ if (engineType === import_internals5.ClientEngineType.Binary) {
5317
+ return `query-engine-${binaryTarget}`;
5318
+ }
5319
+ return void 0;
5320
+ }
5321
+ function buildNFTAnnotation(fileName, relativeOutdir) {
5322
+ const relativeFilePath = import_path.default.join(relativeOutdir, fileName);
5323
+ return `
5324
+ // file annotations for bundling tools to include these files
5325
+ path.join(__dirname, ${JSON.stringify((0, import_internals5.pathToPosix)(fileName))});
5326
+ path.join(process.cwd(), ${JSON.stringify((0, import_internals5.pathToPosix)(relativeFilePath))})`;
5327
+ }
5328
+
5192
5329
  // src/utils/buildRequirePath.ts
5193
5330
  function buildRequirePath(edge) {
5194
5331
  if (edge === true) return "";
@@ -5196,6 +5333,18 @@ function buildRequirePath(edge) {
5196
5333
  const path = require('path')`;
5197
5334
  }
5198
5335
 
5336
+ // src/utils/buildWarnEnvConflicts.ts
5337
+ function buildWarnEnvConflicts(edge, runtimeBase, runtimeNameJs) {
5338
+ if (edge === true) return "";
5339
+ return `
5340
+ const { warnEnvConflicts } = require('${runtimeBase}/${runtimeNameJs}.js')
5341
+
5342
+ warnEnvConflicts({
5343
+ rootEnvPath: config.relativeEnvPaths.rootEnvPath && path.resolve(config.dirname, config.relativeEnvPaths.rootEnvPath),
5344
+ schemaEnvPath: config.relativeEnvPaths.schemaEnvPath && path.resolve(config.dirname, config.relativeEnvPaths.schemaEnvPath)
5345
+ })`;
5346
+ }
5347
+
5199
5348
  // src/TSClient/common.ts
5200
5349
  var import_indent_string4 = __toESM(require("indent-string"));
5201
5350
  var commonCodeJS = ({
@@ -5210,10 +5359,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
5210
5359
  ${browser ? `
5211
5360
  const {
5212
5361
  Decimal,
5213
- DbNull,
5214
- JsonNull,
5215
- AnyNull,
5216
- NullTypes,
5362
+ objectEnumValues,
5217
5363
  makeStrictEnum,
5218
5364
  Public,
5219
5365
  getRuntime,
@@ -5234,10 +5380,7 @@ const {
5234
5380
  skip,
5235
5381
  Decimal,
5236
5382
  Debug,
5237
- DbNull,
5238
- JsonNull,
5239
- AnyNull,
5240
- NullTypes,
5383
+ objectEnumValues,
5241
5384
  makeStrictEnum,
5242
5385
  Extensions,
5243
5386
  warnOnce,
@@ -5287,11 +5430,15 @@ Prisma.defineExtension = ${notSupportOnBrowser("Extensions.defineExtension", bro
5287
5430
  /**
5288
5431
  * Shorthand utilities for JSON filtering
5289
5432
  */
5290
- Prisma.DbNull = DbNull
5291
- Prisma.JsonNull = JsonNull
5292
- Prisma.AnyNull = AnyNull
5433
+ Prisma.DbNull = objectEnumValues.instances.DbNull
5434
+ Prisma.JsonNull = objectEnumValues.instances.JsonNull
5435
+ Prisma.AnyNull = objectEnumValues.instances.AnyNull
5293
5436
 
5294
- Prisma.NullTypes = NullTypes
5437
+ Prisma.NullTypes = {
5438
+ DbNull: objectEnumValues.classes.DbNull,
5439
+ JsonNull: objectEnumValues.classes.JsonNull,
5440
+ AnyNull: objectEnumValues.classes.AnyNull
5441
+ }
5295
5442
 
5296
5443
  ${buildPrismaSkipJs(generator.previewFeatures)}
5297
5444
  `;
@@ -5357,6 +5504,14 @@ export import Decimal = runtime.Decimal
5357
5504
 
5358
5505
  export type DecimalJsLike = runtime.DecimalJsLike
5359
5506
 
5507
+ /**
5508
+ * Metrics
5509
+ */
5510
+ export type Metrics = runtime.Metrics
5511
+ export type Metric<T> = runtime.Metric<T>
5512
+ export type MetricHistogram = runtime.MetricHistogram
5513
+ export type MetricHistogramBucket = runtime.MetricHistogramBucket
5514
+
5360
5515
  /**
5361
5516
  * Extensions
5362
5517
  */
@@ -5850,12 +6005,15 @@ var GenerateContext = class {
5850
6005
 
5851
6006
  // src/TSClient/PrismaClient.ts
5852
6007
  var import_client_common15 = require("@prisma/client-common");
5853
- var import_internals5 = require("@prisma/internals");
6008
+ var import_internals6 = require("@prisma/internals");
5854
6009
  var ts11 = __toESM(require("@prisma/ts-builders"));
5855
6010
  var import_indent_string7 = __toESM(require("indent-string"));
5856
6011
 
5857
6012
  // src/utils/runtimeImport.ts
5858
6013
  var ts9 = __toESM(require("@prisma/ts-builders"));
6014
+ function runtimeImport(name) {
6015
+ return name;
6016
+ }
5859
6017
  function runtimeImportedType(name) {
5860
6018
  return ts9.namedType(`runtime.${name}`);
5861
6019
  }
@@ -5944,7 +6102,7 @@ function clientTypeMapModelsResultDefinition(modelName, action) {
5944
6102
  if (action === "update") return payloadToResult(modelName);
5945
6103
  if (action === "upsert") return payloadToResult(modelName);
5946
6104
  if (action === "delete") return payloadToResult(modelName);
5947
- (0, import_internals5.assertNever)(action, `Unknown action: ${action}`);
6105
+ (0, import_internals6.assertNever)(action, `Unknown action: ${action}`);
5948
6106
  }
5949
6107
  function payloadToResult(modelName) {
5950
6108
  return ts11.namedType("$Utils.PayloadToResult").addGenericArgument(ts11.namedType(getPayloadName(modelName)));
@@ -6124,6 +6282,24 @@ function queryRawTypedDefinition(context) {
6124
6282
  ).setReturnType(prismaPromise(ts11.array(param.toArgument())));
6125
6283
  return ts11.stringify(method3, { indentLevel: 1, newLine: "leading" });
6126
6284
  }
6285
+ function metricDefinition(context) {
6286
+ if (!context.isPreviewFeatureOn("metrics")) {
6287
+ return "";
6288
+ }
6289
+ const property11 = ts11.property("$metrics", ts11.namedType(`runtime.${runtimeImport("MetricsClient")}`)).setDocComment(
6290
+ ts11.docComment`
6291
+ Gives access to the client metrics in json or prometheus format.
6292
+
6293
+ @example
6294
+ \`\`\`
6295
+ const metrics = await prisma.$metrics.json()
6296
+ // or
6297
+ const metrics = await prisma.$metrics.prometheus()
6298
+ \`\`\`
6299
+ `
6300
+ ).readonly();
6301
+ return ts11.stringify(property11, { indentLevel: 1, newLine: "leading" });
6302
+ }
6127
6303
  function runCommandRawDefinition(context) {
6128
6304
  if (!context.dmmf.mappings.otherOperations.write.includes("runCommandRaw")) {
6129
6305
  return "";
@@ -6143,6 +6319,15 @@ function runCommandRawDefinition(context) {
6143
6319
  `);
6144
6320
  return ts11.stringify(method3, { indentLevel: 1, newLine: "leading" });
6145
6321
  }
6322
+ function applyPendingMigrationsDefinition() {
6323
+ if (this.runtimeNameTs !== "react-native") {
6324
+ return null;
6325
+ }
6326
+ const method3 = ts11.method("$applyPendingMigrations").setReturnType(promise(ts11.voidType)).setDocComment(
6327
+ ts11.docComment`Tries to apply pending migrations one by one. If a migration fails to apply, the function will stop and throw an error. You are responsible for informing the user and possibly blocking the app as we cannot guarantee the state of the database.`
6328
+ );
6329
+ return ts11.stringify(method3, { indentLevel: 1, newLine: "leading" });
6330
+ }
6146
6331
  function eventRegistrationMethodDeclaration(runtimeNameTs) {
6147
6332
  if (runtimeNameTs === "binary.js") {
6148
6333
  return `$on<V extends (U | 'beforeExit')>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : V extends 'beforeExit' ? () => $Utils.JsPromise<void> : Prisma.LogEvent) => void): PrismaClient;`;
@@ -6216,6 +6401,8 @@ ${[
6216
6401
  batchingTransactionDefinition(this.context),
6217
6402
  interactiveTransactionDefinition(this.context),
6218
6403
  runCommandRawDefinition(this.context),
6404
+ metricDefinition(this.context),
6405
+ applyPendingMigrationsDefinition.bind(this)(),
6219
6406
  extendsPropertyDefinition()
6220
6407
  ].filter((d) => d !== null).join("\n").trim()}
6221
6408
 
@@ -6317,6 +6504,8 @@ export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClie
6317
6504
  buildClientOptions() {
6318
6505
  const clientOptions = ts11.interfaceDeclaration("PrismaClientOptions").add(
6319
6506
  ts11.property("datasources", ts11.namedType("Datasources")).optional().setDocComment(ts11.docComment("Overwrites the datasource url from your schema.prisma file"))
6507
+ ).add(
6508
+ ts11.property("datasourceUrl", ts11.stringType).optional().setDocComment(ts11.docComment("Overwrites the datasource url from your schema.prisma file"))
6320
6509
  ).add(
6321
6510
  ts11.property("errorFormat", ts11.namedType("ErrorFormat")).optional().setDocComment(ts11.docComment('@default "colorless"'))
6322
6511
  ).add(
@@ -6359,18 +6548,11 @@ export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClie
6359
6548
  if (["library.js", "client.js"].includes(this.runtimeNameTs) && // We don't support a custom adapter with MongoDB for now.
6360
6549
  this.internalDatasources.some((d) => d.provider !== "mongodb")) {
6361
6550
  clientOptions.add(
6362
- ts11.property("adapter", ts11.namedType("runtime.SqlDriverAdapterFactory")).optional().setDocComment(
6551
+ ts11.property("adapter", ts11.unionType([ts11.namedType("runtime.SqlDriverAdapterFactory"), ts11.namedType("null")])).optional().setDocComment(
6363
6552
  ts11.docComment("Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`")
6364
6553
  )
6365
6554
  );
6366
6555
  }
6367
- clientOptions.add(
6368
- ts11.property("accelerateUrl", ts11.stringType).optional().setDocComment(
6369
- ts11.docComment(
6370
- "Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database."
6371
- )
6372
- )
6373
- );
6374
6556
  clientOptions.add(
6375
6557
  ts11.property("omit", ts11.namedType("Prisma.GlobalOmitConfig")).optional().setDocComment(ts11.docComment`
6376
6558
  Global configuration for omitting model fields by default.
@@ -6404,20 +6586,33 @@ var TSClient = class {
6404
6586
  const {
6405
6587
  edge,
6406
6588
  wasm,
6589
+ binaryPaths,
6407
6590
  generator,
6408
6591
  outputDir,
6409
6592
  datamodel: inlineSchema,
6593
+ runtimeBase,
6410
6594
  runtimeNameJs,
6411
6595
  datasources,
6412
- reusedJs
6596
+ copyEngine = true,
6597
+ reusedJs,
6598
+ envPaths
6413
6599
  } = this.options;
6414
6600
  if (reusedJs) {
6415
6601
  return `module.exports = { ...require('${reusedJs}') }`;
6416
6602
  }
6603
+ const relativeEnvPaths = {
6604
+ rootEnvPath: envPaths.rootEnvPath && (0, import_internals7.pathToPosix)(import_path2.default.relative(outputDir, envPaths.rootEnvPath)),
6605
+ schemaEnvPath: envPaths.schemaEnvPath && (0, import_internals7.pathToPosix)(import_path2.default.relative(outputDir, envPaths.schemaEnvPath))
6606
+ };
6607
+ const clientEngineType = (0, import_internals7.getClientEngineType)(generator);
6608
+ generator.config.engineType = clientEngineType;
6609
+ const binaryTargets = clientEngineType === import_internals7.ClientEngineType.Library ? Object.keys(binaryPaths.libqueryEngine ?? {}) : Object.keys(binaryPaths.queryEngine ?? {});
6610
+ const inlineSchemaHash = import_crypto.default.createHash("sha256").update(Buffer.from(inlineSchema, "utf8").toString("base64")).digest("hex");
6417
6611
  const datasourceFilePath = datasources[0].sourceFilePath;
6418
6612
  const config = {
6419
6613
  generator,
6420
- relativePath: (0, import_internals6.pathToPosix)(import_path.default.relative(outputDir, import_path.default.dirname(datasourceFilePath))),
6614
+ relativeEnvPaths,
6615
+ relativePath: (0, import_internals7.pathToPosix)(import_path2.default.relative(outputDir, import_path2.default.dirname(datasourceFilePath))),
6421
6616
  clientVersion: this.options.clientVersion,
6422
6617
  engineVersion: this.options.engineVersion,
6423
6618
  datasourceNames: datasources.map((d) => d.name),
@@ -6425,25 +6620,24 @@ var TSClient = class {
6425
6620
  postinstall: this.options.postinstall,
6426
6621
  ciName: import_ci_info.default.name ?? void 0,
6427
6622
  inlineDatasources: buildInlineDatasources(datasources),
6428
- inlineSchema
6623
+ inlineSchema,
6624
+ inlineSchemaHash,
6625
+ copyEngine
6429
6626
  };
6430
- const relativeOutdir = import_path.default.relative(process.cwd(), outputDir);
6627
+ const relativeOutdir = import_path2.default.relative(process.cwd(), outputDir);
6431
6628
  const code = `${commonCodeJS({ ...this.options, browser: false })}
6432
6629
  ${buildRequirePath(edge)}
6433
6630
 
6434
6631
  /**
6435
6632
  * Enums
6436
6633
  */
6437
- ${this.dmmf.schema.enumTypes.prisma?.map((type) => new Enum((0, import_dmmf.datamodelSchemaEnumToSchemaEnum)(type), true).toJS()).join("\n\n")}
6634
+ ${this.dmmf.schema.enumTypes.prisma?.map((type) => new Enum(type, true).toJS()).join("\n\n")}
6438
6635
  ${this.dmmf.datamodel.enums.map((datamodelEnum) => new Enum((0, import_dmmf.datamodelEnumToSchemaEnum)(datamodelEnum), false).toJS()).join("\n\n")}
6439
6636
 
6440
6637
  ${new Enum(
6441
6638
  {
6442
6639
  name: "ModelName",
6443
- data: this.dmmf.mappings.modelOperations.map((m) => ({
6444
- key: m.model,
6445
- value: m.model
6446
- }))
6640
+ values: this.dmmf.mappings.modelOperations.map((m) => m.model)
6447
6641
  },
6448
6642
  true
6449
6643
  ).toJS()}
@@ -6453,12 +6647,15 @@ ${new Enum(
6453
6647
  const config = ${JSON.stringify(config, null, 2)}
6454
6648
  ${buildDirname(edge, relativeOutdir)}
6455
6649
  ${buildRuntimeDataModel(this.dmmf.datamodel, runtimeNameJs)}
6456
- ${buildQueryEngineWasmModule(runtimeNameJs)}
6650
+ ${buildQueryEngineWasmModule(wasm, copyEngine, runtimeNameJs)}
6457
6651
  ${buildQueryCompilerWasmModule(wasm, runtimeNameJs)}
6652
+ ${buildInjectableEdgeEnv(edge, datasources)}
6653
+ ${buildWarnEnvConflicts(edge, runtimeBase, runtimeNameJs)}
6458
6654
  ${buildDebugInitialization(edge)}
6459
6655
  const PrismaClient = getPrismaClient(config)
6460
6656
  exports.PrismaClient = PrismaClient
6461
6657
  Object.assign(exports, Prisma)
6658
+ ${buildNFTAnnotations(edge || !copyEngine, clientEngineType, binaryTargets, relativeOutdir)}
6462
6659
  `;
6463
6660
  return code;
6464
6661
  }
@@ -6487,9 +6684,7 @@ Object.assign(exports, Prisma)
6487
6684
  }
6488
6685
  return acc;
6489
6686
  }, []);
6490
- const prismaEnums = this.dmmf.schema.enumTypes.prisma?.map(
6491
- (type) => new Enum((0, import_dmmf.datamodelSchemaEnumToSchemaEnum)(type), true).toTS()
6492
- );
6687
+ const prismaEnums = this.dmmf.schema.enumTypes.prisma?.map((type) => new Enum(type, true).toTS());
6493
6688
  const modelEnums = [];
6494
6689
  const modelEnumsAliases = [];
6495
6690
  for (const datamodelEnum of this.dmmf.datamodel.enums) {
@@ -6531,10 +6726,7 @@ ${(0, import_indent_string8.default)(
6531
6726
  ${new Enum(
6532
6727
  {
6533
6728
  name: "ModelName",
6534
- data: this.dmmf.mappings.modelOperations.map((m) => ({
6535
- key: m.model,
6536
- value: m.model
6537
- }))
6729
+ values: this.dmmf.mappings.modelOperations.map((m) => m.model)
6538
6730
  },
6539
6731
  true
6540
6732
  ).toTS()}
@@ -6618,16 +6810,13 @@ export const dmmf: runtime.BaseDMMF
6618
6810
  * Enums
6619
6811
  */
6620
6812
 
6621
- ${this.dmmf.schema.enumTypes.prisma?.map((type) => new Enum((0, import_dmmf.datamodelSchemaEnumToSchemaEnum)(type), true).toJS()).join("\n\n")}
6622
- ${this.dmmf.schema.enumTypes.model?.map((type) => new Enum((0, import_dmmf.datamodelSchemaEnumToSchemaEnum)(type), false).toJS()).join("\n\n") ?? ""}
6813
+ ${this.dmmf.schema.enumTypes.prisma?.map((type) => new Enum(type, true).toJS()).join("\n\n")}
6814
+ ${this.dmmf.schema.enumTypes.model?.map((type) => new Enum(type, false).toJS()).join("\n\n") ?? ""}
6623
6815
 
6624
6816
  ${new Enum(
6625
6817
  {
6626
6818
  name: "ModelName",
6627
- data: this.dmmf.mappings.modelOperations.map((m) => ({
6628
- key: m.model,
6629
- value: m.model
6630
- }))
6819
+ values: this.dmmf.mappings.modelOperations.map((m) => m.model)
6631
6820
  },
6632
6821
  true
6633
6822
  ).toJS()}
@@ -6668,7 +6857,7 @@ Object.assign(exports, Prisma)
6668
6857
  };
6669
6858
 
6670
6859
  // src/typedSql/buildDbEnums.ts
6671
- var import_internals7 = require("@prisma/internals");
6860
+ var import_internals8 = require("@prisma/internals");
6672
6861
  var ts13 = __toESM(require("@prisma/ts-builders"));
6673
6862
  var DbEnumsList = class {
6674
6863
  enums;
@@ -6686,14 +6875,14 @@ var DbEnumsList = class {
6686
6875
  }
6687
6876
  *validJsIdentifiers() {
6688
6877
  for (const dbEnum of this.enums) {
6689
- if ((0, import_internals7.isValidJsIdentifier)(dbEnum.name)) {
6878
+ if ((0, import_internals8.isValidJsIdentifier)(dbEnum.name)) {
6690
6879
  yield dbEnum;
6691
6880
  }
6692
6881
  }
6693
6882
  }
6694
6883
  *invalidJsIdentifiers() {
6695
6884
  for (const dbEnum of this.enums) {
6696
- if (!(0, import_internals7.isValidJsIdentifier)(dbEnum.name)) {
6885
+ if (!(0, import_internals8.isValidJsIdentifier)(dbEnum.name)) {
6697
6886
  yield dbEnum;
6698
6887
  }
6699
6888
  }
@@ -6765,7 +6954,7 @@ var ts16 = __toESM(require("@prisma/ts-builders"));
6765
6954
  var import_ts_builders3 = require("@prisma/ts-builders");
6766
6955
 
6767
6956
  // src/typedSql/mapTypes.ts
6768
- var import_internals8 = require("@prisma/internals");
6957
+ var import_internals9 = require("@prisma/internals");
6769
6958
  var ts15 = __toESM(require("@prisma/ts-builders"));
6770
6959
  var decimal = ts15.namedType("$runtime.Decimal");
6771
6960
  var uint8Array = ts15.namedType("$runtime.Bytes");
@@ -6859,7 +7048,7 @@ function getMappingConfig(introspectionType, enums) {
6859
7048
  return config;
6860
7049
  }
6861
7050
  function getEnumType(name) {
6862
- if ((0, import_internals8.isValidJsIdentifier)(name)) {
7051
+ if ((0, import_internals9.isValidJsIdentifier)(name)) {
6863
7052
  return ts15.namedType(`$DbEnums.${name}`);
6864
7053
  }
6865
7054
  return ts15.namedType("$DbEnums").subKey(name);
@@ -6965,13 +7154,14 @@ function addPreamble(fileContent) {
6965
7154
  }
6966
7155
 
6967
7156
  // src/generateClient.ts
7157
+ var debug = (0, import_debug.Debug)("prisma:client:generateClient");
6968
7158
  var DenylistError = class extends Error {
6969
7159
  constructor(message) {
6970
7160
  super(message);
6971
7161
  this.stack = void 0;
6972
7162
  }
6973
7163
  };
6974
- (0, import_internals9.setClassName)(DenylistError, "DenylistError");
7164
+ (0, import_internals10.setClassName)(DenylistError, "DenylistError");
6975
7165
  async function buildClient({
6976
7166
  schemaPath,
6977
7167
  runtimeBase,
@@ -6986,10 +7176,14 @@ async function buildClient({
6986
7176
  clientVersion,
6987
7177
  activeProvider,
6988
7178
  postinstall,
7179
+ copyEngine,
7180
+ envPaths,
6989
7181
  typedSql
6990
7182
  }) {
7183
+ const clientEngineType = (0, import_internals10.getClientEngineType)(generator);
6991
7184
  const baseClientOptions = {
6992
7185
  dmmf: getPrismaClientDMMF(dmmf),
7186
+ envPaths: envPaths ?? { rootEnvPath: null, schemaEnvPath: void 0 },
6993
7187
  datasources,
6994
7188
  generator,
6995
7189
  binaryPaths,
@@ -7001,6 +7195,7 @@ async function buildClient({
7001
7195
  engineVersion,
7002
7196
  activeProvider,
7003
7197
  postinstall,
7198
+ copyEngine,
7004
7199
  datamodel,
7005
7200
  browser: false,
7006
7201
  edge: false,
@@ -7008,8 +7203,8 @@ async function buildClient({
7008
7203
  };
7009
7204
  const nodeClientOptions = {
7010
7205
  ...baseClientOptions,
7011
- runtimeNameJs: "client",
7012
- runtimeNameTs: "client.js"
7206
+ runtimeNameJs: getNodeRuntimeName(clientEngineType),
7207
+ runtimeNameTs: `${getNodeRuntimeName(clientEngineType)}.js`
7013
7208
  };
7014
7209
  const nodeClient = new TSClient(nodeClientOptions);
7015
7210
  const defaultClient = new TSClient({
@@ -7017,6 +7212,19 @@ async function buildClient({
7017
7212
  reusedTs: "index",
7018
7213
  reusedJs: "."
7019
7214
  });
7215
+ const edgeClient = new TSClient({
7216
+ ...baseClientOptions,
7217
+ runtimeNameJs: "edge",
7218
+ runtimeNameTs: "library.js",
7219
+ reusedTs: "default",
7220
+ edge: true
7221
+ });
7222
+ const rnTsClient = new TSClient({
7223
+ ...baseClientOptions,
7224
+ runtimeNameJs: "react-native",
7225
+ runtimeNameTs: "react-native",
7226
+ edge: true
7227
+ });
7020
7228
  const trampolineTsClient = new TSClient({
7021
7229
  ...nodeClientOptions,
7022
7230
  reusedTs: "index",
@@ -7050,10 +7258,7 @@ async function buildClient({
7050
7258
  ".": exportsMapDefault
7051
7259
  },
7052
7260
  version: clientVersion,
7053
- sideEffects: false,
7054
- dependencies: {
7055
- "@prisma/client-runtime-utils": clientVersion
7056
- }
7261
+ sideEffects: false
7057
7262
  };
7058
7263
  const fileMap = {};
7059
7264
  fileMap["index.js"] = JS(nodeClient);
@@ -7061,16 +7266,28 @@ async function buildClient({
7061
7266
  fileMap["default.js"] = JS(defaultClient);
7062
7267
  fileMap["default.d.ts"] = TS(defaultClient);
7063
7268
  fileMap["index-browser.js"] = BrowserJS(nodeClient);
7269
+ fileMap["edge.js"] = JS(edgeClient);
7270
+ fileMap["edge.d.ts"] = TS(edgeClient);
7064
7271
  fileMap["client.js"] = JS(defaultClient);
7065
7272
  fileMap["client.d.ts"] = TS(defaultClient);
7273
+ if (generator.previewFeatures.includes("reactNative")) {
7274
+ fileMap["react-native.js"] = JS(rnTsClient);
7275
+ fileMap["react-native.d.ts"] = TS(rnTsClient);
7276
+ }
7277
+ const usesClientEngine = clientEngineType === import_internals10.ClientEngineType.Client;
7066
7278
  fileMap["default.js"] = JS(trampolineTsClient);
7067
7279
  fileMap["default.d.ts"] = TS(trampolineTsClient);
7068
- fileMap["wasm-worker-loader.mjs"] = `export default import('./query_compiler_bg.wasm')`;
7069
- fileMap["wasm-edge-light-loader.mjs"] = `export default import('./query_compiler_bg.wasm?module')`;
7280
+ if (usesClientEngine) {
7281
+ fileMap["wasm-worker-loader.mjs"] = `export default import('./query_compiler_bg.wasm')`;
7282
+ fileMap["wasm-edge-light-loader.mjs"] = `export default import('./query_compiler_bg.wasm?module')`;
7283
+ } else {
7284
+ fileMap["wasm-worker-loader.mjs"] = `export default import('./query_engine_bg.wasm')`;
7285
+ fileMap["wasm-edge-light-loader.mjs"] = `export default import('./query_engine_bg.wasm?module')`;
7286
+ }
7070
7287
  pkgJson["browser"] = "default.js";
7071
7288
  pkgJson["imports"] = {
7072
- // when `import('#wasm-compiler-loader')` is called, it will be resolved to the correct file
7073
- "#wasm-compiler-loader": {
7289
+ // when `import('#wasm-engine-loader')` or `import('#wasm-compiler-loader')` is called, it will be resolved to the correct file
7290
+ [usesClientEngine ? "#wasm-compiler-loader" : "#wasm-engine-loader"]: {
7074
7291
  // Keys reference: https://runtime-keys.proposal.wintercg.org/#keys
7075
7292
  /**
7076
7293
  * Vercel Edge Functions / Next.js Middlewares
@@ -7095,7 +7312,7 @@ async function buildClient({
7095
7312
  };
7096
7313
  const wasmClient = new TSClient({
7097
7314
  ...baseClientOptions,
7098
- runtimeNameJs: "wasm-compiler-edge",
7315
+ runtimeNameJs: usesClientEngine ? "wasm-compiler-edge" : "wasm-engine-edge",
7099
7316
  runtimeNameTs: "library.js",
7100
7317
  reusedTs: "default",
7101
7318
  edge: true,
@@ -7104,7 +7321,7 @@ async function buildClient({
7104
7321
  fileMap["wasm.js"] = JS(wasmClient);
7105
7322
  fileMap["wasm.d.ts"] = TS(wasmClient);
7106
7323
  if (typedSql && typedSql.length > 0) {
7107
- const edgeRuntimeName = "wasm-compiler-edge";
7324
+ const edgeRuntimeName = usesClientEngine ? "wasm-compiler-edge" : "edge";
7108
7325
  const cjsEdgeIndex = `./sql/index.${edgeRuntimeName}.js`;
7109
7326
  const esmEdgeIndex = `./sql/index.${edgeRuntimeName}.mjs`;
7110
7327
  pkgJson.exports["./sql"] = {
@@ -7129,7 +7346,7 @@ async function buildClient({
7129
7346
  fileMap["sql"] = buildTypedSql({
7130
7347
  dmmf,
7131
7348
  runtimeBase: getTypedSqlRuntimeBase(runtimeBase),
7132
- mainRuntimeName: "client",
7349
+ mainRuntimeName: getNodeRuntimeName(clientEngineType),
7133
7350
  queries: typedSql,
7134
7351
  edgeRuntimeName
7135
7352
  });
@@ -7153,19 +7370,19 @@ function getTypedSqlRuntimeBase(runtimeBase) {
7153
7370
  return `../${runtimeBase}`;
7154
7371
  }
7155
7372
  async function getDefaultOutdir(outputDir) {
7156
- if (outputDir.endsWith(import_path2.default.normalize("node_modules/@prisma/client"))) {
7157
- return import_path2.default.join(outputDir, "../../.prisma/client");
7373
+ if (outputDir.endsWith(import_path3.default.normalize("node_modules/@prisma/client"))) {
7374
+ return import_path3.default.join(outputDir, "../../.prisma/client");
7158
7375
  }
7159
7376
  if (process.env.INIT_CWD && process.env.npm_lifecycle_event === "postinstall" && !process.env.PWD?.includes(".pnpm")) {
7160
- if ((0, import_fs.existsSync)(import_path2.default.join(process.env.INIT_CWD, "package.json"))) {
7161
- return import_path2.default.join(process.env.INIT_CWD, "node_modules/.prisma/client");
7377
+ if ((0, import_fs.existsSync)(import_path3.default.join(process.env.INIT_CWD, "package.json"))) {
7378
+ return import_path3.default.join(process.env.INIT_CWD, "node_modules/.prisma/client");
7162
7379
  }
7163
7380
  const packagePath = await (0, import_package_up.packageUp)({ cwd: process.env.INIT_CWD });
7164
7381
  if (packagePath) {
7165
- return import_path2.default.join(import_path2.default.dirname(packagePath), "node_modules/.prisma/client");
7382
+ return import_path3.default.join(import_path3.default.dirname(packagePath), "node_modules/.prisma/client");
7166
7383
  }
7167
7384
  }
7168
- return import_path2.default.join(outputDir, "../../.prisma/client");
7385
+ return import_path3.default.join(outputDir, "../../.prisma/client");
7169
7386
  }
7170
7387
  async function generateClient(options) {
7171
7388
  const {
@@ -7183,8 +7400,11 @@ async function generateClient(options) {
7183
7400
  engineVersion,
7184
7401
  activeProvider,
7185
7402
  postinstall,
7403
+ envPaths,
7404
+ copyEngine = true,
7186
7405
  typedSql
7187
7406
  } = options;
7407
+ const clientEngineType = (0, import_internals10.getClientEngineType)(generator);
7188
7408
  const { runtimeBase, outputDir } = await getGenerationDirs(options);
7189
7409
  const { prismaClientDmmf, fileMap } = await buildClient({
7190
7410
  datamodel,
@@ -7200,7 +7420,9 @@ async function generateClient(options) {
7200
7420
  engineVersion,
7201
7421
  activeProvider,
7202
7422
  postinstall,
7423
+ copyEngine,
7203
7424
  testMode,
7425
+ envPaths,
7204
7426
  typedSql
7205
7427
  });
7206
7428
  const provider = datasources[0].provider;
@@ -7217,31 +7439,51 @@ async function generateClient(options) {
7217
7439
  To learn more about how to rename models, check out https://pris.ly/d/naming-models`;
7218
7440
  throw new DenylistError(message);
7219
7441
  }
7442
+ if (!copyEngine) {
7443
+ await deleteOutputDir(outputDir);
7444
+ }
7220
7445
  await (0, import_fs_extra.ensureDir)(outputDir);
7221
7446
  await writeFileMap(outputDir, fileMap);
7222
7447
  if (copyRuntime || generator.isCustomOutput === true) {
7223
- const copiedRuntimeDir = import_path2.default.join(outputDir, "runtime");
7448
+ const copiedRuntimeDir = import_path3.default.join(outputDir, "runtime");
7224
7449
  await (0, import_fs_extra.ensureDir)(copiedRuntimeDir);
7225
7450
  await copyRuntimeFiles({
7226
7451
  from: runtimeSourcePath,
7227
7452
  to: copiedRuntimeDir,
7228
7453
  sourceMaps: copyRuntimeSourceMaps,
7229
- runtimeName: "client"
7454
+ runtimeName: getNodeRuntimeName(clientEngineType)
7230
7455
  });
7231
7456
  }
7232
- const schemaTargetPath = import_path2.default.join(outputDir, "schema.prisma");
7457
+ const enginePath = clientEngineType === import_internals10.ClientEngineType.Library ? binaryPaths.libqueryEngine : binaryPaths.queryEngine;
7458
+ if (copyEngine && enginePath) {
7459
+ if (process.env.NETLIFY) {
7460
+ await (0, import_fs_extra.ensureDir)("/tmp/prisma-engines");
7461
+ }
7462
+ for (const [binaryTarget, filePath] of Object.entries(enginePath)) {
7463
+ const fileName = import_path3.default.basename(filePath);
7464
+ let target;
7465
+ if (process.env.NETLIFY && !["rhel-openssl-1.0.x", "rhel-openssl-3.0.x"].includes(binaryTarget)) {
7466
+ target = import_path3.default.join("/tmp/prisma-engines", fileName);
7467
+ } else {
7468
+ target = import_path3.default.join(outputDir, fileName);
7469
+ }
7470
+ await (0, import_fetch_engine.overwriteFile)(filePath, target);
7471
+ }
7472
+ }
7473
+ const schemaTargetPath = import_path3.default.join(outputDir, "schema.prisma");
7233
7474
  await import_promises.default.writeFile(schemaTargetPath, datamodel, { encoding: "utf-8" });
7234
- if (isWasmEngineSupported(provider) && !testMode) {
7475
+ const runtimeNeedsWasmEngine = clientEngineType === import_internals10.ClientEngineType.Client || copyEngine;
7476
+ if (runtimeNeedsWasmEngine && isWasmEngineSupported(provider) && !testMode) {
7235
7477
  const suffix = provider === "postgres" ? "postgresql" : provider;
7236
- const filename = "query_compiler_bg";
7237
- const wasmJsBundlePath = import_path2.default.join(runtimeSourcePath, `${filename}.${suffix}.wasm-base64.js`);
7478
+ const filename = clientEngineType === import_internals10.ClientEngineType.Client ? "query_compiler_bg" : "query_engine_bg";
7479
+ const wasmJsBundlePath = import_path3.default.join(runtimeSourcePath, `${filename}.${suffix}.wasm-base64.js`);
7238
7480
  const wasmBase64 = require(wasmJsBundlePath).wasm;
7239
- await import_promises.default.writeFile(import_path2.default.join(outputDir, `${filename}.wasm`), Buffer.from(wasmBase64, "base64"));
7240
- await import_promises.default.copyFile(import_path2.default.join(runtimeSourcePath, `${filename}.${suffix}.js`), import_path2.default.join(outputDir, `${filename}.js`));
7481
+ await import_promises.default.writeFile(import_path3.default.join(outputDir, `${filename}.wasm`), Buffer.from(wasmBase64, "base64"));
7482
+ await import_promises.default.copyFile(import_path3.default.join(runtimeSourcePath, `${filename}.${suffix}.js`), import_path3.default.join(outputDir, `${filename}.js`));
7241
7483
  }
7242
7484
  try {
7243
7485
  const prismaCache = (0, import_env_paths.default)("prisma").cache;
7244
- const signalsPath = import_path2.default.join(prismaCache, "last-generate");
7486
+ const signalsPath = import_path3.default.join(prismaCache, "last-generate");
7245
7487
  await import_promises.default.mkdir(prismaCache, { recursive: true });
7246
7488
  await import_promises.default.writeFile(signalsPath, Date.now().toString());
7247
7489
  } catch {
@@ -7250,7 +7492,7 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
7250
7492
  function writeFileMap(outputDir, fileMap) {
7251
7493
  return Promise.all(
7252
7494
  Object.entries(fileMap).map(async ([fileName, content]) => {
7253
- const absolutePath = import_path2.default.join(outputDir, fileName);
7495
+ const absolutePath = import_path3.default.join(outputDir, fileName);
7254
7496
  await import_promises.default.rm(absolutePath, { recursive: true, force: true });
7255
7497
  if (typeof content === "string") {
7256
7498
  await import_promises.default.writeFile(absolutePath, content);
@@ -7350,18 +7592,18 @@ async function getGenerationDirs({
7350
7592
  testMode
7351
7593
  }) {
7352
7594
  const isCustomOutput = generator.isCustomOutput === true;
7353
- const normalizedOutputDir = import_path2.default.normalize(outputDir);
7595
+ const normalizedOutputDir = import_path3.default.normalize(outputDir);
7354
7596
  let userRuntimeImport = isCustomOutput ? "./runtime" : "@prisma/client/runtime";
7355
7597
  let userOutputDir = isCustomOutput ? normalizedOutputDir : await getDefaultOutdir(normalizedOutputDir);
7356
7598
  if (testMode && runtimeBase) {
7357
7599
  userOutputDir = outputDir;
7358
- userRuntimeImport = (0, import_internals9.pathToPosix)(runtimeBase);
7600
+ userRuntimeImport = (0, import_internals10.pathToPosix)(runtimeBase);
7359
7601
  }
7360
7602
  if (isCustomOutput) {
7361
7603
  await verifyOutputDirectory(userOutputDir, datamodel, schemaPath);
7362
7604
  }
7363
- const userPackageRoot = await (0, import_package_up.packageUp)({ cwd: import_path2.default.dirname(userOutputDir) });
7364
- const userProjectRoot = userPackageRoot ? import_path2.default.dirname(userPackageRoot) : process.cwd();
7605
+ const userPackageRoot = await (0, import_package_up.packageUp)({ cwd: import_path3.default.dirname(userOutputDir) });
7606
+ const userProjectRoot = userPackageRoot ? import_path3.default.dirname(userPackageRoot) : process.cwd();
7365
7607
  return {
7366
7608
  runtimeBase: userRuntimeImport,
7367
7609
  outputDir: userOutputDir,
@@ -7371,7 +7613,7 @@ async function getGenerationDirs({
7371
7613
  async function verifyOutputDirectory(directory, datamodel, schemaPath) {
7372
7614
  let content;
7373
7615
  try {
7374
- content = await import_promises.default.readFile(import_path2.default.join(directory, "package.json"), "utf8");
7616
+ content = await import_promises.default.readFile(import_path3.default.join(directory, "package.json"), "utf8");
7375
7617
  } catch (e) {
7376
7618
  if (e.code === "ENOENT") {
7377
7619
  return;
@@ -7414,17 +7656,43 @@ function findOutputPathDeclaration(datamodel) {
7414
7656
  }
7415
7657
  return null;
7416
7658
  }
7659
+ function getNodeRuntimeName(engineType) {
7660
+ if (engineType === import_internals10.ClientEngineType.Binary) {
7661
+ return "binary";
7662
+ }
7663
+ if (engineType === import_internals10.ClientEngineType.Library) {
7664
+ return "library";
7665
+ }
7666
+ if (engineType === import_internals10.ClientEngineType.Client) {
7667
+ return "client";
7668
+ }
7669
+ (0, import_internals10.assertNever)(engineType, "Unknown engine type");
7670
+ }
7417
7671
  async function copyRuntimeFiles({ from, to, runtimeName, sourceMaps }) {
7418
- const files = ["index-browser.js", "index-browser.d.ts", "wasm-compiler-edge.js"];
7672
+ const files = [
7673
+ // library.d.ts is always included, as it contains the actual runtime type
7674
+ // definitions. Rest of the `runtime.d.ts` files just re-export everything
7675
+ // from `library.d.ts`
7676
+ "library.d.ts",
7677
+ "index-browser.js",
7678
+ "index-browser.d.ts",
7679
+ "edge.js",
7680
+ "edge-esm.js",
7681
+ "react-native.js",
7682
+ "wasm-engine-edge.js",
7683
+ "wasm-compiler-edge.js"
7684
+ ];
7419
7685
  files.push(`${runtimeName}.js`);
7420
- files.push(`${runtimeName}.d.ts`);
7686
+ if (runtimeName !== "library") {
7687
+ files.push(`${runtimeName}.d.ts`);
7688
+ }
7421
7689
  if (sourceMaps) {
7422
7690
  files.push(...files.filter((file4) => file4.endsWith(".js")).map((file4) => `${file4}.map`));
7423
7691
  }
7424
7692
  await Promise.all(
7425
7693
  files.map(async (file4) => {
7426
- const sourcePath = import_path2.default.join(from, file4);
7427
- const targetPath = import_path2.default.join(to, file4);
7694
+ const sourcePath = import_path3.default.join(from, file4);
7695
+ const targetPath = import_path3.default.join(to, file4);
7428
7696
  if (file4.endsWith(".js")) {
7429
7697
  const content = await import_promises.default.readFile(sourcePath, "utf-8");
7430
7698
  await import_promises.default.writeFile(targetPath, addPreamble(content));
@@ -7434,8 +7702,20 @@ async function copyRuntimeFiles({ from, to, runtimeName, sourceMaps }) {
7434
7702
  })
7435
7703
  );
7436
7704
  }
7705
+ async function deleteOutputDir(outputDir) {
7706
+ try {
7707
+ debug(`attempting to delete ${outputDir} recursively`);
7708
+ if (require(`${outputDir}/package.json`).name?.startsWith(GENERATED_PACKAGE_NAME_PREFIX)) {
7709
+ await import_promises.default.rmdir(outputDir, { recursive: true }).catch(() => {
7710
+ debug(`failed to delete ${outputDir} recursively`);
7711
+ });
7712
+ }
7713
+ } catch {
7714
+ debug(`failed to delete ${outputDir} recursively, not found`);
7715
+ }
7716
+ }
7437
7717
  function getUniquePackageName(datamodel) {
7438
- const hash = (0, import_crypto.createHash)("sha256");
7718
+ const hash = (0, import_crypto2.createHash)("sha256");
7439
7719
  hash.write(datamodel);
7440
7720
  return `${GENERATED_PACKAGE_NAME_PREFIX}${hash.digest().toString("hex")}`;
7441
7721
  }
@@ -7443,18 +7723,20 @@ var GENERATED_PACKAGE_NAME_PREFIX = "prisma-client-";
7443
7723
 
7444
7724
  // src/generator.ts
7445
7725
  var import_node_path4 = __toESM(require("node:path"));
7726
+ var import_debug3 = require("@prisma/debug");
7446
7727
  var import_engines_version = require("@prisma/engines-version");
7447
- var import_internals11 = require("@prisma/internals");
7728
+ var import_internals12 = require("@prisma/internals");
7729
+ var import_ts_pattern = require("ts-pattern");
7448
7730
 
7449
7731
  // package.json
7450
- var version = "6.19.0-integration-next.22";
7732
+ var version = "6.20.0-dev.1";
7451
7733
 
7452
7734
  // src/resolvePrismaClient.ts
7453
7735
  var import_promises3 = __toESM(require("node:fs/promises"));
7454
7736
  var import_node_path3 = __toESM(require("node:path"));
7455
7737
  var import_ni = require("@antfu/ni");
7456
- var import_debug = require("@prisma/debug");
7457
- var import_internals10 = require("@prisma/internals");
7738
+ var import_debug2 = require("@prisma/debug");
7739
+ var import_internals11 = require("@prisma/internals");
7458
7740
 
7459
7741
  // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
7460
7742
  var import_node_buffer2 = require("node:buffer");
@@ -9061,10 +9343,10 @@ function execaCommand(command, options) {
9061
9343
  }
9062
9344
 
9063
9345
  // src/resolvePrismaClient.ts
9064
- var debug = (0, import_debug.Debug)("prisma:generator");
9346
+ var debug2 = (0, import_debug2.Debug)("prisma:generator");
9065
9347
  async function resolvePrismaClient(baseDir) {
9066
9348
  const prismaClientDir = await findPrismaClientDir(baseDir);
9067
- debug("baseDir", baseDir);
9349
+ debug2("baseDir", baseDir);
9068
9350
  if (!prismaClientDir) {
9069
9351
  throw new Error(
9070
9352
  `Could not resolve @prisma/client.
@@ -9077,12 +9359,12 @@ Please try to install it with ${bold(
9077
9359
  }
9078
9360
  async function resolveOrInstallPrismaClient(baseDir, version2) {
9079
9361
  let prismaClientDir = await findPrismaClientDir(baseDir);
9080
- debug("baseDir", baseDir);
9362
+ debug2("baseDir", baseDir);
9081
9363
  if (prismaClientDir) {
9082
9364
  return prismaClientDir;
9083
9365
  }
9084
- let projectRoot = (0, import_internals10.longestCommonPathPrefix)(baseDir, process.cwd());
9085
- debug("projectRoot", projectRoot);
9366
+ let projectRoot = (0, import_internals11.longestCommonPathPrefix)(baseDir, process.cwd());
9367
+ debug2("projectRoot", projectRoot);
9086
9368
  const warningTag = `${bold("Warning:")} ${dim("[Prisma auto-install on generate]")}`;
9087
9369
  if (projectRoot === void 0) {
9088
9370
  console.warn(
@@ -9109,7 +9391,7 @@ async function resolveOrInstallPrismaClient(baseDir, version2) {
9109
9391
  throw err;
9110
9392
  }
9111
9393
  }
9112
- const prismaCliDir = await (0, import_internals10.resolvePkg)("prisma", { basedir: baseDir });
9394
+ const prismaCliDir = await (0, import_internals11.resolvePkg)("prisma", { basedir: baseDir });
9113
9395
  if (process.platform === "win32" && await isYarnUsed(baseDir)) {
9114
9396
  const hasCli = (s) => prismaCliDir !== void 0 ? s : "";
9115
9397
  const missingCli = (s) => prismaCliDir === void 0 ? s : "";
@@ -9144,11 +9426,11 @@ Please try to install it by hand with ${bold(
9144
9426
  }
9145
9427
  async function findPrismaClientDir(baseDir) {
9146
9428
  const resolveOpts = { basedir: baseDir, preserveSymlinks: true };
9147
- const cliDir = await (0, import_internals10.resolvePkg)("prisma", resolveOpts);
9148
- const clientDir = await (0, import_internals10.resolvePkg)("@prisma/client", resolveOpts);
9429
+ const cliDir = await (0, import_internals11.resolvePkg)("prisma", resolveOpts);
9430
+ const clientDir = await (0, import_internals11.resolvePkg)("@prisma/client", resolveOpts);
9149
9431
  const resolvedClientDir = clientDir && await import_promises3.default.realpath(clientDir);
9150
- debug("prismaCliDir", cliDir);
9151
- debug("prismaClientDir", clientDir);
9432
+ debug2("prismaCliDir", cliDir);
9433
+ debug2("prismaClientDir", clientDir);
9152
9434
  if (cliDir === void 0) return resolvedClientDir;
9153
9435
  if (clientDir === void 0) return resolvedClientDir;
9154
9436
  const relDir = import_node_path3.default.relative(cliDir, clientDir).split(import_node_path3.default.sep);
@@ -9173,6 +9455,7 @@ async function runPackageCmd(cwd, cmd, ...args) {
9173
9455
  }
9174
9456
 
9175
9457
  // src/generator.ts
9458
+ var debug3 = (0, import_debug3.Debug)("prisma:client:generator");
9176
9459
  var PrismaClientJsGenerator = class {
9177
9460
  name = "prisma-client-js";
9178
9461
  #shouldResolvePrismaClient;
@@ -9189,22 +9472,25 @@ var PrismaClientJsGenerator = class {
9189
9472
  this.#runtimePath = runtimePath;
9190
9473
  }
9191
9474
  async getManifest(config) {
9475
+ const requiresEngines = (0, import_ts_pattern.match)((0, import_internals12.getClientEngineType)(config)).with(import_internals12.ClientEngineType.Library, () => ["libqueryEngine"]).with(import_internals12.ClientEngineType.Binary, () => ["queryEngine"]).with(import_internals12.ClientEngineType.Client, () => []).exhaustive();
9476
+ debug3("requiresEngines", requiresEngines);
9192
9477
  const defaultOutput = this.#shouldResolvePrismaClient ? await this.#getPrismaClientPath(config) : ".prisma/client";
9193
9478
  return {
9194
9479
  defaultOutput,
9195
9480
  prettyName: "Prisma Client",
9196
9481
  version,
9197
- requiresEngines: [],
9482
+ requiresEngines,
9198
9483
  requiresEngineVersion: import_engines_version.enginesVersion
9199
9484
  };
9200
9485
  }
9201
9486
  async generate(options) {
9202
- const outputDir = (0, import_internals11.parseEnvValue)(options.generator.output);
9487
+ const outputDir = (0, import_internals12.parseEnvValue)(options.generator.output);
9203
9488
  await generateClient({
9204
9489
  datamodel: options.datamodel,
9205
9490
  schemaPath: options.schemaPath,
9206
9491
  binaryPaths: options.binaryPaths,
9207
9492
  datasources: options.datasources,
9493
+ envPaths: options.envPaths,
9208
9494
  outputDir,
9209
9495
  copyRuntime: Boolean(options.generator.config.copyRuntime),
9210
9496
  copyRuntimeSourceMaps: Boolean(process.env.PRISMA_COPY_RUNTIME_SOURCEMAPS),
@@ -9215,6 +9501,7 @@ var PrismaClientJsGenerator = class {
9215
9501
  clientVersion: version,
9216
9502
  activeProvider: options.datasources[0]?.activeProvider,
9217
9503
  postinstall: options.postinstall,
9504
+ copyEngine: !options.noEngine,
9218
9505
  typedSql: options.typedSql
9219
9506
  });
9220
9507
  }
@@ -9270,7 +9557,11 @@ function dmmfToTypes(dmmf) {
9270
9557
  datamodel: "",
9271
9558
  browser: false,
9272
9559
  edge: false,
9273
- wasm: false
9560
+ wasm: false,
9561
+ envPaths: {
9562
+ rootEnvPath: null,
9563
+ schemaEnvPath: void 0
9564
+ }
9274
9565
  }).toTS();
9275
9566
  }
9276
9567
  // Annotate the CommonJS export names for ESM import in node: