@prisma/client-generator-js 6.19.0-integration-next.12 → 6.19.0-integration-feat-remove-library-engine.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 +220 -322
- package/dist/index.mjs +223 -331
- package/package.json +10 -10
- package/dist/utils/buildNFTAnnotations.d.ts +0 -11
- package/dist/utils/buildNFTAnnotations.test.d.ts +0 -1
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(
|
|
114
|
+
fs3.lchmod = function(path8, 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(
|
|
121
|
+
fs3.lchown = function(path8, 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(
|
|
188
|
+
fs4.lchmod = function(path8, mode, callback) {
|
|
189
189
|
fs4.open(
|
|
190
|
-
|
|
190
|
+
path8,
|
|
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(
|
|
207
|
-
var fd = fs4.openSync(
|
|
206
|
+
fs4.lchmodSync = function(path8, mode) {
|
|
207
|
+
var fd = fs4.openSync(path8, 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(
|
|
229
|
-
fs4.open(
|
|
228
|
+
fs4.lutimes = function(path8, at, mt, cb) {
|
|
229
|
+
fs4.open(path8, 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(
|
|
242
|
-
var fd = fs4.openSync(
|
|
241
|
+
fs4.lutimesSync = function(path8, at, mt) {
|
|
242
|
+
var fd = fs4.openSync(path8, 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(
|
|
362
|
-
if (!(this instanceof ReadStream)) return new ReadStream(
|
|
361
|
+
function ReadStream(path8, options) {
|
|
362
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path8, options);
|
|
363
363
|
Stream.call(this);
|
|
364
364
|
var self = this;
|
|
365
|
-
this.path =
|
|
365
|
+
this.path = path8;
|
|
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(
|
|
411
|
-
if (!(this instanceof WriteStream)) return new WriteStream(
|
|
410
|
+
function WriteStream(path8, options) {
|
|
411
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path8, options);
|
|
412
412
|
Stream.call(this);
|
|
413
|
-
this.path =
|
|
413
|
+
this.path = path8;
|
|
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
|
|
497
|
+
var debug2 = noop2;
|
|
498
498
|
if (util.debuglog)
|
|
499
|
-
|
|
499
|
+
debug2 = util.debuglog("gfs4");
|
|
500
500
|
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
|
|
501
|
-
|
|
501
|
+
debug2 = 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
|
-
|
|
536
|
+
debug2(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(
|
|
557
|
+
function readFile(path8, options, cb) {
|
|
558
558
|
if (typeof options === "function")
|
|
559
559
|
cb = options, options = null;
|
|
560
|
-
return go$readFile(
|
|
561
|
-
function go$readFile(
|
|
562
|
-
return fs$readFile(
|
|
560
|
+
return go$readFile(path8, options, cb);
|
|
561
|
+
function go$readFile(path9, options2, cb2, startTime) {
|
|
562
|
+
return fs$readFile(path9, options2, function(err) {
|
|
563
563
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
564
|
-
enqueue([go$readFile, [
|
|
564
|
+
enqueue([go$readFile, [path9, 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(
|
|
574
|
+
function writeFile(path8, data, options, cb) {
|
|
575
575
|
if (typeof options === "function")
|
|
576
576
|
cb = options, options = null;
|
|
577
|
-
return go$writeFile(
|
|
578
|
-
function go$writeFile(
|
|
579
|
-
return fs$writeFile(
|
|
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) {
|
|
580
580
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
581
|
-
enqueue([go$writeFile, [
|
|
581
|
+
enqueue([go$writeFile, [path9, 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(
|
|
592
|
+
function appendFile(path8, data, options, cb) {
|
|
593
593
|
if (typeof options === "function")
|
|
594
594
|
cb = options, options = null;
|
|
595
|
-
return go$appendFile(
|
|
596
|
-
function go$appendFile(
|
|
597
|
-
return fs$appendFile(
|
|
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) {
|
|
598
598
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
599
|
-
enqueue([go$appendFile, [
|
|
599
|
+
enqueue([go$appendFile, [path9, 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(
|
|
630
|
+
function readdir(path8, 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(
|
|
634
|
-
return fs$readdir(
|
|
635
|
-
|
|
633
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path9, options2, cb2, startTime) {
|
|
634
|
+
return fs$readdir(path9, fs$readdirCallback(
|
|
635
|
+
path9,
|
|
636
636
|
options2,
|
|
637
637
|
cb2,
|
|
638
638
|
startTime
|
|
639
639
|
));
|
|
640
|
-
} : function go$readdir2(
|
|
641
|
-
return fs$readdir(
|
|
642
|
-
|
|
640
|
+
} : function go$readdir2(path9, options2, cb2, startTime) {
|
|
641
|
+
return fs$readdir(path9, options2, fs$readdirCallback(
|
|
642
|
+
path9,
|
|
643
643
|
options2,
|
|
644
644
|
cb2,
|
|
645
645
|
startTime
|
|
646
646
|
));
|
|
647
647
|
};
|
|
648
|
-
return go$readdir(
|
|
649
|
-
function fs$readdirCallback(
|
|
648
|
+
return go$readdir(path8, options, cb);
|
|
649
|
+
function fs$readdirCallback(path9, 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
|
-
[
|
|
654
|
+
[path9, 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(
|
|
725
|
+
function ReadStream(path8, 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(
|
|
745
|
+
function WriteStream(path8, 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(
|
|
764
|
-
return new fs4.ReadStream(
|
|
763
|
+
function createReadStream2(path8, options) {
|
|
764
|
+
return new fs4.ReadStream(path8, options);
|
|
765
765
|
}
|
|
766
|
-
function createWriteStream2(
|
|
767
|
-
return new fs4.WriteStream(
|
|
766
|
+
function createWriteStream2(path8, options) {
|
|
767
|
+
return new fs4.WriteStream(path8, options);
|
|
768
768
|
}
|
|
769
769
|
var fs$open = fs4.open;
|
|
770
770
|
fs4.open = open;
|
|
771
|
-
function open(
|
|
771
|
+
function open(path8, flags, mode, cb) {
|
|
772
772
|
if (typeof mode === "function")
|
|
773
773
|
cb = mode, mode = null;
|
|
774
|
-
return go$open(
|
|
775
|
-
function go$open(
|
|
776
|
-
return fs$open(
|
|
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) {
|
|
777
777
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
778
|
-
enqueue([go$open, [
|
|
778
|
+
enqueue([go$open, [path9, 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
|
-
|
|
789
|
+
debug2("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
|
-
|
|
816
|
+
debug2("RETRY", fn.name, args);
|
|
817
817
|
fn.apply(null, args);
|
|
818
818
|
} else if (Date.now() - startTime >= 6e4) {
|
|
819
|
-
|
|
819
|
+
debug2("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
|
-
|
|
828
|
+
debug2("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
|
|
961
|
+
var path8 = require("path");
|
|
962
962
|
module2.exports.checkPath = function checkPath(pth) {
|
|
963
963
|
if (process.platform === "win32") {
|
|
964
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
964
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path8.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(
|
|
1029
|
-
return fs3.access(
|
|
1028
|
+
function pathExists(path8) {
|
|
1029
|
+
return fs3.access(path8).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(
|
|
1045
|
-
const fd = await fs3.open(
|
|
1044
|
+
async function utimesMillis(path8, atime, mtime) {
|
|
1045
|
+
const fd = await fs3.open(path8, "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(
|
|
1061
|
-
const fd = fs3.openSync(
|
|
1060
|
+
function utimesMillisSync(path8, atime, mtime) {
|
|
1061
|
+
const fd = fs3.openSync(path8, "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
|
|
1077
|
+
var path8 = 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 =
|
|
1106
|
-
const destBaseName =
|
|
1105
|
+
const srcBaseName = path8.basename(src);
|
|
1106
|
+
const destBaseName = path8.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 =
|
|
1129
|
-
const destBaseName =
|
|
1128
|
+
const srcBaseName = path8.basename(src);
|
|
1129
|
+
const destBaseName = path8.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 =
|
|
1149
|
-
const destParent =
|
|
1150
|
-
if (destParent === srcParent || destParent ===
|
|
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;
|
|
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 =
|
|
1165
|
-
const destParent =
|
|
1166
|
-
if (destParent === srcParent || destParent ===
|
|
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;
|
|
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 =
|
|
1184
|
-
const destArr =
|
|
1183
|
+
const srcArr = path8.resolve(src).split(path8.sep).filter((i) => i);
|
|
1184
|
+
const destArr = path8.resolve(dest).split(path8.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
|
|
1209
|
+
var path8 = 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 =
|
|
1231
|
+
const destParent = path8.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 =
|
|
1286
|
-
const destItem =
|
|
1285
|
+
const srcItem = path8.join(src, item.name);
|
|
1286
|
+
const destItem = path8.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 =
|
|
1305
|
+
resolvedSrc = path8.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 =
|
|
1318
|
+
resolvedDest = path8.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
|
|
1338
|
+
var path8 = 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 =
|
|
1359
|
+
const destParent = path8.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 =
|
|
1429
|
-
const destItem =
|
|
1428
|
+
const srcItem = path8.join(src, item);
|
|
1429
|
+
const destItem = path8.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 =
|
|
1437
|
+
resolvedSrc = path8.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 =
|
|
1450
|
+
resolvedDest = path8.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(
|
|
1488
|
-
fs3.rm(
|
|
1487
|
+
function remove(path8, callback) {
|
|
1488
|
+
fs3.rm(path8, { recursive: true, force: true }, callback);
|
|
1489
1489
|
}
|
|
1490
|
-
function removeSync(
|
|
1491
|
-
fs3.rmSync(
|
|
1490
|
+
function removeSync(path8) {
|
|
1491
|
+
fs3.rmSync(path8, { 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
|
|
1506
|
+
var path8 = 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(
|
|
1516
|
+
return Promise.all(items.map((item) => remove.remove(path8.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 =
|
|
1526
|
+
item = path8.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
|
|
1544
|
+
var path8 = 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 =
|
|
1554
|
+
const dir = path8.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 =
|
|
1580
|
+
const dir = path8.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
|
|
1603
|
+
var path8 = 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 =
|
|
1622
|
+
const dir = path8.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 =
|
|
1642
|
+
const dir = path8.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
|
|
1659
|
+
var path8 = 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 (
|
|
1664
|
+
if (path8.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 =
|
|
1677
|
-
const relativeToDst =
|
|
1676
|
+
const dstdir = path8.dirname(dstpath);
|
|
1677
|
+
const relativeToDst = path8.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:
|
|
1693
|
+
toDst: path8.relative(dstdir, srcpath)
|
|
1694
1694
|
};
|
|
1695
1695
|
}
|
|
1696
1696
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
1697
|
-
if (
|
|
1697
|
+
if (path8.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 =
|
|
1706
|
-
const relativeToDst =
|
|
1705
|
+
const dstdir = path8.dirname(dstpath);
|
|
1706
|
+
const relativeToDst = path8.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:
|
|
1718
|
+
toDst: path8.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
|
|
1766
|
+
var path8 = 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 =
|
|
1789
|
+
const dir = path8.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 =
|
|
1809
|
+
const dir = path8.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.
|
|
1849
|
+
// ../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/utils.js
|
|
1850
1850
|
var require_utils2 = __commonJS({
|
|
1851
|
-
"../../node_modules/.pnpm/jsonfile@6.
|
|
1851
|
+
"../../node_modules/.pnpm/jsonfile@6.2.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.
|
|
1866
|
+
// ../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js
|
|
1867
1867
|
var require_jsonfile = __commonJS({
|
|
1868
|
-
"../../node_modules/.pnpm/jsonfile@6.
|
|
1868
|
+
"../../node_modules/.pnpm/jsonfile@6.2.0/node_modules/jsonfile/index.js"(exports2, module2) {
|
|
1869
1869
|
"use strict";
|
|
1870
1870
|
var _fs;
|
|
1871
1871
|
try {
|
|
@@ -1927,13 +1927,12 @@ var require_jsonfile = __commonJS({
|
|
|
1927
1927
|
const str = stringify9(obj, options);
|
|
1928
1928
|
return fs3.writeFileSync(file4, str, options);
|
|
1929
1929
|
}
|
|
1930
|
-
|
|
1930
|
+
module2.exports = {
|
|
1931
1931
|
readFile,
|
|
1932
1932
|
readFileSync: readFileSync2,
|
|
1933
1933
|
writeFile,
|
|
1934
1934
|
writeFileSync
|
|
1935
1935
|
};
|
|
1936
|
-
module2.exports = jsonfile;
|
|
1937
1936
|
}
|
|
1938
1937
|
});
|
|
1939
1938
|
|
|
@@ -1958,18 +1957,18 @@ var require_output_file = __commonJS({
|
|
|
1958
1957
|
"use strict";
|
|
1959
1958
|
var u = require_universalify().fromPromise;
|
|
1960
1959
|
var fs3 = require_fs();
|
|
1961
|
-
var
|
|
1960
|
+
var path8 = require("path");
|
|
1962
1961
|
var mkdir = require_mkdirs();
|
|
1963
1962
|
var pathExists = require_path_exists().pathExists;
|
|
1964
1963
|
async function outputFile(file4, data, encoding = "utf-8") {
|
|
1965
|
-
const dir =
|
|
1964
|
+
const dir = path8.dirname(file4);
|
|
1966
1965
|
if (!await pathExists(dir)) {
|
|
1967
1966
|
await mkdir.mkdirs(dir);
|
|
1968
1967
|
}
|
|
1969
1968
|
return fs3.writeFile(file4, data, encoding);
|
|
1970
1969
|
}
|
|
1971
1970
|
function outputFileSync(file4, ...args) {
|
|
1972
|
-
const dir =
|
|
1971
|
+
const dir = path8.dirname(file4);
|
|
1973
1972
|
if (!fs3.existsSync(dir)) {
|
|
1974
1973
|
mkdir.mkdirsSync(dir);
|
|
1975
1974
|
}
|
|
@@ -2033,7 +2032,7 @@ var require_move = __commonJS({
|
|
|
2033
2032
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
|
|
2034
2033
|
"use strict";
|
|
2035
2034
|
var fs3 = require_fs();
|
|
2036
|
-
var
|
|
2035
|
+
var path8 = require("path");
|
|
2037
2036
|
var { copy } = require_copy2();
|
|
2038
2037
|
var { remove } = require_remove();
|
|
2039
2038
|
var { mkdirp } = require_mkdirs();
|
|
@@ -2043,8 +2042,8 @@ var require_move = __commonJS({
|
|
|
2043
2042
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
2044
2043
|
const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);
|
|
2045
2044
|
await stat.checkParentPaths(src, srcStat, dest, "move");
|
|
2046
|
-
const destParent =
|
|
2047
|
-
const parsedParentPath =
|
|
2045
|
+
const destParent = path8.dirname(dest);
|
|
2046
|
+
const parsedParentPath = path8.parse(destParent);
|
|
2048
2047
|
if (parsedParentPath.root !== destParent) {
|
|
2049
2048
|
await mkdirp(destParent);
|
|
2050
2049
|
}
|
|
@@ -2085,7 +2084,7 @@ var require_move_sync = __commonJS({
|
|
|
2085
2084
|
"../../node_modules/.pnpm/fs-extra@11.3.0/node_modules/fs-extra/lib/move/move-sync.js"(exports2, module2) {
|
|
2086
2085
|
"use strict";
|
|
2087
2086
|
var fs3 = require_graceful_fs();
|
|
2088
|
-
var
|
|
2087
|
+
var path8 = require("path");
|
|
2089
2088
|
var copySync = require_copy2().copySync;
|
|
2090
2089
|
var removeSync = require_remove().removeSync;
|
|
2091
2090
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -2095,12 +2094,12 @@ var require_move_sync = __commonJS({
|
|
|
2095
2094
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
2096
2095
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
|
|
2097
2096
|
stat.checkParentPathsSync(src, srcStat, dest, "move");
|
|
2098
|
-
if (!isParentRoot(dest)) mkdirpSync(
|
|
2097
|
+
if (!isParentRoot(dest)) mkdirpSync(path8.dirname(dest));
|
|
2099
2098
|
return doRename(src, dest, overwrite, isChangingCase);
|
|
2100
2099
|
}
|
|
2101
2100
|
function isParentRoot(dest) {
|
|
2102
|
-
const parent =
|
|
2103
|
-
const parsedPath =
|
|
2101
|
+
const parent = path8.dirname(dest);
|
|
2102
|
+
const parsedPath = path8.parse(parent);
|
|
2104
2103
|
return parsedPath.root === parent;
|
|
2105
2104
|
}
|
|
2106
2105
|
function doRename(src, dest, overwrite, isChangingCase) {
|
|
@@ -2173,7 +2172,7 @@ var require_windows = __commonJS({
|
|
|
2173
2172
|
module2.exports = isexe;
|
|
2174
2173
|
isexe.sync = sync;
|
|
2175
2174
|
var fs3 = require("fs");
|
|
2176
|
-
function checkPathExt(
|
|
2175
|
+
function checkPathExt(path8, options) {
|
|
2177
2176
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
2178
2177
|
if (!pathext) {
|
|
2179
2178
|
return true;
|
|
@@ -2184,25 +2183,25 @@ var require_windows = __commonJS({
|
|
|
2184
2183
|
}
|
|
2185
2184
|
for (var i = 0; i < pathext.length; i++) {
|
|
2186
2185
|
var p = pathext[i].toLowerCase();
|
|
2187
|
-
if (p &&
|
|
2186
|
+
if (p && path8.substr(-p.length).toLowerCase() === p) {
|
|
2188
2187
|
return true;
|
|
2189
2188
|
}
|
|
2190
2189
|
}
|
|
2191
2190
|
return false;
|
|
2192
2191
|
}
|
|
2193
|
-
function checkStat(stat,
|
|
2192
|
+
function checkStat(stat, path8, options) {
|
|
2194
2193
|
if (!stat.isSymbolicLink() && !stat.isFile()) {
|
|
2195
2194
|
return false;
|
|
2196
2195
|
}
|
|
2197
|
-
return checkPathExt(
|
|
2196
|
+
return checkPathExt(path8, options);
|
|
2198
2197
|
}
|
|
2199
|
-
function isexe(
|
|
2200
|
-
fs3.stat(
|
|
2201
|
-
cb(er, er ? false : checkStat(stat,
|
|
2198
|
+
function isexe(path8, options, cb) {
|
|
2199
|
+
fs3.stat(path8, function(er, stat) {
|
|
2200
|
+
cb(er, er ? false : checkStat(stat, path8, options));
|
|
2202
2201
|
});
|
|
2203
2202
|
}
|
|
2204
|
-
function sync(
|
|
2205
|
-
return checkStat(fs3.statSync(
|
|
2203
|
+
function sync(path8, options) {
|
|
2204
|
+
return checkStat(fs3.statSync(path8), path8, options);
|
|
2206
2205
|
}
|
|
2207
2206
|
}
|
|
2208
2207
|
});
|
|
@@ -2214,13 +2213,13 @@ var require_mode = __commonJS({
|
|
|
2214
2213
|
module2.exports = isexe;
|
|
2215
2214
|
isexe.sync = sync;
|
|
2216
2215
|
var fs3 = require("fs");
|
|
2217
|
-
function isexe(
|
|
2218
|
-
fs3.stat(
|
|
2216
|
+
function isexe(path8, options, cb) {
|
|
2217
|
+
fs3.stat(path8, function(er, stat) {
|
|
2219
2218
|
cb(er, er ? false : checkStat(stat, options));
|
|
2220
2219
|
});
|
|
2221
2220
|
}
|
|
2222
|
-
function sync(
|
|
2223
|
-
return checkStat(fs3.statSync(
|
|
2221
|
+
function sync(path8, options) {
|
|
2222
|
+
return checkStat(fs3.statSync(path8), options);
|
|
2224
2223
|
}
|
|
2225
2224
|
function checkStat(stat, options) {
|
|
2226
2225
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -2254,7 +2253,7 @@ var require_isexe = __commonJS({
|
|
|
2254
2253
|
}
|
|
2255
2254
|
module2.exports = isexe;
|
|
2256
2255
|
isexe.sync = sync;
|
|
2257
|
-
function isexe(
|
|
2256
|
+
function isexe(path8, options, cb) {
|
|
2258
2257
|
if (typeof options === "function") {
|
|
2259
2258
|
cb = options;
|
|
2260
2259
|
options = {};
|
|
@@ -2264,7 +2263,7 @@ var require_isexe = __commonJS({
|
|
|
2264
2263
|
throw new TypeError("callback not provided");
|
|
2265
2264
|
}
|
|
2266
2265
|
return new Promise(function(resolve, reject) {
|
|
2267
|
-
isexe(
|
|
2266
|
+
isexe(path8, options || {}, function(er, is) {
|
|
2268
2267
|
if (er) {
|
|
2269
2268
|
reject(er);
|
|
2270
2269
|
} else {
|
|
@@ -2273,7 +2272,7 @@ var require_isexe = __commonJS({
|
|
|
2273
2272
|
});
|
|
2274
2273
|
});
|
|
2275
2274
|
}
|
|
2276
|
-
core(
|
|
2275
|
+
core(path8, options || {}, function(er, is) {
|
|
2277
2276
|
if (er) {
|
|
2278
2277
|
if (er.code === "EACCES" || options && options.ignoreErrors) {
|
|
2279
2278
|
er = null;
|
|
@@ -2283,9 +2282,9 @@ var require_isexe = __commonJS({
|
|
|
2283
2282
|
cb(er, is);
|
|
2284
2283
|
});
|
|
2285
2284
|
}
|
|
2286
|
-
function sync(
|
|
2285
|
+
function sync(path8, options) {
|
|
2287
2286
|
try {
|
|
2288
|
-
return core.sync(
|
|
2287
|
+
return core.sync(path8, options || {});
|
|
2289
2288
|
} catch (er) {
|
|
2290
2289
|
if (options && options.ignoreErrors || er.code === "EACCES") {
|
|
2291
2290
|
return false;
|
|
@@ -2302,7 +2301,7 @@ var require_which = __commonJS({
|
|
|
2302
2301
|
"../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports2, module2) {
|
|
2303
2302
|
"use strict";
|
|
2304
2303
|
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
2305
|
-
var
|
|
2304
|
+
var path8 = require("path");
|
|
2306
2305
|
var COLON = isWindows ? ";" : ":";
|
|
2307
2306
|
var isexe = require_isexe();
|
|
2308
2307
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -2340,7 +2339,7 @@ var require_which = __commonJS({
|
|
|
2340
2339
|
return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
2341
2340
|
const ppRaw = pathEnv[i];
|
|
2342
2341
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
2343
|
-
const pCmd =
|
|
2342
|
+
const pCmd = path8.join(pathPart, cmd);
|
|
2344
2343
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
2345
2344
|
resolve(subStep(p, i, 0));
|
|
2346
2345
|
});
|
|
@@ -2367,7 +2366,7 @@ var require_which = __commonJS({
|
|
|
2367
2366
|
for (let i = 0; i < pathEnv.length; i++) {
|
|
2368
2367
|
const ppRaw = pathEnv[i];
|
|
2369
2368
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
2370
|
-
const pCmd =
|
|
2369
|
+
const pCmd = path8.join(pathPart, cmd);
|
|
2371
2370
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
2372
2371
|
for (let j = 0; j < pathExt.length; j++) {
|
|
2373
2372
|
const cur = p + pathExt[j];
|
|
@@ -2415,7 +2414,7 @@ var require_path_key = __commonJS({
|
|
|
2415
2414
|
var require_resolveCommand = __commonJS({
|
|
2416
2415
|
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
|
|
2417
2416
|
"use strict";
|
|
2418
|
-
var
|
|
2417
|
+
var path8 = require("path");
|
|
2419
2418
|
var which = require_which();
|
|
2420
2419
|
var getPathKey = require_path_key();
|
|
2421
2420
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -2433,7 +2432,7 @@ var require_resolveCommand = __commonJS({
|
|
|
2433
2432
|
try {
|
|
2434
2433
|
resolved = which.sync(parsed.command, {
|
|
2435
2434
|
path: env[getPathKey({ env })],
|
|
2436
|
-
pathExt: withoutPathExt ?
|
|
2435
|
+
pathExt: withoutPathExt ? path8.delimiter : void 0
|
|
2437
2436
|
});
|
|
2438
2437
|
} catch (e) {
|
|
2439
2438
|
} finally {
|
|
@@ -2442,7 +2441,7 @@ var require_resolveCommand = __commonJS({
|
|
|
2442
2441
|
}
|
|
2443
2442
|
}
|
|
2444
2443
|
if (resolved) {
|
|
2445
|
-
resolved =
|
|
2444
|
+
resolved = path8.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
2446
2445
|
}
|
|
2447
2446
|
return resolved;
|
|
2448
2447
|
}
|
|
@@ -2492,12 +2491,12 @@ var require_shebang_command = __commonJS({
|
|
|
2492
2491
|
"use strict";
|
|
2493
2492
|
var shebangRegex = require_shebang_regex();
|
|
2494
2493
|
module2.exports = (string = "") => {
|
|
2495
|
-
const
|
|
2496
|
-
if (!
|
|
2494
|
+
const match = string.match(shebangRegex);
|
|
2495
|
+
if (!match) {
|
|
2497
2496
|
return null;
|
|
2498
2497
|
}
|
|
2499
|
-
const [
|
|
2500
|
-
const binary =
|
|
2498
|
+
const [path8, argument] = match[0].replace(/#! ?/, "").split(" ");
|
|
2499
|
+
const binary = path8.split("/").pop();
|
|
2501
2500
|
if (binary === "env") {
|
|
2502
2501
|
return argument;
|
|
2503
2502
|
}
|
|
@@ -2532,7 +2531,7 @@ var require_readShebang = __commonJS({
|
|
|
2532
2531
|
var require_parse = __commonJS({
|
|
2533
2532
|
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
|
|
2534
2533
|
"use strict";
|
|
2535
|
-
var
|
|
2534
|
+
var path8 = require("path");
|
|
2536
2535
|
var resolveCommand = require_resolveCommand();
|
|
2537
2536
|
var escape = require_escape();
|
|
2538
2537
|
var readShebang = require_readShebang();
|
|
@@ -2557,7 +2556,7 @@ var require_parse = __commonJS({
|
|
|
2557
2556
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
2558
2557
|
if (parsed.options.forceShell || needsShell) {
|
|
2559
2558
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
2560
|
-
parsed.command =
|
|
2559
|
+
parsed.command = path8.normalize(parsed.command);
|
|
2561
2560
|
parsed.command = escape.command(parsed.command);
|
|
2562
2561
|
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
2563
2562
|
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
@@ -2764,8 +2763,7 @@ function getMappings(mappings, datamodel) {
|
|
|
2764
2763
|
}
|
|
2765
2764
|
|
|
2766
2765
|
// src/generateClient.ts
|
|
2767
|
-
var
|
|
2768
|
-
var import_internals10 = require("@prisma/internals");
|
|
2766
|
+
var import_internals9 = require("@prisma/internals");
|
|
2769
2767
|
var import_crypto = require("crypto");
|
|
2770
2768
|
var import_env_paths = __toESM(require("env-paths"));
|
|
2771
2769
|
var import_fs = require("fs");
|
|
@@ -2822,7 +2820,7 @@ var bgWhite = init(47, 49);
|
|
|
2822
2820
|
|
|
2823
2821
|
// src/generateClient.ts
|
|
2824
2822
|
var import_package_up = require("package-up");
|
|
2825
|
-
var
|
|
2823
|
+
var import_path2 = __toESM(require("path"));
|
|
2826
2824
|
|
|
2827
2825
|
// ../client/package.json
|
|
2828
2826
|
var package_default = {
|
|
@@ -2914,18 +2912,6 @@ var package_default = {
|
|
|
2914
2912
|
import: "./runtime/client.mjs",
|
|
2915
2913
|
default: "./runtime/client.mjs"
|
|
2916
2914
|
},
|
|
2917
|
-
"./runtime/library": {
|
|
2918
|
-
types: "./runtime/library.d.ts",
|
|
2919
|
-
require: "./runtime/library.js",
|
|
2920
|
-
import: "./runtime/library.mjs",
|
|
2921
|
-
default: "./runtime/library.mjs"
|
|
2922
|
-
},
|
|
2923
|
-
"./runtime/binary": {
|
|
2924
|
-
types: "./runtime/binary.d.ts",
|
|
2925
|
-
require: "./runtime/binary.js",
|
|
2926
|
-
import: "./runtime/binary.mjs",
|
|
2927
|
-
default: "./runtime/binary.mjs"
|
|
2928
|
-
},
|
|
2929
2915
|
"./runtime/wasm-compiler-edge": {
|
|
2930
2916
|
types: "./runtime/wasm-compiler-edge.d.ts",
|
|
2931
2917
|
require: "./runtime/wasm-compiler-edge.js",
|
|
@@ -2976,7 +2962,7 @@ var package_default = {
|
|
|
2976
2962
|
test: "dotenv -e ../../.db.env -- jest --silent",
|
|
2977
2963
|
"test:e2e": "dotenv -e ../../.db.env -- tsx tests/e2e/_utils/run.ts",
|
|
2978
2964
|
"test:functional": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts",
|
|
2979
|
-
"test:functional:client": "pnpm run test:functional --client-runtime client
|
|
2965
|
+
"test:functional:client": "pnpm run test:functional --client-runtime client",
|
|
2980
2966
|
"test:memory": "dotenv -e ../../.db.env -- tsx helpers/memory-tests.ts",
|
|
2981
2967
|
"test:functional:code": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --no-types",
|
|
2982
2968
|
"test:functional:types": "dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --types-only",
|
|
@@ -3005,7 +2991,7 @@ var package_default = {
|
|
|
3005
2991
|
"sql.mjs"
|
|
3006
2992
|
],
|
|
3007
2993
|
devDependencies: {
|
|
3008
|
-
"@cloudflare/workers-types": "^4.
|
|
2994
|
+
"@cloudflare/workers-types": "^4.20251014.0",
|
|
3009
2995
|
"@codspeed/benchmark.js-plugin": "4.0.0",
|
|
3010
2996
|
"@faker-js/faker": "9.6.0",
|
|
3011
2997
|
"@fast-check/jest": "2.0.3",
|
|
@@ -3040,7 +3026,7 @@ var package_default = {
|
|
|
3040
3026
|
"@prisma/dmmf": "workspace:*",
|
|
3041
3027
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
3042
3028
|
"@prisma/engines": "workspace:*",
|
|
3043
|
-
"@prisma/engines-version": "6.19.0-
|
|
3029
|
+
"@prisma/engines-version": "6.19.0-21.next-3ab778d6c5a8df0d39fd88ffd67461d3395af732",
|
|
3044
3030
|
"@prisma/fetch-engine": "workspace:*",
|
|
3045
3031
|
"@prisma/generator": "workspace:*",
|
|
3046
3032
|
"@prisma/generator-helper": "workspace:*",
|
|
@@ -3048,8 +3034,8 @@ var package_default = {
|
|
|
3048
3034
|
"@prisma/instrumentation": "workspace:*",
|
|
3049
3035
|
"@prisma/internals": "workspace:*",
|
|
3050
3036
|
"@prisma/migrate": "workspace:*",
|
|
3051
|
-
"@prisma/query-compiler-wasm": "6.19.0-
|
|
3052
|
-
"@prisma/query-engine-wasm": "6.19.0-
|
|
3037
|
+
"@prisma/query-compiler-wasm": "6.19.0-21.next-3ab778d6c5a8df0d39fd88ffd67461d3395af732",
|
|
3038
|
+
"@prisma/query-engine-wasm": "6.19.0-21.next-3ab778d6c5a8df0d39fd88ffd67461d3395af732",
|
|
3053
3039
|
"@prisma/query-plan-executor": "workspace:*",
|
|
3054
3040
|
"@prisma/ts-builders": "workspace:*",
|
|
3055
3041
|
"@snaplet/copycat": "6.0.0",
|
|
@@ -3062,7 +3048,7 @@ var package_default = {
|
|
|
3062
3048
|
"@types/jest": "29.5.14",
|
|
3063
3049
|
"@types/js-levenshtein": "1.1.3",
|
|
3064
3050
|
"@types/mssql": "9.1.8",
|
|
3065
|
-
"@types/node": "~20.19.
|
|
3051
|
+
"@types/node": "~20.19.24",
|
|
3066
3052
|
"@types/pg": "8.11.11",
|
|
3067
3053
|
arg: "5.0.2",
|
|
3068
3054
|
benchmark: "2.1.4",
|
|
@@ -4889,11 +4875,11 @@ function fluentWrapperName(modelName) {
|
|
|
4889
4875
|
|
|
4890
4876
|
// src/TSClient/TSClient.ts
|
|
4891
4877
|
var import_dmmf = require("@prisma/dmmf");
|
|
4892
|
-
var
|
|
4878
|
+
var import_internals6 = require("@prisma/internals");
|
|
4893
4879
|
var ts12 = __toESM(require("@prisma/ts-builders"));
|
|
4894
4880
|
var import_ci_info = __toESM(require("ci-info"));
|
|
4895
4881
|
var import_indent_string8 = __toESM(require("indent-string"));
|
|
4896
|
-
var
|
|
4882
|
+
var import_path = __toESM(require("path"));
|
|
4897
4883
|
|
|
4898
4884
|
// src/dmmf.ts
|
|
4899
4885
|
var import_client_common10 = require("@prisma/client-common");
|
|
@@ -5235,47 +5221,6 @@ function buildInlineDatasource(ds) {
|
|
|
5235
5221
|
}
|
|
5236
5222
|
}
|
|
5237
5223
|
|
|
5238
|
-
// src/utils/buildNFTAnnotations.ts
|
|
5239
|
-
var import_get_platform = require("@prisma/get-platform");
|
|
5240
|
-
var import_internals5 = require("@prisma/internals");
|
|
5241
|
-
var import_path = __toESM(require("path"));
|
|
5242
|
-
function buildNFTAnnotations(noEngine, engineType, binaryTargets, relativeOutdir) {
|
|
5243
|
-
if (noEngine === true) return "";
|
|
5244
|
-
if (binaryTargets === void 0) {
|
|
5245
|
-
return "";
|
|
5246
|
-
}
|
|
5247
|
-
if (process.env.NETLIFY) {
|
|
5248
|
-
const isNodeMajor20OrUp = parseInt(process.versions.node.split(".")[0]) >= 20;
|
|
5249
|
-
const awsRuntimeVersion = (0, import_internals5.parseAWSNodejsRuntimeEnvVarVersion)();
|
|
5250
|
-
const isRuntimeEnvVar20OrUp = awsRuntimeVersion && awsRuntimeVersion >= 20;
|
|
5251
|
-
const isRuntimeEnvVar18OrDown = awsRuntimeVersion && awsRuntimeVersion <= 18;
|
|
5252
|
-
if ((isNodeMajor20OrUp || isRuntimeEnvVar20OrUp) && !isRuntimeEnvVar18OrDown) {
|
|
5253
|
-
binaryTargets = ["rhel-openssl-3.0.x"];
|
|
5254
|
-
} else {
|
|
5255
|
-
binaryTargets = ["rhel-openssl-1.0.x"];
|
|
5256
|
-
}
|
|
5257
|
-
}
|
|
5258
|
-
const engineAnnotations = binaryTargets.map((binaryTarget) => {
|
|
5259
|
-
const engineFilename = getQueryEngineFilename(engineType, binaryTarget);
|
|
5260
|
-
return engineFilename ? buildNFTAnnotation(engineFilename, relativeOutdir) : "";
|
|
5261
|
-
}).join("\n");
|
|
5262
|
-
const schemaAnnotations = buildNFTAnnotation("schema.prisma", relativeOutdir);
|
|
5263
|
-
return `${engineAnnotations}${schemaAnnotations}`;
|
|
5264
|
-
}
|
|
5265
|
-
function getQueryEngineFilename(engineType, binaryTarget) {
|
|
5266
|
-
if (engineType === import_internals5.ClientEngineType.Library) {
|
|
5267
|
-
return (0, import_get_platform.getNodeAPIName)(binaryTarget, "fs");
|
|
5268
|
-
}
|
|
5269
|
-
return void 0;
|
|
5270
|
-
}
|
|
5271
|
-
function buildNFTAnnotation(fileName, relativeOutdir) {
|
|
5272
|
-
const relativeFilePath = import_path.default.join(relativeOutdir, fileName);
|
|
5273
|
-
return `
|
|
5274
|
-
// file annotations for bundling tools to include these files
|
|
5275
|
-
path.join(__dirname, ${JSON.stringify((0, import_internals5.pathToPosix)(fileName))});
|
|
5276
|
-
path.join(process.cwd(), ${JSON.stringify((0, import_internals5.pathToPosix)(relativeFilePath))})`;
|
|
5277
|
-
}
|
|
5278
|
-
|
|
5279
5224
|
// src/utils/buildRequirePath.ts
|
|
5280
5225
|
function buildRequirePath(edge) {
|
|
5281
5226
|
if (edge === true) return "";
|
|
@@ -5949,7 +5894,7 @@ var GenerateContext = class {
|
|
|
5949
5894
|
|
|
5950
5895
|
// src/TSClient/PrismaClient.ts
|
|
5951
5896
|
var import_client_common15 = require("@prisma/client-common");
|
|
5952
|
-
var
|
|
5897
|
+
var import_internals5 = require("@prisma/internals");
|
|
5953
5898
|
var ts11 = __toESM(require("@prisma/ts-builders"));
|
|
5954
5899
|
var import_indent_string7 = __toESM(require("indent-string"));
|
|
5955
5900
|
|
|
@@ -6043,7 +5988,7 @@ function clientTypeMapModelsResultDefinition(modelName, action) {
|
|
|
6043
5988
|
if (action === "update") return payloadToResult(modelName);
|
|
6044
5989
|
if (action === "upsert") return payloadToResult(modelName);
|
|
6045
5990
|
if (action === "delete") return payloadToResult(modelName);
|
|
6046
|
-
(0,
|
|
5991
|
+
(0, import_internals5.assertNever)(action, `Unknown action: ${action}`);
|
|
6047
5992
|
}
|
|
6048
5993
|
function payloadToResult(modelName) {
|
|
6049
5994
|
return ts11.namedType("$Utils.PayloadToResult").addGenericArgument(ts11.namedType(getPayloadName(modelName)));
|
|
@@ -6496,7 +6441,6 @@ var TSClient = class {
|
|
|
6496
6441
|
const {
|
|
6497
6442
|
edge,
|
|
6498
6443
|
wasm,
|
|
6499
|
-
binaryPaths,
|
|
6500
6444
|
generator,
|
|
6501
6445
|
outputDir,
|
|
6502
6446
|
datamodel: inlineSchema,
|
|
@@ -6510,17 +6454,14 @@ var TSClient = class {
|
|
|
6510
6454
|
return `module.exports = { ...require('${reusedJs}') }`;
|
|
6511
6455
|
}
|
|
6512
6456
|
const relativeEnvPaths = {
|
|
6513
|
-
rootEnvPath: envPaths.rootEnvPath && (0,
|
|
6514
|
-
schemaEnvPath: envPaths.schemaEnvPath && (0,
|
|
6457
|
+
rootEnvPath: envPaths.rootEnvPath && (0, import_internals6.pathToPosix)(import_path.default.relative(outputDir, envPaths.rootEnvPath)),
|
|
6458
|
+
schemaEnvPath: envPaths.schemaEnvPath && (0, import_internals6.pathToPosix)(import_path.default.relative(outputDir, envPaths.schemaEnvPath))
|
|
6515
6459
|
};
|
|
6516
|
-
const clientEngineType = (0, import_internals7.getClientEngineType)(generator);
|
|
6517
|
-
generator.config.engineType = clientEngineType;
|
|
6518
|
-
const binaryTargets = clientEngineType === import_internals7.ClientEngineType.Library ? Object.keys(binaryPaths.libqueryEngine ?? {}) : [];
|
|
6519
6460
|
const datasourceFilePath = datasources[0].sourceFilePath;
|
|
6520
6461
|
const config = {
|
|
6521
6462
|
generator,
|
|
6522
6463
|
relativeEnvPaths,
|
|
6523
|
-
relativePath: (0,
|
|
6464
|
+
relativePath: (0, import_internals6.pathToPosix)(import_path.default.relative(outputDir, import_path.default.dirname(datasourceFilePath))),
|
|
6524
6465
|
clientVersion: this.options.clientVersion,
|
|
6525
6466
|
engineVersion: this.options.engineVersion,
|
|
6526
6467
|
datasourceNames: datasources.map((d) => d.name),
|
|
@@ -6530,7 +6471,7 @@ var TSClient = class {
|
|
|
6530
6471
|
inlineDatasources: buildInlineDatasources(datasources),
|
|
6531
6472
|
inlineSchema
|
|
6532
6473
|
};
|
|
6533
|
-
const relativeOutdir =
|
|
6474
|
+
const relativeOutdir = import_path.default.relative(process.cwd(), outputDir);
|
|
6534
6475
|
const code = `${commonCodeJS({ ...this.options, browser: false })}
|
|
6535
6476
|
${buildRequirePath(edge)}
|
|
6536
6477
|
|
|
@@ -6564,7 +6505,6 @@ ${buildDebugInitialization(edge)}
|
|
|
6564
6505
|
const PrismaClient = getPrismaClient(config)
|
|
6565
6506
|
exports.PrismaClient = PrismaClient
|
|
6566
6507
|
Object.assign(exports, Prisma)
|
|
6567
|
-
${buildNFTAnnotations(edge, clientEngineType, binaryTargets, relativeOutdir)}
|
|
6568
6508
|
`;
|
|
6569
6509
|
return code;
|
|
6570
6510
|
}
|
|
@@ -6774,7 +6714,7 @@ Object.assign(exports, Prisma)
|
|
|
6774
6714
|
};
|
|
6775
6715
|
|
|
6776
6716
|
// src/typedSql/buildDbEnums.ts
|
|
6777
|
-
var
|
|
6717
|
+
var import_internals7 = require("@prisma/internals");
|
|
6778
6718
|
var ts13 = __toESM(require("@prisma/ts-builders"));
|
|
6779
6719
|
var DbEnumsList = class {
|
|
6780
6720
|
enums;
|
|
@@ -6792,14 +6732,14 @@ var DbEnumsList = class {
|
|
|
6792
6732
|
}
|
|
6793
6733
|
*validJsIdentifiers() {
|
|
6794
6734
|
for (const dbEnum of this.enums) {
|
|
6795
|
-
if ((0,
|
|
6735
|
+
if ((0, import_internals7.isValidJsIdentifier)(dbEnum.name)) {
|
|
6796
6736
|
yield dbEnum;
|
|
6797
6737
|
}
|
|
6798
6738
|
}
|
|
6799
6739
|
}
|
|
6800
6740
|
*invalidJsIdentifiers() {
|
|
6801
6741
|
for (const dbEnum of this.enums) {
|
|
6802
|
-
if (!(0,
|
|
6742
|
+
if (!(0, import_internals7.isValidJsIdentifier)(dbEnum.name)) {
|
|
6803
6743
|
yield dbEnum;
|
|
6804
6744
|
}
|
|
6805
6745
|
}
|
|
@@ -6871,7 +6811,7 @@ var ts16 = __toESM(require("@prisma/ts-builders"));
|
|
|
6871
6811
|
var import_ts_builders3 = require("@prisma/ts-builders");
|
|
6872
6812
|
|
|
6873
6813
|
// src/typedSql/mapTypes.ts
|
|
6874
|
-
var
|
|
6814
|
+
var import_internals8 = require("@prisma/internals");
|
|
6875
6815
|
var ts15 = __toESM(require("@prisma/ts-builders"));
|
|
6876
6816
|
var decimal = ts15.namedType("$runtime.Decimal");
|
|
6877
6817
|
var uint8Array = ts15.namedType("$runtime.Bytes");
|
|
@@ -6965,7 +6905,7 @@ function getMappingConfig(introspectionType, enums) {
|
|
|
6965
6905
|
return config;
|
|
6966
6906
|
}
|
|
6967
6907
|
function getEnumType(name) {
|
|
6968
|
-
if ((0,
|
|
6908
|
+
if ((0, import_internals8.isValidJsIdentifier)(name)) {
|
|
6969
6909
|
return ts15.namedType(`$DbEnums.${name}`);
|
|
6970
6910
|
}
|
|
6971
6911
|
return ts15.namedType("$DbEnums").subKey(name);
|
|
@@ -7077,7 +7017,7 @@ var DenylistError = class extends Error {
|
|
|
7077
7017
|
this.stack = void 0;
|
|
7078
7018
|
}
|
|
7079
7019
|
};
|
|
7080
|
-
(0,
|
|
7020
|
+
(0, import_internals9.setClassName)(DenylistError, "DenylistError");
|
|
7081
7021
|
async function buildClient({
|
|
7082
7022
|
schemaPath,
|
|
7083
7023
|
runtimeBase,
|
|
@@ -7095,7 +7035,6 @@ async function buildClient({
|
|
|
7095
7035
|
envPaths,
|
|
7096
7036
|
typedSql
|
|
7097
7037
|
}) {
|
|
7098
|
-
const clientEngineType = (0, import_internals10.getClientEngineType)(generator);
|
|
7099
7038
|
const baseClientOptions = {
|
|
7100
7039
|
dmmf: getPrismaClientDMMF(dmmf),
|
|
7101
7040
|
envPaths: envPaths ?? { rootEnvPath: null, schemaEnvPath: void 0 },
|
|
@@ -7117,8 +7056,8 @@ async function buildClient({
|
|
|
7117
7056
|
};
|
|
7118
7057
|
const nodeClientOptions = {
|
|
7119
7058
|
...baseClientOptions,
|
|
7120
|
-
runtimeNameJs:
|
|
7121
|
-
runtimeNameTs:
|
|
7059
|
+
runtimeNameJs: "client",
|
|
7060
|
+
runtimeNameTs: "client.js"
|
|
7122
7061
|
};
|
|
7123
7062
|
const nodeClient = new TSClient(nodeClientOptions);
|
|
7124
7063
|
const defaultClient = new TSClient({
|
|
@@ -7238,7 +7177,7 @@ async function buildClient({
|
|
|
7238
7177
|
fileMap["sql"] = buildTypedSql({
|
|
7239
7178
|
dmmf,
|
|
7240
7179
|
runtimeBase: getTypedSqlRuntimeBase(runtimeBase),
|
|
7241
|
-
mainRuntimeName:
|
|
7180
|
+
mainRuntimeName: "client",
|
|
7242
7181
|
queries: typedSql,
|
|
7243
7182
|
edgeRuntimeName
|
|
7244
7183
|
});
|
|
@@ -7262,19 +7201,19 @@ function getTypedSqlRuntimeBase(runtimeBase) {
|
|
|
7262
7201
|
return `../${runtimeBase}`;
|
|
7263
7202
|
}
|
|
7264
7203
|
async function getDefaultOutdir(outputDir) {
|
|
7265
|
-
if (outputDir.endsWith(
|
|
7266
|
-
return
|
|
7204
|
+
if (outputDir.endsWith(import_path2.default.normalize("node_modules/@prisma/client"))) {
|
|
7205
|
+
return import_path2.default.join(outputDir, "../../.prisma/client");
|
|
7267
7206
|
}
|
|
7268
7207
|
if (process.env.INIT_CWD && process.env.npm_lifecycle_event === "postinstall" && !process.env.PWD?.includes(".pnpm")) {
|
|
7269
|
-
if ((0, import_fs.existsSync)(
|
|
7270
|
-
return
|
|
7208
|
+
if ((0, import_fs.existsSync)(import_path2.default.join(process.env.INIT_CWD, "package.json"))) {
|
|
7209
|
+
return import_path2.default.join(process.env.INIT_CWD, "node_modules/.prisma/client");
|
|
7271
7210
|
}
|
|
7272
7211
|
const packagePath = await (0, import_package_up.packageUp)({ cwd: process.env.INIT_CWD });
|
|
7273
7212
|
if (packagePath) {
|
|
7274
|
-
return
|
|
7213
|
+
return import_path2.default.join(import_path2.default.dirname(packagePath), "node_modules/.prisma/client");
|
|
7275
7214
|
}
|
|
7276
7215
|
}
|
|
7277
|
-
return
|
|
7216
|
+
return import_path2.default.join(outputDir, "../../.prisma/client");
|
|
7278
7217
|
}
|
|
7279
7218
|
async function generateClient(options) {
|
|
7280
7219
|
const {
|
|
@@ -7295,7 +7234,6 @@ async function generateClient(options) {
|
|
|
7295
7234
|
envPaths,
|
|
7296
7235
|
typedSql
|
|
7297
7236
|
} = options;
|
|
7298
|
-
const clientEngineType = (0, import_internals10.getClientEngineType)(generator);
|
|
7299
7237
|
const { runtimeBase, outputDir } = await getGenerationDirs(options);
|
|
7300
7238
|
const { prismaClientDmmf, fileMap } = await buildClient({
|
|
7301
7239
|
datamodel,
|
|
@@ -7332,44 +7270,28 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
|
7332
7270
|
await (0, import_fs_extra.ensureDir)(outputDir);
|
|
7333
7271
|
await writeFileMap(outputDir, fileMap);
|
|
7334
7272
|
if (copyRuntime || generator.isCustomOutput === true) {
|
|
7335
|
-
const copiedRuntimeDir =
|
|
7273
|
+
const copiedRuntimeDir = import_path2.default.join(outputDir, "runtime");
|
|
7336
7274
|
await (0, import_fs_extra.ensureDir)(copiedRuntimeDir);
|
|
7337
7275
|
await copyRuntimeFiles({
|
|
7338
7276
|
from: runtimeSourcePath,
|
|
7339
7277
|
to: copiedRuntimeDir,
|
|
7340
7278
|
sourceMaps: copyRuntimeSourceMaps,
|
|
7341
|
-
runtimeName:
|
|
7279
|
+
runtimeName: "client"
|
|
7342
7280
|
});
|
|
7343
7281
|
}
|
|
7344
|
-
const
|
|
7345
|
-
if (enginePath) {
|
|
7346
|
-
if (process.env.NETLIFY) {
|
|
7347
|
-
await (0, import_fs_extra.ensureDir)("/tmp/prisma-engines");
|
|
7348
|
-
}
|
|
7349
|
-
for (const [binaryTarget, filePath] of Object.entries(enginePath)) {
|
|
7350
|
-
const fileName = import_path3.default.basename(filePath);
|
|
7351
|
-
let target;
|
|
7352
|
-
if (process.env.NETLIFY && !["rhel-openssl-1.0.x", "rhel-openssl-3.0.x"].includes(binaryTarget)) {
|
|
7353
|
-
target = import_path3.default.join("/tmp/prisma-engines", fileName);
|
|
7354
|
-
} else {
|
|
7355
|
-
target = import_path3.default.join(outputDir, fileName);
|
|
7356
|
-
}
|
|
7357
|
-
await (0, import_fetch_engine.overwriteFile)(filePath, target);
|
|
7358
|
-
}
|
|
7359
|
-
}
|
|
7360
|
-
const schemaTargetPath = import_path3.default.join(outputDir, "schema.prisma");
|
|
7282
|
+
const schemaTargetPath = import_path2.default.join(outputDir, "schema.prisma");
|
|
7361
7283
|
await import_promises.default.writeFile(schemaTargetPath, datamodel, { encoding: "utf-8" });
|
|
7362
7284
|
if (isWasmEngineSupported(provider) && !testMode) {
|
|
7363
7285
|
const suffix = provider === "postgres" ? "postgresql" : provider;
|
|
7364
7286
|
const filename = "query_compiler_bg";
|
|
7365
|
-
const wasmJsBundlePath =
|
|
7287
|
+
const wasmJsBundlePath = import_path2.default.join(runtimeSourcePath, `${filename}.${suffix}.wasm-base64.js`);
|
|
7366
7288
|
const wasmBase64 = require(wasmJsBundlePath).wasm;
|
|
7367
|
-
await import_promises.default.writeFile(
|
|
7368
|
-
await import_promises.default.copyFile(
|
|
7289
|
+
await import_promises.default.writeFile(import_path2.default.join(outputDir, `${filename}.wasm`), Buffer.from(wasmBase64, "base64"));
|
|
7290
|
+
await import_promises.default.copyFile(import_path2.default.join(runtimeSourcePath, `${filename}.${suffix}.js`), import_path2.default.join(outputDir, `${filename}.js`));
|
|
7369
7291
|
}
|
|
7370
7292
|
try {
|
|
7371
7293
|
const prismaCache = (0, import_env_paths.default)("prisma").cache;
|
|
7372
|
-
const signalsPath =
|
|
7294
|
+
const signalsPath = import_path2.default.join(prismaCache, "last-generate");
|
|
7373
7295
|
await import_promises.default.mkdir(prismaCache, { recursive: true });
|
|
7374
7296
|
await import_promises.default.writeFile(signalsPath, Date.now().toString());
|
|
7375
7297
|
} catch {
|
|
@@ -7378,7 +7300,7 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
|
7378
7300
|
function writeFileMap(outputDir, fileMap) {
|
|
7379
7301
|
return Promise.all(
|
|
7380
7302
|
Object.entries(fileMap).map(async ([fileName, content]) => {
|
|
7381
|
-
const absolutePath =
|
|
7303
|
+
const absolutePath = import_path2.default.join(outputDir, fileName);
|
|
7382
7304
|
await import_promises.default.rm(absolutePath, { recursive: true, force: true });
|
|
7383
7305
|
if (typeof content === "string") {
|
|
7384
7306
|
await import_promises.default.writeFile(absolutePath, content);
|
|
@@ -7478,18 +7400,18 @@ async function getGenerationDirs({
|
|
|
7478
7400
|
testMode
|
|
7479
7401
|
}) {
|
|
7480
7402
|
const isCustomOutput = generator.isCustomOutput === true;
|
|
7481
|
-
const normalizedOutputDir =
|
|
7403
|
+
const normalizedOutputDir = import_path2.default.normalize(outputDir);
|
|
7482
7404
|
let userRuntimeImport = isCustomOutput ? "./runtime" : "@prisma/client/runtime";
|
|
7483
7405
|
let userOutputDir = isCustomOutput ? normalizedOutputDir : await getDefaultOutdir(normalizedOutputDir);
|
|
7484
7406
|
if (testMode && runtimeBase) {
|
|
7485
7407
|
userOutputDir = outputDir;
|
|
7486
|
-
userRuntimeImport = (0,
|
|
7408
|
+
userRuntimeImport = (0, import_internals9.pathToPosix)(runtimeBase);
|
|
7487
7409
|
}
|
|
7488
7410
|
if (isCustomOutput) {
|
|
7489
7411
|
await verifyOutputDirectory(userOutputDir, datamodel, schemaPath);
|
|
7490
7412
|
}
|
|
7491
|
-
const userPackageRoot = await (0, import_package_up.packageUp)({ cwd:
|
|
7492
|
-
const userProjectRoot = userPackageRoot ?
|
|
7413
|
+
const userPackageRoot = await (0, import_package_up.packageUp)({ cwd: import_path2.default.dirname(userOutputDir) });
|
|
7414
|
+
const userProjectRoot = userPackageRoot ? import_path2.default.dirname(userPackageRoot) : process.cwd();
|
|
7493
7415
|
return {
|
|
7494
7416
|
runtimeBase: userRuntimeImport,
|
|
7495
7417
|
outputDir: userOutputDir,
|
|
@@ -7499,7 +7421,7 @@ async function getGenerationDirs({
|
|
|
7499
7421
|
async function verifyOutputDirectory(directory, datamodel, schemaPath) {
|
|
7500
7422
|
let content;
|
|
7501
7423
|
try {
|
|
7502
|
-
content = await import_promises.default.readFile(
|
|
7424
|
+
content = await import_promises.default.readFile(import_path2.default.join(directory, "package.json"), "utf8");
|
|
7503
7425
|
} catch (e) {
|
|
7504
7426
|
if (e.code === "ENOENT") {
|
|
7505
7427
|
return;
|
|
@@ -7542,36 +7464,17 @@ function findOutputPathDeclaration(datamodel) {
|
|
|
7542
7464
|
}
|
|
7543
7465
|
return null;
|
|
7544
7466
|
}
|
|
7545
|
-
function getNodeRuntimeName(engineType) {
|
|
7546
|
-
if (engineType === import_internals10.ClientEngineType.Library) {
|
|
7547
|
-
return "library";
|
|
7548
|
-
}
|
|
7549
|
-
if (engineType === import_internals10.ClientEngineType.Client) {
|
|
7550
|
-
return "client";
|
|
7551
|
-
}
|
|
7552
|
-
(0, import_internals10.assertNever)(engineType, "Unknown engine type");
|
|
7553
|
-
}
|
|
7554
7467
|
async function copyRuntimeFiles({ from, to, runtimeName, sourceMaps }) {
|
|
7555
|
-
const files = [
|
|
7556
|
-
// library.d.ts is always included, as it contains the actual runtime type
|
|
7557
|
-
// definitions. Rest of the `runtime.d.ts` files just re-export everything
|
|
7558
|
-
// from `library.d.ts`
|
|
7559
|
-
"library.d.ts",
|
|
7560
|
-
"index-browser.js",
|
|
7561
|
-
"index-browser.d.ts",
|
|
7562
|
-
"wasm-compiler-edge.js"
|
|
7563
|
-
];
|
|
7468
|
+
const files = ["index-browser.js", "index-browser.d.ts", "wasm-compiler-edge.js"];
|
|
7564
7469
|
files.push(`${runtimeName}.js`);
|
|
7565
|
-
|
|
7566
|
-
files.push(`${runtimeName}.d.ts`);
|
|
7567
|
-
}
|
|
7470
|
+
files.push(`${runtimeName}.d.ts`);
|
|
7568
7471
|
if (sourceMaps) {
|
|
7569
7472
|
files.push(...files.filter((file4) => file4.endsWith(".js")).map((file4) => `${file4}.map`));
|
|
7570
7473
|
}
|
|
7571
7474
|
await Promise.all(
|
|
7572
7475
|
files.map(async (file4) => {
|
|
7573
|
-
const sourcePath =
|
|
7574
|
-
const targetPath =
|
|
7476
|
+
const sourcePath = import_path2.default.join(from, file4);
|
|
7477
|
+
const targetPath = import_path2.default.join(to, file4);
|
|
7575
7478
|
if (file4.endsWith(".js")) {
|
|
7576
7479
|
const content = await import_promises.default.readFile(sourcePath, "utf-8");
|
|
7577
7480
|
await import_promises.default.writeFile(targetPath, addPreamble(content));
|
|
@@ -7590,20 +7493,18 @@ var GENERATED_PACKAGE_NAME_PREFIX = "prisma-client-";
|
|
|
7590
7493
|
|
|
7591
7494
|
// src/generator.ts
|
|
7592
7495
|
var import_node_path4 = __toESM(require("node:path"));
|
|
7593
|
-
var import_debug2 = require("@prisma/debug");
|
|
7594
7496
|
var import_engines_version = require("@prisma/engines-version");
|
|
7595
|
-
var
|
|
7596
|
-
var import_ts_pattern = require("ts-pattern");
|
|
7497
|
+
var import_internals11 = require("@prisma/internals");
|
|
7597
7498
|
|
|
7598
7499
|
// package.json
|
|
7599
|
-
var version = "6.19.0-integration-
|
|
7500
|
+
var version = "6.19.0-integration-feat-remove-library-engine.1";
|
|
7600
7501
|
|
|
7601
7502
|
// src/resolvePrismaClient.ts
|
|
7602
7503
|
var import_promises3 = __toESM(require("node:fs/promises"));
|
|
7603
7504
|
var import_node_path3 = __toESM(require("node:path"));
|
|
7604
7505
|
var import_ni = require("@antfu/ni");
|
|
7605
7506
|
var import_debug = require("@prisma/debug");
|
|
7606
|
-
var
|
|
7507
|
+
var import_internals10 = require("@prisma/internals");
|
|
7607
7508
|
|
|
7608
7509
|
// ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
|
|
7609
7510
|
var import_node_buffer2 = require("node:buffer");
|
|
@@ -9230,7 +9131,7 @@ async function resolveOrInstallPrismaClient(baseDir, version2) {
|
|
|
9230
9131
|
if (prismaClientDir) {
|
|
9231
9132
|
return prismaClientDir;
|
|
9232
9133
|
}
|
|
9233
|
-
let projectRoot = (0,
|
|
9134
|
+
let projectRoot = (0, import_internals10.longestCommonPathPrefix)(baseDir, process.cwd());
|
|
9234
9135
|
debug("projectRoot", projectRoot);
|
|
9235
9136
|
const warningTag = `${bold("Warning:")} ${dim("[Prisma auto-install on generate]")}`;
|
|
9236
9137
|
if (projectRoot === void 0) {
|
|
@@ -9258,7 +9159,7 @@ async function resolveOrInstallPrismaClient(baseDir, version2) {
|
|
|
9258
9159
|
throw err;
|
|
9259
9160
|
}
|
|
9260
9161
|
}
|
|
9261
|
-
const prismaCliDir = await (0,
|
|
9162
|
+
const prismaCliDir = await (0, import_internals10.resolvePkg)("prisma", { basedir: baseDir });
|
|
9262
9163
|
if (process.platform === "win32" && await isYarnUsed(baseDir)) {
|
|
9263
9164
|
const hasCli = (s) => prismaCliDir !== void 0 ? s : "";
|
|
9264
9165
|
const missingCli = (s) => prismaCliDir === void 0 ? s : "";
|
|
@@ -9293,8 +9194,8 @@ Please try to install it by hand with ${bold(
|
|
|
9293
9194
|
}
|
|
9294
9195
|
async function findPrismaClientDir(baseDir) {
|
|
9295
9196
|
const resolveOpts = { basedir: baseDir, preserveSymlinks: true };
|
|
9296
|
-
const cliDir = await (0,
|
|
9297
|
-
const clientDir = await (0,
|
|
9197
|
+
const cliDir = await (0, import_internals10.resolvePkg)("prisma", resolveOpts);
|
|
9198
|
+
const clientDir = await (0, import_internals10.resolvePkg)("@prisma/client", resolveOpts);
|
|
9298
9199
|
const resolvedClientDir = clientDir && await import_promises3.default.realpath(clientDir);
|
|
9299
9200
|
debug("prismaCliDir", cliDir);
|
|
9300
9201
|
debug("prismaClientDir", clientDir);
|
|
@@ -9322,7 +9223,6 @@ async function runPackageCmd(cwd, cmd, ...args) {
|
|
|
9322
9223
|
}
|
|
9323
9224
|
|
|
9324
9225
|
// src/generator.ts
|
|
9325
|
-
var debug2 = (0, import_debug2.Debug)("prisma:client:generator");
|
|
9326
9226
|
var PrismaClientJsGenerator = class {
|
|
9327
9227
|
name = "prisma-client-js";
|
|
9328
9228
|
#shouldResolvePrismaClient;
|
|
@@ -9339,19 +9239,17 @@ var PrismaClientJsGenerator = class {
|
|
|
9339
9239
|
this.#runtimePath = runtimePath;
|
|
9340
9240
|
}
|
|
9341
9241
|
async getManifest(config) {
|
|
9342
|
-
const requiresEngines = (0, import_ts_pattern.match)((0, import_internals12.getClientEngineType)(config)).with(import_internals12.ClientEngineType.Library, () => ["libqueryEngine"]).with(import_internals12.ClientEngineType.Client, () => []).exhaustive();
|
|
9343
|
-
debug2("requiresEngines", requiresEngines);
|
|
9344
9242
|
const defaultOutput = this.#shouldResolvePrismaClient ? await this.#getPrismaClientPath(config) : ".prisma/client";
|
|
9345
9243
|
return {
|
|
9346
9244
|
defaultOutput,
|
|
9347
9245
|
prettyName: "Prisma Client",
|
|
9348
9246
|
version,
|
|
9349
|
-
requiresEngines,
|
|
9247
|
+
requiresEngines: [],
|
|
9350
9248
|
requiresEngineVersion: import_engines_version.enginesVersion
|
|
9351
9249
|
};
|
|
9352
9250
|
}
|
|
9353
9251
|
async generate(options) {
|
|
9354
|
-
const outputDir = (0,
|
|
9252
|
+
const outputDir = (0, import_internals11.parseEnvValue)(options.generator.output);
|
|
9355
9253
|
await generateClient({
|
|
9356
9254
|
datamodel: options.datamodel,
|
|
9357
9255
|
schemaPath: options.schemaPath,
|