@prisma/cli-init 0.0.0-dev.202511250125 → 0.0.0-dev.202511260012
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/{_-DD23SZWA.js → _-GAB3WYKL.js} +1 -1
- package/dist/{accelerate-YEFEYVGD.js → accelerate-G7F7TX4S.js} +1201 -785
- package/dist/{chunk-7C5I22R2.js → chunk-IASWUJDO.js} +434 -348
- package/dist/{chunk-ALNPUMV3.js → chunk-PCKKZWAR.js} +1 -1
- package/dist/index.js +132 -138
- package/package.json +1 -1
|
@@ -344,7 +344,7 @@ import internals5 from "@prisma/internals";
|
|
|
344
344
|
import * as Checkpoint from "checkpoint-client";
|
|
345
345
|
|
|
346
346
|
// package.json
|
|
347
|
-
var version = "0.0.0-dev.
|
|
347
|
+
var version = "0.0.0-dev.202511260012";
|
|
348
348
|
|
|
349
349
|
// src/platform/_lib/userAgent.ts
|
|
350
350
|
var debug = Debug("prisma:cli:platform:_lib:userAgent");
|
package/dist/index.js
CHANGED
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
url,
|
|
22
22
|
withResolvers,
|
|
23
23
|
y
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-IASWUJDO.js";
|
|
25
25
|
import {
|
|
26
26
|
credentialsFile,
|
|
27
27
|
poll,
|
|
28
28
|
printPpgInitOutput,
|
|
29
29
|
requestOrThrow,
|
|
30
30
|
successMessage
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-PCKKZWAR.js";
|
|
32
32
|
import {
|
|
33
33
|
__commonJS,
|
|
34
34
|
__require,
|
|
@@ -54,9 +54,9 @@ var require_polyfills = __commonJS({
|
|
|
54
54
|
}
|
|
55
55
|
if (typeof process.chdir === "function") {
|
|
56
56
|
chdir = process.chdir;
|
|
57
|
-
process.chdir = function(
|
|
57
|
+
process.chdir = function(d) {
|
|
58
58
|
cwd = null;
|
|
59
|
-
chdir.call(process,
|
|
59
|
+
chdir.call(process, d);
|
|
60
60
|
};
|
|
61
61
|
if (Object.setPrototypeOf)
|
|
62
62
|
Object.setPrototypeOf(process.chdir, chdir);
|
|
@@ -801,10 +801,10 @@ var require_graceful_fs = __commonJS({
|
|
|
801
801
|
var retryTimer;
|
|
802
802
|
function resetQueue() {
|
|
803
803
|
var now = Date.now();
|
|
804
|
-
for (var
|
|
805
|
-
if (fs3[gracefulQueue][
|
|
806
|
-
fs3[gracefulQueue][
|
|
807
|
-
fs3[gracefulQueue][
|
|
804
|
+
for (var i3 = 0; i3 < fs3[gracefulQueue].length; ++i3) {
|
|
805
|
+
if (fs3[gracefulQueue][i3].length > 2) {
|
|
806
|
+
fs3[gracefulQueue][i3][3] = now;
|
|
807
|
+
fs3[gracefulQueue][i3][4] = now;
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
810
|
retry();
|
|
@@ -963,8 +963,8 @@ var require_retry_operation = __commonJS({
|
|
|
963
963
|
var counts = {};
|
|
964
964
|
var mainError = null;
|
|
965
965
|
var mainErrorCount = 0;
|
|
966
|
-
for (var
|
|
967
|
-
var error = this._errors[
|
|
966
|
+
for (var i3 = 0; i3 < this._errors.length; i3++) {
|
|
967
|
+
var error = this._errors[i3];
|
|
968
968
|
var message = error.message;
|
|
969
969
|
var count = (counts[message] || 0) + 1;
|
|
970
970
|
counts[message] = count;
|
|
@@ -1009,14 +1009,14 @@ var require_retry = __commonJS({
|
|
|
1009
1009
|
throw new Error("minTimeout is greater than maxTimeout");
|
|
1010
1010
|
}
|
|
1011
1011
|
var timeouts = [];
|
|
1012
|
-
for (var
|
|
1013
|
-
timeouts.push(this.createTimeout(
|
|
1012
|
+
for (var i3 = 0; i3 < opts.retries; i3++) {
|
|
1013
|
+
timeouts.push(this.createTimeout(i3, opts));
|
|
1014
1014
|
}
|
|
1015
1015
|
if (options && options.forever && !timeouts.length) {
|
|
1016
|
-
timeouts.push(this.createTimeout(
|
|
1016
|
+
timeouts.push(this.createTimeout(i3, opts));
|
|
1017
1017
|
}
|
|
1018
|
-
timeouts.sort(function(
|
|
1019
|
-
return
|
|
1018
|
+
timeouts.sort(function(a, b) {
|
|
1019
|
+
return a - b;
|
|
1020
1020
|
});
|
|
1021
1021
|
return timeouts;
|
|
1022
1022
|
};
|
|
@@ -1039,8 +1039,8 @@ var require_retry = __commonJS({
|
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
1041
|
}
|
|
1042
|
-
for (var
|
|
1043
|
-
var method = methods[
|
|
1042
|
+
for (var i3 = 0; i3 < methods.length; i3++) {
|
|
1043
|
+
var method = methods[i3];
|
|
1044
1044
|
var original = obj[method];
|
|
1045
1045
|
obj[method] = function retryWrapper(original2) {
|
|
1046
1046
|
var op = exports.operation(options);
|
|
@@ -1539,7 +1539,7 @@ var require_lockfile = __commonJS({
|
|
|
1539
1539
|
const options = locks[file].options;
|
|
1540
1540
|
try {
|
|
1541
1541
|
options.fs.rmdirSync(getLockFile(file, options));
|
|
1542
|
-
} catch (
|
|
1542
|
+
} catch (e2) {
|
|
1543
1543
|
}
|
|
1544
1544
|
}
|
|
1545
1545
|
});
|
|
@@ -1660,7 +1660,7 @@ function normalizeWindowsPath(input2 = "") {
|
|
|
1660
1660
|
if (!input2) {
|
|
1661
1661
|
return input2;
|
|
1662
1662
|
}
|
|
1663
|
-
return input2.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (
|
|
1663
|
+
return input2.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r4) => r4.toUpperCase());
|
|
1664
1664
|
}
|
|
1665
1665
|
var _UNC_REGEX = /^[/\\]{2}/;
|
|
1666
1666
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
@@ -1795,9 +1795,9 @@ function filename(path3) {
|
|
|
1795
1795
|
return base.slice(0, separatorIndex);
|
|
1796
1796
|
}
|
|
1797
1797
|
|
|
1798
|
-
// ../../node_modules/.pnpm/get-port-please@3.
|
|
1799
|
-
import { createServer } from "net";
|
|
1800
|
-
import { networkInterfaces } from "os";
|
|
1798
|
+
// ../../node_modules/.pnpm/get-port-please@3.2.0/node_modules/get-port-please/dist/index.mjs
|
|
1799
|
+
import { createServer, Server } from "net";
|
|
1800
|
+
import { networkInterfaces, tmpdir } from "os";
|
|
1801
1801
|
var unsafePorts = /* @__PURE__ */ new Set([
|
|
1802
1802
|
1,
|
|
1803
1803
|
// tcpmux
|
|
@@ -1966,18 +1966,12 @@ function isUnsafePort(port) {
|
|
|
1966
1966
|
function isSafePort(port) {
|
|
1967
1967
|
return !isUnsafePort(port);
|
|
1968
1968
|
}
|
|
1969
|
-
var __defProp = Object.defineProperty;
|
|
1970
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1971
|
-
var __publicField = (obj, key, value) => {
|
|
1972
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1973
|
-
return value;
|
|
1974
|
-
};
|
|
1975
1969
|
var GetPortError = class extends Error {
|
|
1976
1970
|
constructor(message, opts) {
|
|
1977
1971
|
super(message, opts);
|
|
1978
1972
|
this.message = message;
|
|
1979
|
-
__publicField(this, "name", "GetPortError");
|
|
1980
1973
|
}
|
|
1974
|
+
name = "GetPortError";
|
|
1981
1975
|
};
|
|
1982
1976
|
function _log(verbose, message) {
|
|
1983
1977
|
if (verbose) {
|
|
@@ -1988,11 +1982,11 @@ function _generateRange(from, to) {
|
|
|
1988
1982
|
if (to < from) {
|
|
1989
1983
|
return [];
|
|
1990
1984
|
}
|
|
1991
|
-
const
|
|
1985
|
+
const r4 = [];
|
|
1992
1986
|
for (let index = from; index <= to; index++) {
|
|
1993
|
-
|
|
1987
|
+
r4.push(index);
|
|
1994
1988
|
}
|
|
1995
|
-
return
|
|
1989
|
+
return r4;
|
|
1996
1990
|
}
|
|
1997
1991
|
function _tryPort(port, host) {
|
|
1998
1992
|
return new Promise((resolve2) => {
|
|
@@ -2013,7 +2007,8 @@ function _getLocalHosts(additional) {
|
|
|
2013
2007
|
const hosts = new Set(additional);
|
|
2014
2008
|
for (const _interface of Object.values(networkInterfaces())) {
|
|
2015
2009
|
for (const config of _interface || []) {
|
|
2016
|
-
if (config.address && !config.internal && !config.address.startsWith("fe80::")
|
|
2010
|
+
if (config.address && !config.internal && !config.address.startsWith("fe80::") && // Link-Local
|
|
2011
|
+
!config.address.startsWith("169.254")) {
|
|
2017
2012
|
hosts.add(config.address);
|
|
2018
2013
|
}
|
|
2019
2014
|
}
|
|
@@ -2022,9 +2017,9 @@ function _getLocalHosts(additional) {
|
|
|
2022
2017
|
}
|
|
2023
2018
|
async function _findPort(ports, host) {
|
|
2024
2019
|
for (const port of ports) {
|
|
2025
|
-
const
|
|
2026
|
-
if (
|
|
2027
|
-
return
|
|
2020
|
+
const r4 = await _tryPort(port, host);
|
|
2021
|
+
if (r4) {
|
|
2022
|
+
return r4;
|
|
2028
2023
|
}
|
|
2029
2024
|
}
|
|
2030
2025
|
}
|
|
@@ -2054,7 +2049,6 @@ async function getPort(_userOptions = {}) {
|
|
|
2054
2049
|
_userOptions.port || _userOptions.ports?.length || _userOptions.portRange?.length
|
|
2055
2050
|
);
|
|
2056
2051
|
const options = {
|
|
2057
|
-
name: "default",
|
|
2058
2052
|
random: _port === 0,
|
|
2059
2053
|
ports: [],
|
|
2060
2054
|
portRange: [],
|
|
@@ -2158,118 +2152,118 @@ async function checkPort(port, host = process.env.HOST, verbose) {
|
|
|
2158
2152
|
return port;
|
|
2159
2153
|
}
|
|
2160
2154
|
|
|
2161
|
-
// ../../node_modules/.pnpm/remeda@2.
|
|
2162
|
-
|
|
2163
|
-
|
|
2155
|
+
// ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/lazyDataLastImpl-BDhrIOwR.js
|
|
2156
|
+
function e(e2, t6, n3) {
|
|
2157
|
+
let r4 = (n4) => e2(n4, ...t6);
|
|
2158
|
+
return n3 === void 0 ? r4 : Object.assign(r4, { lazy: n3, lazyArgs: t6 });
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2161
|
+
// ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/purry-DH9cw9sy.js
|
|
2162
|
+
function t(t6, n3, r4) {
|
|
2163
|
+
let i3 = t6.length - n3.length;
|
|
2164
|
+
if (i3 === 0)
|
|
2165
|
+
return t6(...n3);
|
|
2166
|
+
if (i3 === 1)
|
|
2167
|
+
return e(t6, n3, r4);
|
|
2168
|
+
throw Error(`Wrong number of arguments`);
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
// ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/utilityEvaluators-DORpnx39.js
|
|
2172
|
+
var t2 = { done: false, hasNext: false };
|
|
2173
|
+
var r = (e2) => ({ hasNext: true, next: e2, done: false });
|
|
2164
2174
|
|
|
2165
|
-
// ../../node_modules/.pnpm/remeda@2.
|
|
2166
|
-
function
|
|
2167
|
-
let
|
|
2168
|
-
for (;
|
|
2169
|
-
if (
|
|
2170
|
-
let
|
|
2171
|
-
|
|
2175
|
+
// ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/pipe-jLehR9-P.js
|
|
2176
|
+
function t3(e2, ...t6) {
|
|
2177
|
+
let a = e2, o = t6.map((e3) => `lazy` in e3 ? r2(e3) : void 0), s = 0;
|
|
2178
|
+
for (; s < t6.length; ) {
|
|
2179
|
+
if (o[s] === void 0 || !i(a)) {
|
|
2180
|
+
let e4 = t6[s];
|
|
2181
|
+
a = e4(a), s += 1;
|
|
2172
2182
|
continue;
|
|
2173
2183
|
}
|
|
2174
|
-
let
|
|
2175
|
-
for (let
|
|
2176
|
-
let
|
|
2177
|
-
if (
|
|
2184
|
+
let e3 = [];
|
|
2185
|
+
for (let n3 = s; n3 < t6.length; n3++) {
|
|
2186
|
+
let t7 = o[n3];
|
|
2187
|
+
if (t7 === void 0 || (e3.push(t7), t7.isSingle))
|
|
2178
2188
|
break;
|
|
2179
2189
|
}
|
|
2180
|
-
let
|
|
2181
|
-
for (let
|
|
2182
|
-
if (
|
|
2190
|
+
let r4 = [];
|
|
2191
|
+
for (let t7 of a)
|
|
2192
|
+
if (n(t7, r4, e3))
|
|
2183
2193
|
break;
|
|
2184
|
-
let { isSingle:
|
|
2185
|
-
|
|
2194
|
+
let { isSingle: c } = e3.at(-1);
|
|
2195
|
+
a = c ? r4[0] : r4, s += e3.length;
|
|
2186
2196
|
}
|
|
2187
|
-
return
|
|
2197
|
+
return a;
|
|
2188
2198
|
}
|
|
2189
|
-
function
|
|
2190
|
-
if (
|
|
2191
|
-
return
|
|
2192
|
-
let
|
|
2193
|
-
for (let [
|
|
2194
|
-
let { index:
|
|
2195
|
-
if (
|
|
2196
|
-
if (
|
|
2197
|
-
for (let
|
|
2198
|
-
if (
|
|
2199
|
+
function n(t6, r4, i3) {
|
|
2200
|
+
if (i3.length === 0)
|
|
2201
|
+
return r4.push(t6), false;
|
|
2202
|
+
let a = t6, o = t2, s = false;
|
|
2203
|
+
for (let [e2, t7] of i3.entries()) {
|
|
2204
|
+
let { index: c, items: l } = t7;
|
|
2205
|
+
if (l.push(a), o = t7(a, c, l), t7.index += 1, o.hasNext) {
|
|
2206
|
+
if (o.hasMany ?? false) {
|
|
2207
|
+
for (let t8 of o.next)
|
|
2208
|
+
if (n(t8, r4, i3.slice(e2 + 1)))
|
|
2199
2209
|
return true;
|
|
2200
|
-
return
|
|
2210
|
+
return s;
|
|
2201
2211
|
}
|
|
2202
|
-
|
|
2212
|
+
a = o.next;
|
|
2203
2213
|
}
|
|
2204
|
-
if (!
|
|
2214
|
+
if (!o.hasNext)
|
|
2205
2215
|
break;
|
|
2206
|
-
|
|
2216
|
+
o.done && (s = true);
|
|
2207
2217
|
}
|
|
2208
|
-
return
|
|
2218
|
+
return o.hasNext && r4.push(a), s;
|
|
2209
2219
|
}
|
|
2210
|
-
function
|
|
2211
|
-
let { lazy:
|
|
2212
|
-
return Object.assign(
|
|
2220
|
+
function r2(e2) {
|
|
2221
|
+
let { lazy: t6, lazyArgs: n3 } = e2, r4 = t6(...n3);
|
|
2222
|
+
return Object.assign(r4, { isSingle: t6.single ?? false, index: 0, items: [] });
|
|
2213
2223
|
}
|
|
2214
|
-
function
|
|
2215
|
-
return typeof
|
|
2224
|
+
function i(e2) {
|
|
2225
|
+
return typeof e2 == `string` || typeof e2 == `object` && !!e2 && Symbol.iterator in e2;
|
|
2216
2226
|
}
|
|
2217
2227
|
|
|
2218
|
-
// ../../node_modules/.pnpm/remeda@2.
|
|
2219
|
-
function
|
|
2220
|
-
let
|
|
2221
|
-
if (
|
|
2222
|
-
let [
|
|
2223
|
-
return
|
|
2224
|
-
}
|
|
2225
|
-
if (
|
|
2226
|
-
let
|
|
2227
|
-
return Object.assign((
|
|
2228
|
-
}
|
|
2229
|
-
throw
|
|
2228
|
+
// ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/purryFromLazy-3oywCNIb.js
|
|
2229
|
+
function t4(t6, n3) {
|
|
2230
|
+
let r4 = n3.length - t6.length;
|
|
2231
|
+
if (r4 === 1) {
|
|
2232
|
+
let [r5, ...i3] = n3;
|
|
2233
|
+
return t3(r5, { lazy: t6, lazyArgs: i3 });
|
|
2234
|
+
}
|
|
2235
|
+
if (r4 === 0) {
|
|
2236
|
+
let r5 = { lazy: t6, lazyArgs: n3 };
|
|
2237
|
+
return Object.assign((t7) => t3(t7, r5), r5);
|
|
2238
|
+
}
|
|
2239
|
+
throw Error(`Wrong number of arguments`);
|
|
2230
2240
|
}
|
|
2231
2241
|
|
|
2232
|
-
// ../../node_modules/.pnpm/remeda@2.
|
|
2233
|
-
function
|
|
2234
|
-
|
|
2235
|
-
return a2 === void 0 ? t : Object.assign(t, { lazy: a2, lazyArgs: n });
|
|
2242
|
+
// ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/difference-DxYg8_zs.js
|
|
2243
|
+
function r3(...e2) {
|
|
2244
|
+
return t4(i2, e2);
|
|
2236
2245
|
}
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
let
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
}
|
|
2247
|
-
|
|
2248
|
-
// ../../node_modules/.pnpm/remeda@2.21.3/node_modules/remeda/dist/chunk-ENS7GPLZ.js
|
|
2249
|
-
function a(...r) {
|
|
2250
|
-
return u2(o2, r);
|
|
2251
|
-
}
|
|
2252
|
-
function o2(r, t) {
|
|
2253
|
-
let e = [];
|
|
2254
|
-
for (let n = r; n < t; n++)
|
|
2255
|
-
e.push(n);
|
|
2256
|
-
return e;
|
|
2246
|
+
function i2(n3) {
|
|
2247
|
+
if (n3.length === 0)
|
|
2248
|
+
return r;
|
|
2249
|
+
let r4 = /* @__PURE__ */ new Map();
|
|
2250
|
+
for (let e2 of n3)
|
|
2251
|
+
r4.set(e2, (r4.get(e2) ?? 0) + 1);
|
|
2252
|
+
return (t6) => {
|
|
2253
|
+
let n4 = r4.get(t6);
|
|
2254
|
+
return n4 === void 0 || n4 === 0 ? { done: false, hasNext: true, next: t6 } : (r4.set(t6, n4 - 1), t2);
|
|
2255
|
+
};
|
|
2257
2256
|
}
|
|
2258
2257
|
|
|
2259
|
-
// ../../node_modules/.pnpm/remeda@2.
|
|
2260
|
-
function
|
|
2261
|
-
return
|
|
2258
|
+
// ../../node_modules/.pnpm/remeda@2.32.0/node_modules/remeda/dist/range-amdmPz_6.js
|
|
2259
|
+
function t5(...t6) {
|
|
2260
|
+
return t(n2, t6);
|
|
2262
2261
|
}
|
|
2263
|
-
function
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
n.set(r, (n.get(r) ?? 0) + 1);
|
|
2269
|
-
return (r) => {
|
|
2270
|
-
let t = n.get(r);
|
|
2271
|
-
return t === void 0 || t === 0 ? { done: false, hasNext: true, next: r } : (n.set(r, t - 1), s);
|
|
2272
|
-
};
|
|
2262
|
+
function n2(e2, t6) {
|
|
2263
|
+
let n3 = [];
|
|
2264
|
+
for (let r4 = e2; r4 < t6; r4++)
|
|
2265
|
+
n3.push(r4);
|
|
2266
|
+
return n3;
|
|
2273
2267
|
}
|
|
2274
2268
|
|
|
2275
2269
|
// ../../dev/server/src/port.ts
|
|
@@ -2350,7 +2344,7 @@ async function tryAnyPort(options) {
|
|
|
2350
2344
|
...Object.values(portsUsedByThisServerLastTime || {})
|
|
2351
2345
|
];
|
|
2352
2346
|
const maximumSpecificPort = Math.min(Math.max(minimumPort, ...excludedPorts) + 100, MAX_PORT);
|
|
2353
|
-
const ports =
|
|
2347
|
+
const ports = r3(t5(minimumPort, maximumSpecificPort), excludedPorts);
|
|
2354
2348
|
const defaultPort2 = {
|
|
2355
2349
|
port: DEFAULT_SERVER_PORT,
|
|
2356
2350
|
databasePort: DEFAULT_DATABASE_PORT,
|
|
@@ -2645,7 +2639,7 @@ async function getApp(port, dbServer, serverState) {
|
|
|
2645
2639
|
const { debug } = serverState;
|
|
2646
2640
|
const [{ Hono }, { accelerateRoute }, { utilityRoute }] = await Promise.all([
|
|
2647
2641
|
import("hono/tiny"),
|
|
2648
|
-
import("./accelerate-
|
|
2642
|
+
import("./accelerate-G7F7TX4S.js"),
|
|
2649
2643
|
import("./utility-W6LOZZIT.js")
|
|
2650
2644
|
]);
|
|
2651
2645
|
const app = new Hono();
|
|
@@ -3141,7 +3135,7 @@ var getRegionsOrThrow = async (input2) => {
|
|
|
3141
3135
|
};
|
|
3142
3136
|
var getPrismaPostgresRegionsOrThrow = async (input2) => {
|
|
3143
3137
|
const regions = await getRegionsOrThrow(input2);
|
|
3144
|
-
const ppgRegions = regions.filter((_) => _.ppgStatus !== "unsupported").sort((
|
|
3138
|
+
const ppgRegions = regions.filter((_) => _.ppgStatus !== "unsupported").sort((a, b) => b.displayName.localeCompare(a.displayName));
|
|
3145
3139
|
return ppgRegions;
|
|
3146
3140
|
};
|
|
3147
3141
|
|
|
@@ -3437,7 +3431,7 @@ var Init = class _Init {
|
|
|
3437
3431
|
let generatedSchema;
|
|
3438
3432
|
let generatedName;
|
|
3439
3433
|
if (isPpgCommand) {
|
|
3440
|
-
const PlatformCommands = await import("./_-
|
|
3434
|
+
const PlatformCommands = await import("./_-GAB3WYKL.js");
|
|
3441
3435
|
const credentials = await credentialsFile.load();
|
|
3442
3436
|
if (internals.isError(credentials))
|
|
3443
3437
|
throw credentials;
|
|
@@ -3474,9 +3468,9 @@ var Init = class _Init {
|
|
|
3474
3468
|
})
|
|
3475
3469
|
})).json()
|
|
3476
3470
|
));
|
|
3477
|
-
} catch (
|
|
3471
|
+
} catch (e2) {
|
|
3478
3472
|
spinner2.fail();
|
|
3479
|
-
throw
|
|
3473
|
+
throw e2;
|
|
3480
3474
|
}
|
|
3481
3475
|
spinner2.succeed("Schema is ready");
|
|
3482
3476
|
}
|
|
@@ -3621,15 +3615,15 @@ var Init = class _Init {
|
|
|
3621
3615
|
const gitignorePath = path2.join(outputDir, ".gitignore");
|
|
3622
3616
|
try {
|
|
3623
3617
|
fs2.writeFileSync(gitignorePath, defaultGitIgnore(), { flag: "wx" });
|
|
3624
|
-
} catch (
|
|
3625
|
-
if (
|
|
3618
|
+
} catch (e2) {
|
|
3619
|
+
if (e2.code === "EEXIST") {
|
|
3626
3620
|
warnings.push(
|
|
3627
3621
|
`${yellow(
|
|
3628
3622
|
"warn"
|
|
3629
3623
|
)} You already have a .gitignore file. Don't forget to add \`.env\` in it to not commit any private information.`
|
|
3630
3624
|
);
|
|
3631
3625
|
} else {
|
|
3632
|
-
console.error("Failed to write .gitignore file, reason: ",
|
|
3626
|
+
console.error("Failed to write .gitignore file, reason: ", e2);
|
|
3633
3627
|
}
|
|
3634
3628
|
}
|
|
3635
3629
|
const clientPathRelativeToOutputDir = path2.relative(outputDir, path2.resolve(prismaFolder, clientOutput));
|
|
@@ -3637,8 +3631,8 @@ var Init = class _Init {
|
|
|
3637
3631
|
fs2.appendFileSync(gitignorePath, `
|
|
3638
3632
|
/${clientPathRelativeToOutputDir.replaceAll(path2.sep, "/")}
|
|
3639
3633
|
`);
|
|
3640
|
-
} catch (
|
|
3641
|
-
console.error("Failed to append client path to .gitignore file, reason: ",
|
|
3634
|
+
} catch (e2) {
|
|
3635
|
+
console.error("Failed to append client path to .gitignore file, reason: ", e2);
|
|
3642
3636
|
}
|
|
3643
3637
|
const steps = [];
|
|
3644
3638
|
if (!isBun) {
|
|
@@ -3691,7 +3685,7 @@ ${warnings.length > 0 && internals.logger.should.warn() ? `
|
|
|
3691
3685
|
${warnings.join("\n")}
|
|
3692
3686
|
` : ""}
|
|
3693
3687
|
Next steps:
|
|
3694
|
-
${steps.map((
|
|
3688
|
+
${steps.map((s, i3) => `${i3 + 1}. ${s}`).join("\n")}
|
|
3695
3689
|
|
|
3696
3690
|
More information in our documentation:
|
|
3697
3691
|
${internals.link("https://pris.ly/d/getting-started")}
|