@prisma/internals 5.23.0-dev.19 → 5.23.0-dev.20
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/{chunk-QOA32UW5.js → chunk-6THUAMGB.js} +5 -5
- package/dist/{chunk-IABMG3F4.js → chunk-77IC3DNO.js} +5 -5
- package/dist/{chunk-2MI66B2K.js → chunk-7PI4C55S.js} +13 -13
- package/dist/{chunk-3XOL7USL.js → chunk-BDGDNUIL.js} +5 -5
- package/dist/{chunk-WMIBAVWZ.js → chunk-C47SCASR.js} +5 -5
- package/dist/{chunk-OBCNUIOJ.js → chunk-CQSMDDKM.js} +14 -14
- package/dist/{chunk-J3JE5NVO.js → chunk-CZDIXJEO.js} +56 -32
- package/dist/{chunk-XE4JX3AP.js → chunk-DTEXPX36.js} +12 -12
- package/dist/{chunk-ZTNSQE4R.js → chunk-EBU6N6T4.js} +5 -5
- package/dist/{chunk-NKSEI4HI.js → chunk-G5ET5ITV.js} +13 -13
- package/dist/{chunk-26K7GGXE.js → chunk-H7DE4ZVH.js} +5 -5
- package/dist/{chunk-UPKJODIS.js → chunk-HMF3VL6Z.js} +60 -52
- package/dist/{chunk-OSOXVAZB.js → chunk-HPF5G47V.js} +9 -9
- package/dist/{chunk-IAEMHQAC.js → chunk-I4467NNA.js} +5 -5
- package/dist/{chunk-C4DBWLTJ.js → chunk-K6DMP57P.js} +5 -5
- package/dist/{chunk-YVDQPNPO.js → chunk-KKG2ZZJE.js} +5 -5
- package/dist/{chunk-4NFLAUKD.js → chunk-KQOJB3ZW.js} +70 -70
- package/dist/{chunk-PTDF5V63.js → chunk-LHLIU6FO.js} +5 -5
- package/dist/{chunk-3U2ANLD3.js → chunk-MGZOEY6N.js} +6 -6
- package/dist/{chunk-ASJ5LZTB.js → chunk-NBU7LQCG.js} +5 -5
- package/dist/{chunk-3F7YBP5D.js → chunk-OTU7IKOX.js} +12 -12
- package/dist/{chunk-IFMDTCUD.js → chunk-QADJGXRG.js} +60 -52
- package/dist/{chunk-KJ6ETQRZ.js → chunk-RQ3C6TME.js} +11 -11
- package/dist/{chunk-CRMPQZ4W.js → chunk-RUUX4JI7.js} +14 -14
- package/dist/{chunk-XDN6ROV6.js → chunk-S34YTBDJ.js} +5 -5
- package/dist/{chunk-FTS2IEWX.js → chunk-S57RMXZW.js} +5 -5
- package/dist/{chunk-XLYQ6PQW.js → chunk-SLBBRUQS.js} +15 -15
- package/dist/{chunk-WCRKL55L.js → chunk-V2ZF7ETH.js} +7 -7
- package/dist/{chunk-7ASRGBGS.js → chunk-VEODS3ZR.js} +4 -4
- package/dist/{chunk-YDZVEVUG.js → chunk-VRT7T6MF.js} +73 -73
- package/dist/{chunk-SOZJQQOQ.js → chunk-ZBCEU6ZR.js} +11 -11
- package/dist/cli/checkUnsupportedDataProxy.js +23 -23
- package/dist/cli/getSchema.js +28 -28
- package/dist/cli/hashes.js +23 -23
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +22 -22
- package/dist/engine-commands/getConfig.js +12 -12
- package/dist/engine-commands/getDmmf.js +9 -9
- package/dist/engine-commands/index.js +31 -31
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +9 -9
- package/dist/engine-commands/queryEngineCommons.js +6 -6
- package/dist/engine-commands/relativizePathInPSLError.js +2 -2
- package/dist/engine-commands/validate.js +9 -9
- package/dist/errorReporting.js +6 -6
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +22 -22
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.js +3 -3
- package/dist/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.js +4 -4
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +22 -22
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.js +3 -3
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +23 -23
- package/dist/get-generators/getGenerators.js +25 -25
- package/dist/getPackedPackage.js +2 -2
- package/dist/index.js +54 -54
- package/dist/{multipart-parser-LCETWFPE.js → multipart-parser-32AROPTR.js} +9 -6
- package/dist/sendPanic.js +22 -22
- package/dist/utils/cloudflareD1.js +2 -2
- package/dist/utils/getEnvPaths.js +22 -22
- package/dist/utils/getGitHubIssueUrl.js +3 -3
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +22 -22
- package/dist/utils/loadEnvFile.js +22 -22
- package/dist/wasm.js +4 -4
- package/package.json +8 -8
|
@@ -26,8 +26,8 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__g
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS2 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export2(
|
|
29
|
+
var chunk_QADJGXRG_exports = {};
|
|
30
|
+
__export2(chunk_QADJGXRG_exports, {
|
|
31
31
|
checkTypeScriptVersion: () => checkTypeScriptVersion,
|
|
32
32
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
|
33
33
|
debug: () => debug5,
|
|
@@ -55,10 +55,10 @@ __export2(chunk_IFMDTCUD_exports, {
|
|
|
55
55
|
sendPanic: () => sendPanic,
|
|
56
56
|
skipIndex: () => skipIndex
|
|
57
57
|
});
|
|
58
|
-
module.exports = __toCommonJS2(
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
58
|
+
module.exports = __toCommonJS2(chunk_QADJGXRG_exports);
|
|
59
|
+
var import_chunk_77IC3DNO = require("./chunk-77IC3DNO.js");
|
|
60
|
+
var import_chunk_MGZOEY6N = require("./chunk-MGZOEY6N.js");
|
|
61
|
+
var import_chunk_S57RMXZW = require("./chunk-S57RMXZW.js");
|
|
62
62
|
var import_chunk_EUTJYQDW = require("./chunk-EUTJYQDW.js");
|
|
63
63
|
var import_chunk_IPKE37QC = require("./chunk-IPKE37QC.js");
|
|
64
64
|
var import_chunk_KEBDP2C3 = require("./chunk-KEBDP2C3.js");
|
|
@@ -76,25 +76,25 @@ var import_chunk_2MWIMEFK = require("./chunk-2MWIMEFK.js");
|
|
|
76
76
|
var import_chunk_L6GBFCXG = require("./chunk-L6GBFCXG.js");
|
|
77
77
|
var import_chunk_KDHESRKE = require("./chunk-KDHESRKE.js");
|
|
78
78
|
var import_chunk_J77ZIDXB = require("./chunk-J77ZIDXB.js");
|
|
79
|
-
var
|
|
79
|
+
var import_chunk_SLBBRUQS = require("./chunk-SLBBRUQS.js");
|
|
80
80
|
var import_chunk_EPJYKNCQ = require("./chunk-EPJYKNCQ.js");
|
|
81
81
|
var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
|
|
82
82
|
var import_chunk_TSJICM5S = require("./chunk-TSJICM5S.js");
|
|
83
|
-
var
|
|
84
|
-
var
|
|
85
|
-
var
|
|
86
|
-
var
|
|
83
|
+
var import_chunk_BDGDNUIL = require("./chunk-BDGDNUIL.js");
|
|
84
|
+
var import_chunk_OTU7IKOX = require("./chunk-OTU7IKOX.js");
|
|
85
|
+
var import_chunk_CQSMDDKM = require("./chunk-CQSMDDKM.js");
|
|
86
|
+
var import_chunk_ZBCEU6ZR = require("./chunk-ZBCEU6ZR.js");
|
|
87
87
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
88
88
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
89
|
-
var
|
|
89
|
+
var import_chunk_LHLIU6FO = require("./chunk-LHLIU6FO.js");
|
|
90
90
|
var import_chunk_MUPZUVSI = require("./chunk-MUPZUVSI.js");
|
|
91
91
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
92
92
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
|
93
93
|
var import_chunk_M3GBKLGE = require("./chunk-M3GBKLGE.js");
|
|
94
94
|
var import_chunk_635TMBAP = require("./chunk-635TMBAP.js");
|
|
95
95
|
var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
|
96
|
-
var
|
|
97
|
-
var
|
|
96
|
+
var import_chunk_KQOJB3ZW = require("./chunk-KQOJB3ZW.js");
|
|
97
|
+
var import_chunk_CZDIXJEO = require("./chunk-CZDIXJEO.js");
|
|
98
98
|
var import_chunk_FUUQ6FJ4 = require("./chunk-FUUQ6FJ4.js");
|
|
99
99
|
var import_chunk_KKMREGHN = require("./chunk-KKMREGHN.js");
|
|
100
100
|
var import_chunk_AZNLB67U = require("./chunk-AZNLB67U.js");
|
|
@@ -438,7 +438,7 @@ var require_readdir_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
438
438
|
module2.exports = readdirGlob;
|
|
439
439
|
var fs8 = (0, import_chunk_WWAWV7DQ.__require)("fs");
|
|
440
440
|
var { EventEmitter } = (0, import_chunk_WWAWV7DQ.__require)("events");
|
|
441
|
-
var { Minimatch } = (0,
|
|
441
|
+
var { Minimatch } = (0, import_chunk_CZDIXJEO.require_minimatch)();
|
|
442
442
|
var { resolve } = (0, import_chunk_WWAWV7DQ.__require)("path");
|
|
443
443
|
function readdir(dir2, strict) {
|
|
444
444
|
return new Promise((resolve2, reject2) => {
|
|
@@ -453,12 +453,16 @@ var require_readdir_glob = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
453
453
|
}
|
|
454
454
|
break;
|
|
455
455
|
case "ENOTSUP":
|
|
456
|
+
// Operation not supported
|
|
456
457
|
case "ENOENT":
|
|
458
|
+
// No such file or directory
|
|
457
459
|
case "ENAMETOOLONG":
|
|
460
|
+
// Filename too long
|
|
458
461
|
case "UNKNOWN":
|
|
459
462
|
resolve2([]);
|
|
460
463
|
break;
|
|
461
464
|
case "ELOOP":
|
|
465
|
+
// Too many levels of symbolic links
|
|
462
466
|
default:
|
|
463
467
|
reject2(err);
|
|
464
468
|
break;
|
|
@@ -3617,7 +3621,7 @@ var require_stream_writable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3617
3621
|
var Duplex;
|
|
3618
3622
|
Writable.WritableState = WritableState;
|
|
3619
3623
|
var util = Object.create(require_util());
|
|
3620
|
-
util.inherits = (0,
|
|
3624
|
+
util.inherits = (0, import_chunk_CZDIXJEO.require_inherits)();
|
|
3621
3625
|
var internalUtil = {
|
|
3622
3626
|
deprecate: require_node()
|
|
3623
3627
|
};
|
|
@@ -4055,7 +4059,7 @@ var require_stream_duplex = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4055
4059
|
};
|
|
4056
4060
|
module2.exports = Duplex;
|
|
4057
4061
|
var util = Object.create(require_util());
|
|
4058
|
-
util.inherits = (0,
|
|
4062
|
+
util.inherits = (0, import_chunk_CZDIXJEO.require_inherits)();
|
|
4059
4063
|
var Readable = require_stream_readable();
|
|
4060
4064
|
var Writable = require_stream_writable();
|
|
4061
4065
|
util.inherits(Duplex, Readable);
|
|
@@ -4376,7 +4380,7 @@ var require_stream_readable = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4376
4380
|
return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
|
|
4377
4381
|
}
|
|
4378
4382
|
var util = Object.create(require_util());
|
|
4379
|
-
util.inherits = (0,
|
|
4383
|
+
util.inherits = (0, import_chunk_CZDIXJEO.require_inherits)();
|
|
4380
4384
|
var debugUtil = (0, import_chunk_WWAWV7DQ.__require)("util");
|
|
4381
4385
|
var debug8 = void 0;
|
|
4382
4386
|
if (debugUtil && debugUtil.debuglog) {
|
|
@@ -5043,7 +5047,7 @@ var require_stream_transform = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5043
5047
|
module2.exports = Transform;
|
|
5044
5048
|
var Duplex = require_stream_duplex();
|
|
5045
5049
|
var util = Object.create(require_util());
|
|
5046
|
-
util.inherits = (0,
|
|
5050
|
+
util.inherits = (0, import_chunk_CZDIXJEO.require_inherits)();
|
|
5047
5051
|
util.inherits(Transform, Duplex);
|
|
5048
5052
|
function afterTransform(er, data) {
|
|
5049
5053
|
var ts = this._transformState;
|
|
@@ -5141,7 +5145,7 @@ var require_stream_passthrough = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
5141
5145
|
module2.exports = PassThrough;
|
|
5142
5146
|
var Transform = require_stream_transform();
|
|
5143
5147
|
var util = Object.create(require_util());
|
|
5144
|
-
util.inherits = (0,
|
|
5148
|
+
util.inherits = (0, import_chunk_CZDIXJEO.require_inherits)();
|
|
5145
5149
|
util.inherits(PassThrough, Transform);
|
|
5146
5150
|
function PassThrough(options2) {
|
|
5147
5151
|
if (!(this instanceof PassThrough)) return new PassThrough(options2);
|
|
@@ -6427,7 +6431,7 @@ var require_stream_writable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6427
6431
|
var ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END;
|
|
6428
6432
|
var ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;
|
|
6429
6433
|
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
|
6430
|
-
(0,
|
|
6434
|
+
(0, import_chunk_CZDIXJEO.require_inherits)()(Writable, Stream);
|
|
6431
6435
|
function nop() {
|
|
6432
6436
|
}
|
|
6433
6437
|
function WritableState(options2, stream, isDuplex) {
|
|
@@ -6869,7 +6873,7 @@ var require_stream_duplex2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
6869
6873
|
module2.exports = Duplex;
|
|
6870
6874
|
var Readable = require_stream_readable2();
|
|
6871
6875
|
var Writable = require_stream_writable2();
|
|
6872
|
-
(0,
|
|
6876
|
+
(0, import_chunk_CZDIXJEO.require_inherits)()(Duplex, Readable);
|
|
6873
6877
|
{
|
|
6874
6878
|
keys = objectKeys(Writable.prototype);
|
|
6875
6879
|
for (v = 0; v < keys.length; v++) {
|
|
@@ -7646,7 +7650,7 @@ var require_stream_readable2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
7646
7650
|
var StringDecoder;
|
|
7647
7651
|
var createReadableStreamAsyncIterator;
|
|
7648
7652
|
var from;
|
|
7649
|
-
(0,
|
|
7653
|
+
(0, import_chunk_CZDIXJEO.require_inherits)()(Readable, Stream);
|
|
7650
7654
|
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
|
7651
7655
|
var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
|
|
7652
7656
|
function prependListener(emitter, event, fn) {
|
|
@@ -8351,7 +8355,7 @@ var require_stream_transform2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8351
8355
|
var ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING;
|
|
8352
8356
|
var ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;
|
|
8353
8357
|
var Duplex = require_stream_duplex2();
|
|
8354
|
-
(0,
|
|
8358
|
+
(0, import_chunk_CZDIXJEO.require_inherits)()(Transform, Duplex);
|
|
8355
8359
|
function afterTransform(er, data) {
|
|
8356
8360
|
var ts = this._transformState;
|
|
8357
8361
|
ts.transforming = false;
|
|
@@ -8445,7 +8449,7 @@ var require_stream_passthrough2 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
8445
8449
|
"use strict";
|
|
8446
8450
|
module2.exports = PassThrough;
|
|
8447
8451
|
var Transform = require_stream_transform2();
|
|
8448
|
-
(0,
|
|
8452
|
+
(0, import_chunk_CZDIXJEO.require_inherits)()(PassThrough, Transform);
|
|
8449
8453
|
function PassThrough(options2) {
|
|
8450
8454
|
if (!(this instanceof PassThrough)) return new PassThrough(options2);
|
|
8451
8455
|
Transform.call(this, options2);
|
|
@@ -9319,7 +9323,7 @@ var require_file = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
9319
9323
|
var difference = require_difference();
|
|
9320
9324
|
var union = require_union();
|
|
9321
9325
|
var isPlainObject = require_isPlainObject();
|
|
9322
|
-
var glob = (0,
|
|
9326
|
+
var glob = (0, import_chunk_CZDIXJEO.require_glob)();
|
|
9323
9327
|
var file = module2.exports = {};
|
|
9324
9328
|
var pathSeparatorRe = /[\/\\]/g;
|
|
9325
9329
|
var processPatterns = function(patterns, fn) {
|
|
@@ -14569,6 +14573,8 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
14569
14573
|
this.inc("patch", identifier, identifierBase);
|
|
14570
14574
|
this.inc("pre", identifier, identifierBase);
|
|
14571
14575
|
break;
|
|
14576
|
+
// If the input is a non-prerelease version, this acts the same as
|
|
14577
|
+
// prepatch.
|
|
14572
14578
|
case "prerelease":
|
|
14573
14579
|
if (this.prerelease.length === 0) {
|
|
14574
14580
|
this.inc("patch", identifier, identifierBase);
|
|
@@ -14596,6 +14602,8 @@ var require_dist = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
14596
14602
|
}
|
|
14597
14603
|
this.prerelease = [];
|
|
14598
14604
|
break;
|
|
14605
|
+
// This probably shouldn't be used publicly.
|
|
14606
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
14599
14607
|
case "pre": {
|
|
14600
14608
|
const base = Number(identifierBase) ? 1 : 0;
|
|
14601
14609
|
if (!identifier && identifierBase === false) {
|
|
@@ -15514,7 +15522,7 @@ async function readSchemaFromDirectory(schemaPath2) {
|
|
|
15514
15522
|
}
|
|
15515
15523
|
const files = await (0, import_schema_files_loader.loadSchemaFiles)(schemaPath2);
|
|
15516
15524
|
debug2("Loading config");
|
|
15517
|
-
const config2 = await (0,
|
|
15525
|
+
const config2 = await (0, import_chunk_CQSMDDKM.getConfig)({
|
|
15518
15526
|
datamodel: files,
|
|
15519
15527
|
ignoreEnvVarErrors: true
|
|
15520
15528
|
});
|
|
@@ -15618,7 +15626,7 @@ function renderDefaultLookupError(error, cwd) {
|
|
|
15618
15626
|
return parts.join("\n");
|
|
15619
15627
|
}
|
|
15620
15628
|
async function getPrismaConfigFromPackageJson(cwd) {
|
|
15621
|
-
const pkgJson = await (0,
|
|
15629
|
+
const pkgJson = await (0, import_chunk_CZDIXJEO.readPackageUp)({ cwd, normalize: false });
|
|
15622
15630
|
const prismaPropertyFromPkgJson = pkgJson?.packageJson?.prisma;
|
|
15623
15631
|
if (!pkgJson) {
|
|
15624
15632
|
return null;
|
|
@@ -15822,8 +15830,8 @@ async function checkUnsupportedDataProxyMessage(command, args, implicitSchema) {
|
|
|
15822
15830
|
if (argName.includes("schema")) {
|
|
15823
15831
|
await loadEnvFile({ schemaPath: argValue, printMessage: false });
|
|
15824
15832
|
const datamodel = await import_fs.default.promises.readFile(argValue, "utf-8");
|
|
15825
|
-
const config2 = await (0,
|
|
15826
|
-
const url = (0,
|
|
15833
|
+
const config2 = await (0, import_chunk_CQSMDDKM.getConfig)({ datamodel, ignoreEnvVarErrors: true });
|
|
15834
|
+
const url = (0, import_chunk_CQSMDDKM.resolveUrl)((0, import_chunk_CQSMDDKM.getEffectiveUrl)(config2.datasources[0]));
|
|
15827
15835
|
if (url?.startsWith("prisma://")) {
|
|
15828
15836
|
return forbiddenCmdWithDataProxyFlagMessage(command);
|
|
15829
15837
|
}
|
|
@@ -15844,7 +15852,7 @@ function getCLIPathHash() {
|
|
|
15844
15852
|
const cliPath = process.argv[1];
|
|
15845
15853
|
return import_crypto.default.createHash("sha256").update(cliPath).digest("hex").substring(0, 8);
|
|
15846
15854
|
}
|
|
15847
|
-
var import_p_map = (0, import_chunk_WWAWV7DQ.__toESM)((0,
|
|
15855
|
+
var import_p_map = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_CZDIXJEO.require_p_map)());
|
|
15848
15856
|
var debug4 = (0, import_debug6.default)("prisma:generator");
|
|
15849
15857
|
async function checkTypeScriptVersion() {
|
|
15850
15858
|
const minVersion = "4.1.0";
|
|
@@ -15899,30 +15907,30 @@ async function prismaClientResolver(baseDir, version3) {
|
|
|
15899
15907
|
);
|
|
15900
15908
|
}
|
|
15901
15909
|
const prismaCliDir = await (0, import_chunk_FUUQ6FJ4.resolvePkg)("prisma", { basedir: baseDir });
|
|
15902
|
-
if (process.platform === "win32" && await (0,
|
|
15910
|
+
if (process.platform === "win32" && await (0, import_chunk_S57RMXZW.isYarnUsed)(baseDir)) {
|
|
15903
15911
|
const hasCli = (s2) => prismaCliDir !== void 0 ? s2 : "";
|
|
15904
15912
|
const missingCli = (s2) => prismaCliDir === void 0 ? s2 : "";
|
|
15905
15913
|
throw new Error(
|
|
15906
15914
|
`Could not resolve ${missingCli(`${(0, import_chunk_PG5FDKSF.bold)("prisma")} and `)}${(0, import_chunk_PG5FDKSF.bold)(
|
|
15907
15915
|
"@prisma/client"
|
|
15908
15916
|
)} in the current project. Please install ${hasCli("it")}${missingCli("them")} with ${missingCli(
|
|
15909
|
-
`${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.green)(`${await (0,
|
|
15910
|
-
)}${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.green)(`${await (0,
|
|
15911
|
-
await (0,
|
|
15917
|
+
`${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.green)(`${await (0, import_chunk_MGZOEY6N.getPackageCmd)(baseDir, "add", "prisma", "-D")}`))} and `
|
|
15918
|
+
)}${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.green)(`${await (0, import_chunk_MGZOEY6N.getPackageCmd)(baseDir, "add", "@prisma/client")}`))}, and rerun ${(0, import_chunk_PG5FDKSF.bold)(
|
|
15919
|
+
await (0, import_chunk_MGZOEY6N.getPackageCmd)(baseDir, "execute", "prisma generate")
|
|
15912
15920
|
)} \u{1F64F}.`
|
|
15913
15921
|
);
|
|
15914
15922
|
}
|
|
15915
15923
|
if (!prismaCliDir) {
|
|
15916
|
-
await (0,
|
|
15924
|
+
await (0, import_chunk_77IC3DNO.runPackageCmd)(projectRoot, "add", `prisma@${version3 ?? "latest"}`, "-D", "--silent");
|
|
15917
15925
|
}
|
|
15918
|
-
await (0,
|
|
15926
|
+
await (0, import_chunk_77IC3DNO.runPackageCmd)(projectRoot, "add", `@prisma/client@${version3 ?? "latest"}`, "--silent");
|
|
15919
15927
|
prismaClientDir = await (0, import_chunk_KEBDP2C3.findPrismaClientDir)(import_path4.default.join(".", baseDir));
|
|
15920
15928
|
if (!prismaClientDir) {
|
|
15921
15929
|
throw new Error(
|
|
15922
15930
|
`Could not resolve @prisma/client despite the installation that we just tried.
|
|
15923
15931
|
Please try to install it by hand with ${(0, import_chunk_PG5FDKSF.bold)(
|
|
15924
|
-
(0, import_chunk_PG5FDKSF.green)(`${await (0,
|
|
15925
|
-
)} and rerun ${(0, import_chunk_PG5FDKSF.bold)(await (0,
|
|
15932
|
+
(0, import_chunk_PG5FDKSF.green)(`${await (0, import_chunk_MGZOEY6N.getPackageCmd)(baseDir, "add", "@prisma/client")}`)
|
|
15933
|
+
)} and rerun ${(0, import_chunk_PG5FDKSF.bold)(await (0, import_chunk_MGZOEY6N.getPackageCmd)(baseDir, "execute", "prisma generate"))} \u{1F64F}.`
|
|
15926
15934
|
);
|
|
15927
15935
|
}
|
|
15928
15936
|
console.info(
|
|
@@ -15934,7 +15942,7 @@ Please try to install it by hand with ${(0, import_chunk_PG5FDKSF.bold)(
|
|
|
15934
15942
|
throw new Error(
|
|
15935
15943
|
`Could not resolve @prisma/client.
|
|
15936
15944
|
Please try to install it with ${(0, import_chunk_PG5FDKSF.bold)((0, import_chunk_PG5FDKSF.green)("npm install @prisma/client"))} and rerun ${(0, import_chunk_PG5FDKSF.bold)(
|
|
15937
|
-
await (0,
|
|
15945
|
+
await (0, import_chunk_MGZOEY6N.getPackageCmd)(baseDir, "execute", "prisma generate")
|
|
15938
15946
|
)} \u{1F64F}.`
|
|
15939
15947
|
);
|
|
15940
15948
|
}
|
|
@@ -15995,7 +16003,7 @@ async function getGenerators(options) {
|
|
|
15995
16003
|
prismaPath = binaryPathsWithEngineType[queryEngineBinaryType][binaryTarget];
|
|
15996
16004
|
}
|
|
15997
16005
|
}
|
|
15998
|
-
const config = await (0,
|
|
16006
|
+
const config = await (0, import_chunk_CQSMDDKM.getConfig)({
|
|
15999
16007
|
datamodel: schemas,
|
|
16000
16008
|
datamodelPath: schemaPath,
|
|
16001
16009
|
prismaPath,
|
|
@@ -16006,7 +16014,7 @@ async function getGenerators(options) {
|
|
|
16006
16014
|
}
|
|
16007
16015
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(config.warnings);
|
|
16008
16016
|
const previewFeatures = (0, import_chunk_TSJICM5S.extractPreviewFeatures)(config);
|
|
16009
|
-
const dmmf = await (0,
|
|
16017
|
+
const dmmf = await (0, import_chunk_ZBCEU6ZR.getDMMF)({
|
|
16010
16018
|
datamodel: schemas,
|
|
16011
16019
|
datamodelPath: schemaPath,
|
|
16012
16020
|
prismaPath,
|
|
@@ -16067,7 +16075,7 @@ The generator needs to either define the \`defaultOutput\` path in the manifest
|
|
|
16067
16075
|
fromEnvVar: "null"
|
|
16068
16076
|
};
|
|
16069
16077
|
}
|
|
16070
|
-
const datamodel = (0,
|
|
16078
|
+
const datamodel = (0, import_chunk_OTU7IKOX.mergeSchemas)({ schemas });
|
|
16071
16079
|
const envPaths2 = await getEnvPaths(schemaPath, { cwd: generator.output.value });
|
|
16072
16080
|
const options2 = {
|
|
16073
16081
|
datamodel,
|
|
@@ -16150,7 +16158,7 @@ generator gen {
|
|
|
16150
16158
|
debug6({ generatorBinaryPaths });
|
|
16151
16159
|
generator.setBinaryPaths(generatorBinaryPaths);
|
|
16152
16160
|
if (engineVersion !== version && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
|
|
16153
|
-
const customDmmf = await (0,
|
|
16161
|
+
const customDmmf = await (0, import_chunk_ZBCEU6ZR.getDMMF)({
|
|
16154
16162
|
datamodel: schemas,
|
|
16155
16163
|
datamodelPath: schemaPath,
|
|
16156
16164
|
prismaPath: generatorBinaryPaths[queryEngineType]?.[binaryTarget],
|
|
@@ -16318,16 +16326,16 @@ async function sendPanic({
|
|
|
16318
16326
|
sqlDump: void 0,
|
|
16319
16327
|
dbVersion
|
|
16320
16328
|
};
|
|
16321
|
-
const signedUrl = await (0,
|
|
16329
|
+
const signedUrl = await (0, import_chunk_KQOJB3ZW.createErrorReport)(params);
|
|
16322
16330
|
try {
|
|
16323
16331
|
if (error.schemaPath) {
|
|
16324
16332
|
const zip = await makeErrorZip(error);
|
|
16325
|
-
await (0,
|
|
16333
|
+
await (0, import_chunk_KQOJB3ZW.uploadZip)(zip, signedUrl);
|
|
16326
16334
|
}
|
|
16327
16335
|
} catch (zipUploadError) {
|
|
16328
16336
|
console.error(`Error uploading zip file: ${zipUploadError.message}`);
|
|
16329
16337
|
}
|
|
16330
|
-
const id = await (0,
|
|
16338
|
+
const id = await (0, import_chunk_KQOJB3ZW.makeErrorReportCompleted)(signedUrl);
|
|
16331
16339
|
return id;
|
|
16332
16340
|
}
|
|
16333
16341
|
function concatSchemaForReport(schemaFiles) {
|
|
@@ -16434,7 +16442,7 @@ ${(0, import_chunk_PG5FDKSF.bold)("Thanks a lot for your help! \u{1F64F}")}`);
|
|
|
16434
16442
|
console.error(`${(0, import_chunk_PG5FDKSF.gray)("Error report submission failed due to: ")}`, error2);
|
|
16435
16443
|
}
|
|
16436
16444
|
}
|
|
16437
|
-
await (0,
|
|
16445
|
+
await (0, import_chunk_SLBBRUQS.wouldYouLikeToCreateANewIssue)({
|
|
16438
16446
|
prompt: !shouldSubmitReport,
|
|
16439
16447
|
error,
|
|
16440
16448
|
cliVersion: cliVersion2,
|
|
@@ -16448,7 +16456,7 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
|
16448
16456
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
|
16449
16457
|
handleFormatPanic(
|
|
16450
16458
|
() => {
|
|
16451
|
-
|
|
16459
|
+
import_chunk_LHLIU6FO.prismaSchemaWasm.debug_panic();
|
|
16452
16460
|
},
|
|
16453
16461
|
{ schemas: schemas2 }
|
|
16454
16462
|
);
|
|
@@ -16468,12 +16476,12 @@ async function formatSchema({ schemas: schemas2 }, inputFormattingOptions) {
|
|
|
16468
16476
|
() => {
|
|
16469
16477
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas2), documentFormattingParams);
|
|
16470
16478
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
|
16471
|
-
const lintDiagnostics2 = (0,
|
|
16479
|
+
const lintDiagnostics2 = (0, import_chunk_BDGDNUIL.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
|
16472
16480
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
|
16473
16481
|
},
|
|
16474
16482
|
{ schemas: schemas2 }
|
|
16475
16483
|
);
|
|
16476
|
-
const lintWarnings = (0,
|
|
16484
|
+
const lintWarnings = (0, import_chunk_BDGDNUIL.getLintWarningsAsText)(lintDiagnostics);
|
|
16477
16485
|
if (lintWarnings && import_chunk_AZNLB67U.logger_exports.should.warn()) {
|
|
16478
16486
|
console.warn(lintWarnings);
|
|
16479
16487
|
}
|
|
@@ -16503,7 +16511,7 @@ function handleFormatPanic(tryCb, { schemas: schemas2 }) {
|
|
|
16503
16511
|
}
|
|
16504
16512
|
}
|
|
16505
16513
|
function formatWasm(schema, documentFormattingParams) {
|
|
16506
|
-
const formattedSchema =
|
|
16514
|
+
const formattedSchema = import_chunk_LHLIU6FO.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
|
16507
16515
|
return formattedSchema;
|
|
16508
16516
|
}
|
|
16509
16517
|
/*! Bundled license information:
|
|
@@ -26,18 +26,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_RQ3C6TME_exports = {};
|
|
30
|
+
__export(chunk_RQ3C6TME_exports, {
|
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
|
32
32
|
getDMMF: () => getDMMF
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_RQ3C6TME_exports);
|
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
36
|
-
var
|
|
37
|
-
var
|
|
36
|
+
var import_chunk_I4467NNA = require("./chunk-I4467NNA.js");
|
|
37
|
+
var import_chunk_K6DMP57P = require("./chunk-K6DMP57P.js");
|
|
38
38
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
|
39
39
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
40
|
-
var
|
|
40
|
+
var import_chunk_KKG2ZZJE = require("./chunk-KKG2ZZJE.js");
|
|
41
41
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
42
42
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
|
43
43
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
@@ -60,13 +60,13 @@ ${detailsHeader} ${message}`;
|
|
|
60
60
|
}).exhaustive();
|
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
62
62
|
[Context: getDmmf]`;
|
|
63
|
-
super((0,
|
|
63
|
+
super((0, import_chunk_K6DMP57P.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
64
64
|
this.name = "GetDmmfError";
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
async function getDMMF(options) {
|
|
68
68
|
warnOnDeprecatedFeatureFlag(options.previewFeatures);
|
|
69
|
-
const debugErrorType = (0,
|
|
69
|
+
const debugErrorType = (0, import_chunk_I4467NNA.createDebugErrorType)(debug, "getDmmfWasm");
|
|
70
70
|
debug(`Using getDmmf Wasm`);
|
|
71
71
|
const dmmfPipeline = (0, import_function.pipe)(
|
|
72
72
|
(0, import_chunk_7MD6344A.tryCatch2)(
|
|
@@ -91,13 +91,13 @@ async function getDMMF(options) {
|
|
|
91
91
|
() => {
|
|
92
92
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
|
93
93
|
debug("Triggering a Rust panic...");
|
|
94
|
-
|
|
94
|
+
import_chunk_KKG2ZZJE.prismaSchemaWasm.debug_panic();
|
|
95
95
|
}
|
|
96
96
|
const params = JSON.stringify({
|
|
97
97
|
prismaSchema: datamodel,
|
|
98
98
|
noColor: Boolean(process.env.NO_COLOR)
|
|
99
99
|
});
|
|
100
|
-
const data =
|
|
100
|
+
const data = import_chunk_KKG2ZZJE.prismaSchemaWasm.get_dmmf(params);
|
|
101
101
|
return data;
|
|
102
102
|
},
|
|
103
103
|
(e) => ({
|
|
@@ -158,7 +158,7 @@ Datamodel path: "${e.datamodelPath}"`,
|
|
|
158
158
|
return panic;
|
|
159
159
|
}
|
|
160
160
|
const errorOutput = e.error.message;
|
|
161
|
-
return new GetDmmfError((0,
|
|
161
|
+
return new GetDmmfError((0, import_chunk_I4467NNA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
|
162
162
|
}).with({ type: "parse-json" }, (e) => {
|
|
163
163
|
debugErrorType(e);
|
|
164
164
|
return new GetDmmfError({ _tag: "unparsed", message: e.error.message, reason: e.reason });
|
|
@@ -26,22 +26,22 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_RUUX4JI7_exports = {};
|
|
30
|
+
__export(chunk_RUUX4JI7_exports, {
|
|
31
31
|
GetConfigError: () => GetConfigError,
|
|
32
32
|
getConfig: () => getConfig,
|
|
33
33
|
getDirectUrl: () => getDirectUrl,
|
|
34
34
|
getEffectiveUrl: () => getEffectiveUrl,
|
|
35
35
|
resolveUrl: () => resolveUrl
|
|
36
36
|
});
|
|
37
|
-
module.exports = __toCommonJS(
|
|
37
|
+
module.exports = __toCommonJS(chunk_RUUX4JI7_exports);
|
|
38
38
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
39
|
+
var import_chunk_I4467NNA = require("./chunk-I4467NNA.js");
|
|
40
|
+
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
41
|
+
var import_chunk_K6DMP57P = require("./chunk-K6DMP57P.js");
|
|
42
42
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
|
43
43
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
44
|
-
var
|
|
44
|
+
var import_chunk_KKG2ZZJE = require("./chunk-KKG2ZZJE.js");
|
|
45
45
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
46
46
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
|
47
47
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
|
|
|
65
65
|
}).exhaustive();
|
|
66
66
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
67
67
|
[Context: getConfig]`;
|
|
68
|
-
super((0,
|
|
68
|
+
super((0, import_chunk_K6DMP57P.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
69
69
|
this.name = "GetConfigError";
|
|
70
70
|
}
|
|
71
71
|
};
|
|
@@ -83,14 +83,14 @@ function resolveUrl(envValue) {
|
|
|
83
83
|
return urlFromValue ?? urlEnvVarValue;
|
|
84
84
|
}
|
|
85
85
|
async function getConfig(options) {
|
|
86
|
-
const debugErrorType = (0,
|
|
86
|
+
const debugErrorType = (0, import_chunk_I4467NNA.createDebugErrorType)(debug, "getConfigWasm");
|
|
87
87
|
debug(`Using getConfig Wasm`);
|
|
88
88
|
const configEither = (0, import_function.pipe)(
|
|
89
89
|
(0, import_chunk_7MD6344A.tryCatch)(
|
|
90
90
|
() => {
|
|
91
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
|
|
92
92
|
debug("Triggering a Rust panic...");
|
|
93
|
-
|
|
93
|
+
import_chunk_KKG2ZZJE.prismaSchemaWasm.debug_panic();
|
|
94
94
|
}
|
|
95
95
|
const params = JSON.stringify({
|
|
96
96
|
prismaSchema: options.datamodel,
|
|
@@ -98,7 +98,7 @@ async function getConfig(options) {
|
|
|
98
98
|
ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
|
|
99
99
|
env: process.env
|
|
100
100
|
});
|
|
101
|
-
const data =
|
|
101
|
+
const data = import_chunk_KKG2ZZJE.prismaSchemaWasm.get_config(params);
|
|
102
102
|
return data;
|
|
103
103
|
},
|
|
104
104
|
(e) => ({
|
|
@@ -160,12 +160,12 @@ async function getConfig(options) {
|
|
|
160
160
|
return panic;
|
|
161
161
|
}
|
|
162
162
|
const errorOutput = e.error.message;
|
|
163
|
-
return new GetConfigError((0,
|
|
163
|
+
return new GetConfigError((0, import_chunk_I4467NNA.parseQueryEngineError)({ errorOutput, reason: e.reason }));
|
|
164
164
|
}).with({ type: "validation-error" }, (e) => {
|
|
165
165
|
return new GetConfigError({
|
|
166
166
|
_tag: "parsed",
|
|
167
167
|
errorCode: SCHEMA_VALIDATION_ERROR_CODE,
|
|
168
|
-
reason: (0,
|
|
168
|
+
reason: (0, import_chunk_I4467NNA.createSchemaValidationError)(e.reason),
|
|
169
169
|
message: formatErrors(e.error)
|
|
170
170
|
});
|
|
171
171
|
}).otherwise((e) => {
|
|
@@ -195,7 +195,7 @@ async function resolveBinaryTargets(generator) {
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
function formatErrors(errors) {
|
|
198
|
-
const formattedErrors = errors.map((e) => (0,
|
|
198
|
+
const formattedErrors = errors.map((e) => (0, import_chunk_C47SCASR.relativizePathInPSLError)(e.message)).join("\n\n");
|
|
199
199
|
const errorCount = `Validation Error Count: ${errors.length}`;
|
|
200
200
|
return `${formattedErrors}
|
|
201
201
|
${errorCount}`;
|
|
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_S34YTBDJ_exports = {};
|
|
20
|
+
__export(chunk_S34YTBDJ_exports, {
|
|
21
21
|
version: () => version
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var packageJson = (0,
|
|
23
|
+
module.exports = __toCommonJS(chunk_S34YTBDJ_exports);
|
|
24
|
+
var import_chunk_VEODS3ZR = require("./chunk-VEODS3ZR.js");
|
|
25
|
+
var packageJson = (0, import_chunk_VEODS3ZR.require_package)();
|
|
26
26
|
var version = packageJson.version;
|
|
@@ -16,13 +16,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_S57RMXZW_exports = {};
|
|
20
|
+
__export(chunk_S57RMXZW_exports, {
|
|
21
21
|
isYarnUsed: () => isYarnUsed
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_S57RMXZW_exports);
|
|
24
|
+
var import_chunk_VRT7T6MF = require("./chunk-VRT7T6MF.js");
|
|
25
25
|
async function isYarnUsed(baseDir) {
|
|
26
|
-
const packageManager = await (0,
|
|
26
|
+
const packageManager = await (0, import_chunk_VRT7T6MF.detect)({ cwd: baseDir, autoInstall: false, programmatic: true });
|
|
27
27
|
return packageManager === "yarn" || packageManager === "yarn@berry";
|
|
28
28
|
}
|
|
@@ -26,21 +26,21 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_SLBBRUQS_exports = {};
|
|
30
|
+
__export(chunk_SLBBRUQS_exports, {
|
|
31
31
|
getGitHubIssueUrl: () => getGitHubIssueUrl,
|
|
32
32
|
wouldYouLikeToCreateANewIssue: () => wouldYouLikeToCreateANewIssue
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_SLBBRUQS_exports);
|
|
35
35
|
var import_chunk_ODI3VNBD = require("./chunk-ODI3VNBD.js");
|
|
36
36
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
37
37
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
38
38
|
var import_get_platform = require("@prisma/get-platform");
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
var
|
|
39
|
+
var import_node_process = __toESM(require("node:process"));
|
|
40
|
+
var import_node_os = __toESM(require("node:os"));
|
|
41
|
+
var import_node_fs = __toESM(require("node:fs"));
|
|
42
|
+
var import_node_fs2 = __toESM(require("node:fs"));
|
|
43
|
+
var import_node_fs3 = __toESM(require("node:fs"));
|
|
44
44
|
var import_prompts = __toESM(require("prompts"));
|
|
45
45
|
var require_is_windows = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
46
46
|
"../../node_modules/.pnpm/is-windows@1.0.2/node_modules/is-windows/index.js"(exports, module2) {
|
|
@@ -309,7 +309,7 @@ var import_is_windows = (0, import_chunk_WWAWV7DQ.__toESM)(require_is_windows())
|
|
|
309
309
|
var isDockerCached;
|
|
310
310
|
function hasDockerEnv() {
|
|
311
311
|
try {
|
|
312
|
-
|
|
312
|
+
import_node_fs3.default.statSync("/.dockerenv");
|
|
313
313
|
return true;
|
|
314
314
|
} catch {
|
|
315
315
|
return false;
|
|
@@ -317,7 +317,7 @@ function hasDockerEnv() {
|
|
|
317
317
|
}
|
|
318
318
|
function hasDockerCGroup() {
|
|
319
319
|
try {
|
|
320
|
-
return
|
|
320
|
+
return import_node_fs3.default.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
|
|
321
321
|
} catch {
|
|
322
322
|
return false;
|
|
323
323
|
}
|
|
@@ -331,7 +331,7 @@ function isDocker() {
|
|
|
331
331
|
var cachedResult;
|
|
332
332
|
var hasContainerEnv = () => {
|
|
333
333
|
try {
|
|
334
|
-
|
|
334
|
+
import_node_fs2.default.statSync("/run/.containerenv");
|
|
335
335
|
return true;
|
|
336
336
|
} catch {
|
|
337
337
|
return false;
|
|
@@ -344,22 +344,22 @@ function isInsideContainer() {
|
|
|
344
344
|
return cachedResult;
|
|
345
345
|
}
|
|
346
346
|
var isWsl = () => {
|
|
347
|
-
if (
|
|
347
|
+
if (import_node_process.default.platform !== "linux") {
|
|
348
348
|
return false;
|
|
349
349
|
}
|
|
350
|
-
if (
|
|
350
|
+
if (import_node_os.default.release().toLowerCase().includes("microsoft")) {
|
|
351
351
|
if (isInsideContainer()) {
|
|
352
352
|
return false;
|
|
353
353
|
}
|
|
354
354
|
return true;
|
|
355
355
|
}
|
|
356
356
|
try {
|
|
357
|
-
return
|
|
357
|
+
return import_node_fs.default.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isInsideContainer() : false;
|
|
358
358
|
} catch {
|
|
359
359
|
return false;
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
|
-
var is_wsl_default =
|
|
362
|
+
var is_wsl_default = import_node_process.default.env.__IS_WSL_TEST__ ? isWsl : isWsl();
|
|
363
363
|
var import_new_github_issue_url = (0, import_chunk_WWAWV7DQ.__toESM)(require_new_github_issue_url());
|
|
364
364
|
var import_open = (0, import_chunk_WWAWV7DQ.__toESM)(require_open());
|
|
365
365
|
var import_strip_ansi = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_ODI3VNBD.require_strip_ansi)());
|