@kubb/cli 3.0.0-alpha.9 → 3.0.0-beta.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/README.md +14 -5
- package/dist/{chunk-CZ3C3WQD.js → chunk-LA3QWVJI.js} +63 -99
- package/dist/chunk-LA3QWVJI.js.map +1 -0
- package/dist/{chunk-LK3JKOEH.cjs → chunk-PAOUPXAG.cjs} +583 -695
- package/dist/chunk-PAOUPXAG.cjs.map +1 -0
- package/dist/generate-IZ3C56MV.cjs +244 -0
- package/dist/generate-IZ3C56MV.cjs.map +1 -0
- package/dist/{generate-IFZ2Y6PO.js → generate-JA5KME2H.js} +38 -53
- package/dist/generate-JA5KME2H.js.map +1 -0
- package/dist/index.cjs +26 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -6
- package/dist/index.d.ts +3 -6
- package/dist/index.js +11 -18
- package/dist/index.js.map +1 -1
- package/package.json +15 -19
- package/src/commands/generate.ts +23 -17
- package/src/generate.ts +43 -45
- package/src/index.ts +1 -1
- package/src/utils/Writables.ts +2 -2
- package/src/utils/executeHooks.ts +5 -5
- package/src/utils/getCosmiConfig.ts +4 -15
- package/src/utils/getSummary.ts +4 -6
- package/src/utils/watcher.ts +4 -6
- package/bin/bkubb.cjs +0 -6
- package/dist/chunk-CZ3C3WQD.js.map +0 -1
- package/dist/chunk-LK3JKOEH.cjs.map +0 -1
- package/dist/generate-CMBXNVHT.cjs +0 -228
- package/dist/generate-CMBXNVHT.cjs.map +0 -1
- package/dist/generate-IFZ2Y6PO.js.map +0 -1
- package/src/utils/writeLog.ts +0 -28
|
@@ -1,4 +1,50 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tty = require('tty');
|
|
4
|
+
var url = require('url');
|
|
5
|
+
var child_process = require('child_process');
|
|
6
|
+
var string_decoder = require('string_decoder');
|
|
7
|
+
var util = require('util');
|
|
8
|
+
var process3 = require('process');
|
|
9
|
+
var fs = require('fs');
|
|
10
|
+
var path2 = require('path');
|
|
11
|
+
var promises$1 = require('timers/promises');
|
|
12
|
+
var os = require('os');
|
|
13
|
+
var events = require('events');
|
|
14
|
+
var v8 = require('v8');
|
|
15
|
+
var promises = require('stream/promises');
|
|
16
|
+
var stream = require('stream');
|
|
17
|
+
var buffer = require('buffer');
|
|
18
|
+
var logger = require('@kubb/core/logger');
|
|
19
|
+
var core = require('@kubb/core');
|
|
20
|
+
var stringArgv = require('string-argv');
|
|
21
|
+
var cliProgress = require('cli-progress');
|
|
22
|
+
|
|
23
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
24
|
+
|
|
25
|
+
function _interopNamespace(e) {
|
|
26
|
+
if (e && e.__esModule) return e;
|
|
27
|
+
var n = Object.create(null);
|
|
28
|
+
if (e) {
|
|
29
|
+
Object.keys(e).forEach(function (k) {
|
|
30
|
+
if (k !== 'default') {
|
|
31
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
32
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return e[k]; }
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
n.default = e;
|
|
40
|
+
return Object.freeze(n);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
var tty__default = /*#__PURE__*/_interopDefault(tty);
|
|
44
|
+
var process3__namespace = /*#__PURE__*/_interopNamespace(process3);
|
|
45
|
+
var path2__default = /*#__PURE__*/_interopDefault(path2);
|
|
46
|
+
|
|
47
|
+
var __create = Object.create;
|
|
2
48
|
var __defProp = Object.defineProperty;
|
|
3
49
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
50
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -29,26 +75,27 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
75
|
// file that has been converted to a CommonJS file using a Babel-
|
|
30
76
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
31
77
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32
|
-
|
|
78
|
+
__defProp(target, "default", { value: mod, enumerable: true }) ,
|
|
33
79
|
mod
|
|
34
80
|
));
|
|
35
81
|
|
|
36
|
-
// ../../node_modules/.pnpm/tsup@8.
|
|
82
|
+
// ../../node_modules/.pnpm/tsup@8.3.0_@microsoft+api-extractor@7.47.9_@types+node@20.16.10__@swc+core@1.7.22_jiti@2.1.0__obkdyxrevtpud2s6cj2lfmzsum/node_modules/tsup/assets/cjs_shims.js
|
|
83
|
+
var getImportMetaUrl; exports.importMetaUrl = void 0;
|
|
37
84
|
var init_cjs_shims = __esm({
|
|
38
|
-
"../../node_modules/.pnpm/tsup@8.
|
|
39
|
-
"
|
|
85
|
+
"../../node_modules/.pnpm/tsup@8.3.0_@microsoft+api-extractor@7.47.9_@types+node@20.16.10__@swc+core@1.7.22_jiti@2.1.0__obkdyxrevtpud2s6cj2lfmzsum/node_modules/tsup/assets/cjs_shims.js"() {
|
|
86
|
+
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
87
|
+
exports.importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
40
88
|
}
|
|
41
89
|
});
|
|
42
90
|
|
|
43
91
|
// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
|
|
44
92
|
var require_windows = __commonJS({
|
|
45
93
|
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
|
|
46
|
-
"use strict";
|
|
47
94
|
init_cjs_shims();
|
|
48
95
|
module.exports = isexe;
|
|
49
96
|
isexe.sync = sync;
|
|
50
97
|
var fs = __require("fs");
|
|
51
|
-
function checkPathExt(
|
|
98
|
+
function checkPathExt(path7, options) {
|
|
52
99
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
53
100
|
if (!pathext) {
|
|
54
101
|
return true;
|
|
@@ -59,25 +106,25 @@ var require_windows = __commonJS({
|
|
|
59
106
|
}
|
|
60
107
|
for (var i2 = 0; i2 < pathext.length; i2++) {
|
|
61
108
|
var p3 = pathext[i2].toLowerCase();
|
|
62
|
-
if (p3 &&
|
|
109
|
+
if (p3 && path7.substr(-p3.length).toLowerCase() === p3) {
|
|
63
110
|
return true;
|
|
64
111
|
}
|
|
65
112
|
}
|
|
66
113
|
return false;
|
|
67
114
|
}
|
|
68
|
-
function checkStat(stat,
|
|
115
|
+
function checkStat(stat, path7, options) {
|
|
69
116
|
if (!stat.isSymbolicLink() && !stat.isFile()) {
|
|
70
117
|
return false;
|
|
71
118
|
}
|
|
72
|
-
return checkPathExt(
|
|
119
|
+
return checkPathExt(path7, options);
|
|
73
120
|
}
|
|
74
|
-
function isexe(
|
|
75
|
-
fs.stat(
|
|
76
|
-
cb(er, er ? false : checkStat(stat,
|
|
121
|
+
function isexe(path7, options, cb) {
|
|
122
|
+
fs.stat(path7, function(er, stat) {
|
|
123
|
+
cb(er, er ? false : checkStat(stat, path7, options));
|
|
77
124
|
});
|
|
78
125
|
}
|
|
79
|
-
function sync(
|
|
80
|
-
return checkStat(fs.statSync(
|
|
126
|
+
function sync(path7, options) {
|
|
127
|
+
return checkStat(fs.statSync(path7), path7, options);
|
|
81
128
|
}
|
|
82
129
|
}
|
|
83
130
|
});
|
|
@@ -85,18 +132,17 @@ var require_windows = __commonJS({
|
|
|
85
132
|
// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
|
|
86
133
|
var require_mode = __commonJS({
|
|
87
134
|
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module) {
|
|
88
|
-
"use strict";
|
|
89
135
|
init_cjs_shims();
|
|
90
136
|
module.exports = isexe;
|
|
91
137
|
isexe.sync = sync;
|
|
92
138
|
var fs = __require("fs");
|
|
93
|
-
function isexe(
|
|
94
|
-
fs.stat(
|
|
139
|
+
function isexe(path7, options, cb) {
|
|
140
|
+
fs.stat(path7, function(er, stat) {
|
|
95
141
|
cb(er, er ? false : checkStat(stat, options));
|
|
96
142
|
});
|
|
97
143
|
}
|
|
98
|
-
function sync(
|
|
99
|
-
return checkStat(fs.statSync(
|
|
144
|
+
function sync(path7, options) {
|
|
145
|
+
return checkStat(fs.statSync(path7), options);
|
|
100
146
|
}
|
|
101
147
|
function checkStat(stat, options) {
|
|
102
148
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -120,9 +166,8 @@ var require_mode = __commonJS({
|
|
|
120
166
|
// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
|
|
121
167
|
var require_isexe = __commonJS({
|
|
122
168
|
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module) {
|
|
123
|
-
"use strict";
|
|
124
169
|
init_cjs_shims();
|
|
125
|
-
|
|
170
|
+
__require("fs");
|
|
126
171
|
var core;
|
|
127
172
|
if (process.platform === "win32" || global.TESTING_WINDOWS) {
|
|
128
173
|
core = require_windows();
|
|
@@ -131,7 +176,7 @@ var require_isexe = __commonJS({
|
|
|
131
176
|
}
|
|
132
177
|
module.exports = isexe;
|
|
133
178
|
isexe.sync = sync;
|
|
134
|
-
function isexe(
|
|
179
|
+
function isexe(path7, options, cb) {
|
|
135
180
|
if (typeof options === "function") {
|
|
136
181
|
cb = options;
|
|
137
182
|
options = {};
|
|
@@ -140,17 +185,17 @@ var require_isexe = __commonJS({
|
|
|
140
185
|
if (typeof Promise !== "function") {
|
|
141
186
|
throw new TypeError("callback not provided");
|
|
142
187
|
}
|
|
143
|
-
return new Promise(function(
|
|
144
|
-
isexe(
|
|
188
|
+
return new Promise(function(resolve, reject) {
|
|
189
|
+
isexe(path7, options || {}, function(er, is) {
|
|
145
190
|
if (er) {
|
|
146
191
|
reject(er);
|
|
147
192
|
} else {
|
|
148
|
-
|
|
193
|
+
resolve(is);
|
|
149
194
|
}
|
|
150
195
|
});
|
|
151
196
|
});
|
|
152
197
|
}
|
|
153
|
-
core(
|
|
198
|
+
core(path7, options || {}, function(er, is) {
|
|
154
199
|
if (er) {
|
|
155
200
|
if (er.code === "EACCES" || options && options.ignoreErrors) {
|
|
156
201
|
er = null;
|
|
@@ -160,9 +205,9 @@ var require_isexe = __commonJS({
|
|
|
160
205
|
cb(er, is);
|
|
161
206
|
});
|
|
162
207
|
}
|
|
163
|
-
function sync(
|
|
208
|
+
function sync(path7, options) {
|
|
164
209
|
try {
|
|
165
|
-
return core.sync(
|
|
210
|
+
return core.sync(path7, options || {});
|
|
166
211
|
} catch (er) {
|
|
167
212
|
if (options && options.ignoreErrors || er.code === "EACCES") {
|
|
168
213
|
return false;
|
|
@@ -177,10 +222,9 @@ var require_isexe = __commonJS({
|
|
|
177
222
|
// ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
|
|
178
223
|
var require_which = __commonJS({
|
|
179
224
|
"../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module) {
|
|
180
|
-
"use strict";
|
|
181
225
|
init_cjs_shims();
|
|
182
226
|
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
183
|
-
var
|
|
227
|
+
var path7 = __require("path");
|
|
184
228
|
var COLON = isWindows ? ";" : ":";
|
|
185
229
|
var isexe = require_isexe();
|
|
186
230
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -213,27 +257,27 @@ var require_which = __commonJS({
|
|
|
213
257
|
opt = {};
|
|
214
258
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
215
259
|
const found = [];
|
|
216
|
-
const step = (i2) => new Promise((
|
|
260
|
+
const step = (i2) => new Promise((resolve, reject) => {
|
|
217
261
|
if (i2 === pathEnv.length)
|
|
218
|
-
return opt.all && found.length ?
|
|
262
|
+
return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
219
263
|
const ppRaw = pathEnv[i2];
|
|
220
264
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
221
|
-
const pCmd =
|
|
265
|
+
const pCmd = path7.join(pathPart, cmd);
|
|
222
266
|
const p3 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
223
|
-
|
|
267
|
+
resolve(subStep(p3, i2, 0));
|
|
224
268
|
});
|
|
225
|
-
const subStep = (p3, i2, ii) => new Promise((
|
|
269
|
+
const subStep = (p3, i2, ii) => new Promise((resolve, reject) => {
|
|
226
270
|
if (ii === pathExt.length)
|
|
227
|
-
return
|
|
271
|
+
return resolve(step(i2 + 1));
|
|
228
272
|
const ext = pathExt[ii];
|
|
229
273
|
isexe(p3 + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
230
274
|
if (!er && is) {
|
|
231
275
|
if (opt.all)
|
|
232
276
|
found.push(p3 + ext);
|
|
233
277
|
else
|
|
234
|
-
return
|
|
278
|
+
return resolve(p3 + ext);
|
|
235
279
|
}
|
|
236
|
-
return
|
|
280
|
+
return resolve(subStep(p3, i2, ii + 1));
|
|
237
281
|
});
|
|
238
282
|
});
|
|
239
283
|
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
@@ -245,7 +289,7 @@ var require_which = __commonJS({
|
|
|
245
289
|
for (let i2 = 0; i2 < pathEnv.length; i2++) {
|
|
246
290
|
const ppRaw = pathEnv[i2];
|
|
247
291
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
248
|
-
const pCmd =
|
|
292
|
+
const pCmd = path7.join(pathPart, cmd);
|
|
249
293
|
const p3 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
250
294
|
for (let j = 0; j < pathExt.length; j++) {
|
|
251
295
|
const cur = p3 + pathExt[j];
|
|
@@ -275,7 +319,6 @@ var require_which = __commonJS({
|
|
|
275
319
|
// ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
|
|
276
320
|
var require_path_key = __commonJS({
|
|
277
321
|
"../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module) {
|
|
278
|
-
"use strict";
|
|
279
322
|
init_cjs_shims();
|
|
280
323
|
var pathKey2 = (options = {}) => {
|
|
281
324
|
const environment = options.env || process.env;
|
|
@@ -293,9 +336,8 @@ var require_path_key = __commonJS({
|
|
|
293
336
|
// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
294
337
|
var require_resolveCommand = __commonJS({
|
|
295
338
|
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
|
|
296
|
-
"use strict";
|
|
297
339
|
init_cjs_shims();
|
|
298
|
-
var
|
|
340
|
+
var path7 = __require("path");
|
|
299
341
|
var which = require_which();
|
|
300
342
|
var getPathKey = require_path_key();
|
|
301
343
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -313,7 +355,7 @@ var require_resolveCommand = __commonJS({
|
|
|
313
355
|
try {
|
|
314
356
|
resolved = which.sync(parsed.command, {
|
|
315
357
|
path: env[getPathKey({ env })],
|
|
316
|
-
pathExt: withoutPathExt ?
|
|
358
|
+
pathExt: withoutPathExt ? path7.delimiter : void 0
|
|
317
359
|
});
|
|
318
360
|
} catch (e) {
|
|
319
361
|
} finally {
|
|
@@ -322,7 +364,7 @@ var require_resolveCommand = __commonJS({
|
|
|
322
364
|
}
|
|
323
365
|
}
|
|
324
366
|
if (resolved) {
|
|
325
|
-
resolved =
|
|
367
|
+
resolved = path7.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
326
368
|
}
|
|
327
369
|
return resolved;
|
|
328
370
|
}
|
|
@@ -336,7 +378,6 @@ var require_resolveCommand = __commonJS({
|
|
|
336
378
|
// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js
|
|
337
379
|
var require_escape = __commonJS({
|
|
338
380
|
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
|
|
339
|
-
"use strict";
|
|
340
381
|
init_cjs_shims();
|
|
341
382
|
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
342
383
|
function escapeCommand(arg) {
|
|
@@ -362,7 +403,6 @@ var require_escape = __commonJS({
|
|
|
362
403
|
// ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
|
|
363
404
|
var require_shebang_regex = __commonJS({
|
|
364
405
|
"../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module) {
|
|
365
|
-
"use strict";
|
|
366
406
|
init_cjs_shims();
|
|
367
407
|
module.exports = /^#!(.*)/;
|
|
368
408
|
}
|
|
@@ -371,7 +411,6 @@ var require_shebang_regex = __commonJS({
|
|
|
371
411
|
// ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
|
|
372
412
|
var require_shebang_command = __commonJS({
|
|
373
413
|
"../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module) {
|
|
374
|
-
"use strict";
|
|
375
414
|
init_cjs_shims();
|
|
376
415
|
var shebangRegex = require_shebang_regex();
|
|
377
416
|
module.exports = (string = "") => {
|
|
@@ -379,8 +418,8 @@ var require_shebang_command = __commonJS({
|
|
|
379
418
|
if (!match) {
|
|
380
419
|
return null;
|
|
381
420
|
}
|
|
382
|
-
const [
|
|
383
|
-
const binary =
|
|
421
|
+
const [path7, argument] = match[0].replace(/#! ?/, "").split(" ");
|
|
422
|
+
const binary = path7.split("/").pop();
|
|
384
423
|
if (binary === "env") {
|
|
385
424
|
return argument;
|
|
386
425
|
}
|
|
@@ -392,7 +431,6 @@ var require_shebang_command = __commonJS({
|
|
|
392
431
|
// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js
|
|
393
432
|
var require_readShebang = __commonJS({
|
|
394
433
|
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
|
|
395
|
-
"use strict";
|
|
396
434
|
init_cjs_shims();
|
|
397
435
|
var fs = __require("fs");
|
|
398
436
|
var shebangCommand = require_shebang_command();
|
|
@@ -415,9 +453,8 @@ var require_readShebang = __commonJS({
|
|
|
415
453
|
// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js
|
|
416
454
|
var require_parse = __commonJS({
|
|
417
455
|
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports, module) {
|
|
418
|
-
"use strict";
|
|
419
456
|
init_cjs_shims();
|
|
420
|
-
var
|
|
457
|
+
var path7 = __require("path");
|
|
421
458
|
var resolveCommand = require_resolveCommand();
|
|
422
459
|
var escape = require_escape();
|
|
423
460
|
var readShebang = require_readShebang();
|
|
@@ -442,7 +479,7 @@ var require_parse = __commonJS({
|
|
|
442
479
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
443
480
|
if (parsed.options.forceShell || needsShell) {
|
|
444
481
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
445
|
-
parsed.command =
|
|
482
|
+
parsed.command = path7.normalize(parsed.command);
|
|
446
483
|
parsed.command = escape.command(parsed.command);
|
|
447
484
|
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
448
485
|
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
@@ -478,7 +515,6 @@ var require_parse = __commonJS({
|
|
|
478
515
|
// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js
|
|
479
516
|
var require_enoent = __commonJS({
|
|
480
517
|
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
|
|
481
|
-
"use strict";
|
|
482
518
|
init_cjs_shims();
|
|
483
519
|
var isWin = process.platform === "win32";
|
|
484
520
|
function notFoundError(original, syscall) {
|
|
@@ -497,7 +533,7 @@ var require_enoent = __commonJS({
|
|
|
497
533
|
const originalEmit = cp.emit;
|
|
498
534
|
cp.emit = function(name, arg1) {
|
|
499
535
|
if (name === "exit") {
|
|
500
|
-
const err = verifyENOENT(arg1, parsed
|
|
536
|
+
const err = verifyENOENT(arg1, parsed);
|
|
501
537
|
if (err) {
|
|
502
538
|
return originalEmit.call(cp, "error", err);
|
|
503
539
|
}
|
|
@@ -529,7 +565,6 @@ var require_enoent = __commonJS({
|
|
|
529
565
|
// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js
|
|
530
566
|
var require_cross_spawn = __commonJS({
|
|
531
567
|
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports, module) {
|
|
532
|
-
"use strict";
|
|
533
568
|
init_cjs_shims();
|
|
534
569
|
var cp = __require("child_process");
|
|
535
570
|
var parse = require_parse();
|
|
@@ -557,7 +592,6 @@ var require_cross_spawn = __commonJS({
|
|
|
557
592
|
// ../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js
|
|
558
593
|
var require_eventemitter3 = __commonJS({
|
|
559
594
|
"../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js"(exports, module) {
|
|
560
|
-
"use strict";
|
|
561
595
|
init_cjs_shims();
|
|
562
596
|
var has = Object.prototype.hasOwnProperty;
|
|
563
597
|
var prefix = "~";
|
|
@@ -799,15 +833,12 @@ function p(n2 = false) {
|
|
|
799
833
|
) : a;
|
|
800
834
|
return u2;
|
|
801
835
|
}
|
|
836
|
+
var p2 = p(tty.isatty(1));
|
|
802
837
|
|
|
803
|
-
// ../../node_modules/.pnpm/
|
|
804
|
-
var _tty = require('tty'); var _tty2 = _interopRequireDefault(_tty);
|
|
805
|
-
var p2 = p(_tty.isatty.call(void 0, 1));
|
|
806
|
-
|
|
807
|
-
// ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/index.js
|
|
838
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/index.js
|
|
808
839
|
init_cjs_shims();
|
|
809
840
|
|
|
810
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
841
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/methods/create.js
|
|
811
842
|
init_cjs_shims();
|
|
812
843
|
|
|
813
844
|
// ../../node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js
|
|
@@ -820,12 +851,11 @@ function isPlainObject(value) {
|
|
|
820
851
|
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
|
|
821
852
|
}
|
|
822
853
|
|
|
823
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
854
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/methods/parameters.js
|
|
824
855
|
init_cjs_shims();
|
|
825
856
|
|
|
826
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
857
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/arguments/file-url.js
|
|
827
858
|
init_cjs_shims();
|
|
828
|
-
var _url = require('url');
|
|
829
859
|
var safeNormalizeFileUrl = (file, name) => {
|
|
830
860
|
const fileString = normalizeFileUrl(file);
|
|
831
861
|
if (typeof fileString !== "string") {
|
|
@@ -833,9 +863,9 @@ var safeNormalizeFileUrl = (file, name) => {
|
|
|
833
863
|
}
|
|
834
864
|
return fileString;
|
|
835
865
|
};
|
|
836
|
-
var normalizeFileUrl = (file) => file instanceof URL ?
|
|
866
|
+
var normalizeFileUrl = (file) => file instanceof URL ? url.fileURLToPath(file) : file;
|
|
837
867
|
|
|
838
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
868
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/methods/parameters.js
|
|
839
869
|
var normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
|
|
840
870
|
const filePath = safeNormalizeFileUrl(rawFile, "First argument");
|
|
841
871
|
const [commandArguments, options] = isPlainObject(rawArguments) ? [[], rawArguments] : [rawArguments, rawOptions];
|
|
@@ -856,13 +886,11 @@ var normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
|
|
|
856
886
|
return [filePath, normalizedArguments, options];
|
|
857
887
|
};
|
|
858
888
|
|
|
859
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
889
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/methods/template.js
|
|
860
890
|
init_cjs_shims();
|
|
861
|
-
var _child_process = require('child_process');
|
|
862
891
|
|
|
863
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
892
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/utils/uint-array.js
|
|
864
893
|
init_cjs_shims();
|
|
865
|
-
var _string_decoder = require('string_decoder');
|
|
866
894
|
var { toString: objectToString } = Object.prototype;
|
|
867
895
|
var isArrayBuffer = (value) => objectToString.call(value) === "[object ArrayBuffer]";
|
|
868
896
|
var isUint8Array = (value) => objectToString.call(value) === "[object Uint8Array]";
|
|
@@ -879,7 +907,7 @@ var uint8ArraysToStrings = (uint8ArraysOrStrings, encoding) => {
|
|
|
879
907
|
if (encoding === "utf8" && uint8ArraysOrStrings.every((uint8ArrayOrString) => typeof uint8ArrayOrString === "string")) {
|
|
880
908
|
return uint8ArraysOrStrings;
|
|
881
909
|
}
|
|
882
|
-
const decoder = new
|
|
910
|
+
const decoder = new string_decoder.StringDecoder(encoding);
|
|
883
911
|
const strings = uint8ArraysOrStrings.map((uint8ArrayOrString) => typeof uint8ArrayOrString === "string" ? stringToUint8Array(uint8ArrayOrString) : uint8ArrayOrString).map((uint8Array) => decoder.write(uint8Array));
|
|
884
912
|
const finalString = decoder.end();
|
|
885
913
|
return finalString === "" ? strings : [...strings, finalString];
|
|
@@ -908,7 +936,7 @@ var getJoinLength = (uint8Arrays) => {
|
|
|
908
936
|
return joinLength;
|
|
909
937
|
};
|
|
910
938
|
|
|
911
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
939
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/methods/template.js
|
|
912
940
|
var isTemplateString = (templates) => Array.isArray(templates) && Array.isArray(templates.raw);
|
|
913
941
|
var parseTemplates = (templates, expressions) => {
|
|
914
942
|
let tokens = [];
|
|
@@ -959,7 +987,7 @@ var splitByWhitespaces = (template, rawTemplate) => {
|
|
|
959
987
|
if (nextRawCharacter === "u" && rawTemplate[rawIndex + 2] === "{") {
|
|
960
988
|
rawIndex = rawTemplate.indexOf("}", rawIndex + 3);
|
|
961
989
|
} else {
|
|
962
|
-
rawIndex +=
|
|
990
|
+
rawIndex += ESCAPE_LENGTH[nextRawCharacter] ?? 1;
|
|
963
991
|
}
|
|
964
992
|
}
|
|
965
993
|
}
|
|
@@ -987,7 +1015,7 @@ var parseExpression = (expression) => {
|
|
|
987
1015
|
if (isPlainObject(expression) && ("stdout" in expression || "isMaxBuffer" in expression)) {
|
|
988
1016
|
return getSubprocessResult(expression);
|
|
989
1017
|
}
|
|
990
|
-
if (expression instanceof
|
|
1018
|
+
if (expression instanceof child_process.ChildProcess || Object.prototype.toString.call(expression) === "[object Promise]") {
|
|
991
1019
|
throw new TypeError("Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}.");
|
|
992
1020
|
}
|
|
993
1021
|
throw new TypeError(`Unexpected "${typeOfExpression}" in template expression`);
|
|
@@ -1005,32 +1033,29 @@ var getSubprocessResult = ({ stdout: stdout2 }) => {
|
|
|
1005
1033
|
throw new TypeError(`Unexpected "${typeof stdout2}" stdout in template expression`);
|
|
1006
1034
|
};
|
|
1007
1035
|
|
|
1008
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1036
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/methods/main-sync.js
|
|
1009
1037
|
init_cjs_shims();
|
|
1010
1038
|
|
|
1011
|
-
|
|
1012
|
-
// ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/arguments/command.js
|
|
1039
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/arguments/command.js
|
|
1013
1040
|
init_cjs_shims();
|
|
1014
1041
|
|
|
1015
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1042
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/verbose/start.js
|
|
1016
1043
|
init_cjs_shims();
|
|
1017
1044
|
|
|
1018
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1045
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/verbose/values.js
|
|
1019
1046
|
init_cjs_shims();
|
|
1020
1047
|
|
|
1021
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1048
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/arguments/specific.js
|
|
1022
1049
|
init_cjs_shims();
|
|
1023
|
-
var _util = require('util');
|
|
1024
1050
|
|
|
1025
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1051
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/utils/standard-stream.js
|
|
1026
1052
|
init_cjs_shims();
|
|
1027
|
-
var _process = require('process'); var process10 = _interopRequireWildcard(_process);
|
|
1028
1053
|
var isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
|
|
1029
|
-
var STANDARD_STREAMS = [
|
|
1054
|
+
var STANDARD_STREAMS = [process3__namespace.default.stdin, process3__namespace.default.stdout, process3__namespace.default.stderr];
|
|
1030
1055
|
var STANDARD_STREAMS_ALIASES = ["stdin", "stdout", "stderr"];
|
|
1031
|
-
var getStreamName = (fdNumber) =>
|
|
1056
|
+
var getStreamName = (fdNumber) => STANDARD_STREAMS_ALIASES[fdNumber] ?? `stdio[${fdNumber}]`;
|
|
1032
1057
|
|
|
1033
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1058
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/arguments/specific.js
|
|
1034
1059
|
var normalizeFdSpecificOptions = (options) => {
|
|
1035
1060
|
const optionsCopy = { ...options };
|
|
1036
1061
|
for (const optionName of FD_SPECIFIC_OPTIONS) {
|
|
@@ -1089,7 +1114,7 @@ var parseFd = (fdName) => {
|
|
|
1089
1114
|
};
|
|
1090
1115
|
var FD_REGEXP = /^fd(\d+)$/;
|
|
1091
1116
|
var addDefaultValue = (optionArray, optionName) => optionArray.map((optionValue) => optionValue === void 0 ? DEFAULT_OPTIONS[optionName] : optionValue);
|
|
1092
|
-
var verboseDefault =
|
|
1117
|
+
var verboseDefault = util.debuglog("execa").enabled ? "full" : "none";
|
|
1093
1118
|
var DEFAULT_OPTIONS = {
|
|
1094
1119
|
lines: false,
|
|
1095
1120
|
buffer: true,
|
|
@@ -1100,7 +1125,7 @@ var DEFAULT_OPTIONS = {
|
|
|
1100
1125
|
var FD_SPECIFIC_OPTIONS = ["lines", "buffer", "maxBuffer", "verbose", "stripFinalNewline"];
|
|
1101
1126
|
var getFdSpecificValue = (optionArray, fdNumber) => fdNumber === "ipc" ? optionArray.at(-1) : optionArray[fdNumber];
|
|
1102
1127
|
|
|
1103
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1128
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/verbose/values.js
|
|
1104
1129
|
var isVerbose = ({ verbose }, fdNumber) => getFdVerbose(verbose, fdNumber) !== "none";
|
|
1105
1130
|
var isFullVerbose = ({ verbose }, fdNumber) => !["none", "short"].includes(getFdVerbose(verbose, fdNumber));
|
|
1106
1131
|
var getVerboseFunction = ({ verbose }, fdNumber) => {
|
|
@@ -1108,26 +1133,22 @@ var getVerboseFunction = ({ verbose }, fdNumber) => {
|
|
|
1108
1133
|
return isVerboseFunction(fdVerbose) ? fdVerbose : void 0;
|
|
1109
1134
|
};
|
|
1110
1135
|
var getFdVerbose = (verbose, fdNumber) => fdNumber === void 0 ? getFdGenericVerbose(verbose) : getFdSpecificValue(verbose, fdNumber);
|
|
1111
|
-
var getFdGenericVerbose = (verbose) =>
|
|
1136
|
+
var getFdGenericVerbose = (verbose) => verbose.find((fdVerbose) => isVerboseFunction(fdVerbose)) ?? VERBOSE_VALUES.findLast((fdVerbose) => verbose.includes(fdVerbose));
|
|
1112
1137
|
var isVerboseFunction = (fdVerbose) => typeof fdVerbose === "function";
|
|
1113
1138
|
var VERBOSE_VALUES = ["none", "short", "full"];
|
|
1114
1139
|
|
|
1115
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1140
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/verbose/log.js
|
|
1116
1141
|
init_cjs_shims();
|
|
1117
|
-
var _fs = require('fs');
|
|
1118
|
-
|
|
1119
1142
|
|
|
1120
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1143
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/arguments/escape.js
|
|
1121
1144
|
init_cjs_shims();
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
1145
|
var joinCommand = (filePath, rawArguments) => {
|
|
1125
1146
|
const fileAndArguments = [filePath, ...rawArguments];
|
|
1126
1147
|
const command = fileAndArguments.join(" ");
|
|
1127
1148
|
const escapedCommand = fileAndArguments.map((fileAndArgument) => quoteString(escapeControlCharacters(fileAndArgument))).join(" ");
|
|
1128
1149
|
return { command, escapedCommand };
|
|
1129
1150
|
};
|
|
1130
|
-
var escapeLines = (lines) =>
|
|
1151
|
+
var escapeLines = (lines) => util.stripVTControlCharacters(lines).split("\n").map((line) => escapeControlCharacters(line)).join("\n");
|
|
1131
1152
|
var escapeControlCharacters = (line) => line.replaceAll(SPECIAL_CHAR_REGEXP, (character) => escapeControlCharacter(character));
|
|
1132
1153
|
var escapeControlCharacter = (character) => {
|
|
1133
1154
|
const commonEscape = COMMON_ESCAPES[character];
|
|
@@ -1141,7 +1162,7 @@ var escapeControlCharacter = (character) => {
|
|
|
1141
1162
|
var getSpecialCharRegExp = () => {
|
|
1142
1163
|
try {
|
|
1143
1164
|
return new RegExp("\\p{Separator}|\\p{Other}", "gu");
|
|
1144
|
-
} catch
|
|
1165
|
+
} catch {
|
|
1145
1166
|
return /[\s\u0000-\u001F\u007F-\u009F\u00AD]/g;
|
|
1146
1167
|
}
|
|
1147
1168
|
};
|
|
@@ -1159,11 +1180,11 @@ var quoteString = (escapedArgument) => {
|
|
|
1159
1180
|
if (NO_ESCAPE_REGEXP.test(escapedArgument)) {
|
|
1160
1181
|
return escapedArgument;
|
|
1161
1182
|
}
|
|
1162
|
-
return
|
|
1183
|
+
return process3.platform === "win32" ? `"${escapedArgument.replaceAll('"', '""')}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
|
|
1163
1184
|
};
|
|
1164
1185
|
var NO_ESCAPE_REGEXP = /^[\w./-]+$/;
|
|
1165
1186
|
|
|
1166
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1187
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/verbose/default.js
|
|
1167
1188
|
init_cjs_shims();
|
|
1168
1189
|
|
|
1169
1190
|
// ../../node_modules/.pnpm/figures@6.1.0/node_modules/figures/index.js
|
|
@@ -1171,12 +1192,11 @@ init_cjs_shims();
|
|
|
1171
1192
|
|
|
1172
1193
|
// ../../node_modules/.pnpm/is-unicode-supported@2.0.0/node_modules/is-unicode-supported/index.js
|
|
1173
1194
|
init_cjs_shims();
|
|
1174
|
-
|
|
1175
1195
|
function isUnicodeSupported() {
|
|
1176
|
-
if (
|
|
1177
|
-
return
|
|
1196
|
+
if (process3__namespace.default.platform !== "win32") {
|
|
1197
|
+
return process3__namespace.default.env.TERM !== "linux";
|
|
1178
1198
|
}
|
|
1179
|
-
return Boolean(
|
|
1199
|
+
return Boolean(process3__namespace.default.env.WT_SESSION) || Boolean(process3__namespace.default.env.TERMINUS_SUBLIME) || process3__namespace.default.env.ConEmuTask === "{cmd::Cmder}" || process3__namespace.default.env.TERM_PROGRAM === "Terminus-Sublime" || process3__namespace.default.env.TERM_PROGRAM === "vscode" || process3__namespace.default.env.TERM === "xterm-256color" || process3__namespace.default.env.TERM === "alacritty" || process3__namespace.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
1180
1200
|
}
|
|
1181
1201
|
|
|
1182
1202
|
// ../../node_modules/.pnpm/figures@6.1.0/node_modules/figures/index.js
|
|
@@ -1453,12 +1473,10 @@ var fallbackSymbols = { ...common, ...specialFallbackSymbols };
|
|
|
1453
1473
|
var shouldUseMain = isUnicodeSupported();
|
|
1454
1474
|
var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
1455
1475
|
var figures_default = figures;
|
|
1456
|
-
var replacements = Object.entries(specialMainSymbols);
|
|
1457
1476
|
|
|
1458
1477
|
// ../../node_modules/.pnpm/yoctocolors@2.1.1/node_modules/yoctocolors/base.js
|
|
1459
1478
|
init_cjs_shims();
|
|
1460
|
-
|
|
1461
|
-
var hasColors = _nullishCoalesce(_optionalChain([_tty2.default, 'optionalAccess', _2 => _2.WriteStream, 'optionalAccess', _3 => _3.prototype, 'optionalAccess', _4 => _4.hasColors, 'optionalCall', _5 => _5()]), () => ( false));
|
|
1479
|
+
var hasColors = tty__default.default?.WriteStream?.prototype?.hasColors?.() ?? false;
|
|
1462
1480
|
var format = (open, close) => {
|
|
1463
1481
|
if (!hasColors) {
|
|
1464
1482
|
return (input) => input;
|
|
@@ -1482,49 +1500,12 @@ var format = (open, close) => {
|
|
|
1482
1500
|
return result;
|
|
1483
1501
|
};
|
|
1484
1502
|
};
|
|
1485
|
-
var reset = format(0, 0);
|
|
1486
1503
|
var bold = format(1, 22);
|
|
1487
|
-
var dim = format(2, 22);
|
|
1488
|
-
var italic = format(3, 23);
|
|
1489
|
-
var underline = format(4, 24);
|
|
1490
|
-
var overline = format(53, 55);
|
|
1491
|
-
var inverse = format(7, 27);
|
|
1492
|
-
var hidden = format(8, 28);
|
|
1493
|
-
var strikethrough = format(9, 29);
|
|
1494
|
-
var black = format(30, 39);
|
|
1495
|
-
var red = format(31, 39);
|
|
1496
|
-
var green = format(32, 39);
|
|
1497
|
-
var yellow = format(33, 39);
|
|
1498
|
-
var blue = format(34, 39);
|
|
1499
|
-
var magenta = format(35, 39);
|
|
1500
|
-
var cyan = format(36, 39);
|
|
1501
|
-
var white = format(37, 39);
|
|
1502
1504
|
var gray = format(90, 39);
|
|
1503
|
-
var bgBlack = format(40, 49);
|
|
1504
|
-
var bgRed = format(41, 49);
|
|
1505
|
-
var bgGreen = format(42, 49);
|
|
1506
|
-
var bgYellow = format(43, 49);
|
|
1507
|
-
var bgBlue = format(44, 49);
|
|
1508
|
-
var bgMagenta = format(45, 49);
|
|
1509
|
-
var bgCyan = format(46, 49);
|
|
1510
|
-
var bgWhite = format(47, 49);
|
|
1511
|
-
var bgGray = format(100, 49);
|
|
1512
1505
|
var redBright = format(91, 39);
|
|
1513
|
-
var greenBright = format(92, 39);
|
|
1514
1506
|
var yellowBright = format(93, 39);
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
var cyanBright = format(96, 39);
|
|
1518
|
-
var whiteBright = format(97, 39);
|
|
1519
|
-
var bgRedBright = format(101, 49);
|
|
1520
|
-
var bgGreenBright = format(102, 49);
|
|
1521
|
-
var bgYellowBright = format(103, 49);
|
|
1522
|
-
var bgBlueBright = format(104, 49);
|
|
1523
|
-
var bgMagentaBright = format(105, 49);
|
|
1524
|
-
var bgCyanBright = format(106, 49);
|
|
1525
|
-
var bgWhiteBright = format(107, 49);
|
|
1526
|
-
|
|
1527
|
-
// ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/verbose/default.js
|
|
1507
|
+
|
|
1508
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/verbose/default.js
|
|
1528
1509
|
var defaultVerboseFunction = ({
|
|
1529
1510
|
type,
|
|
1530
1511
|
message,
|
|
@@ -1563,7 +1544,7 @@ var COLORS = {
|
|
|
1563
1544
|
duration: () => gray
|
|
1564
1545
|
};
|
|
1565
1546
|
|
|
1566
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1547
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/verbose/custom.js
|
|
1567
1548
|
init_cjs_shims();
|
|
1568
1549
|
var applyVerboseOnLines = (printedLines, verboseInfo, fdNumber) => {
|
|
1569
1550
|
const verboseFunction = getVerboseFunction(verboseInfo, fdNumber);
|
|
@@ -1581,12 +1562,12 @@ var applyVerboseFunction = (verboseLine, verboseObject, verboseFunction) => {
|
|
|
1581
1562
|
var appendNewline = (printedLine) => printedLine.endsWith("\n") ? printedLine : `${printedLine}
|
|
1582
1563
|
`;
|
|
1583
1564
|
|
|
1584
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1565
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/verbose/log.js
|
|
1585
1566
|
var verboseLog = ({ type, verboseMessage, fdNumber, verboseInfo, result }) => {
|
|
1586
1567
|
const verboseObject = getVerboseObject({ type, result, verboseInfo });
|
|
1587
1568
|
const printedLines = getPrintedLines(verboseMessage, verboseObject);
|
|
1588
1569
|
const finalLines = applyVerboseOnLines(printedLines, verboseInfo, fdNumber);
|
|
1589
|
-
|
|
1570
|
+
fs.writeFileSync(STDERR_FD, finalLines);
|
|
1590
1571
|
};
|
|
1591
1572
|
var getVerboseObject = ({
|
|
1592
1573
|
type,
|
|
@@ -1608,13 +1589,13 @@ var getPrintedLine = (verboseObject) => {
|
|
|
1608
1589
|
};
|
|
1609
1590
|
var STDERR_FD = 2;
|
|
1610
1591
|
var serializeVerboseMessage = (message) => {
|
|
1611
|
-
const messageString = typeof message === "string" ? message :
|
|
1592
|
+
const messageString = typeof message === "string" ? message : util.inspect(message);
|
|
1612
1593
|
const escapedMessage = escapeLines(messageString);
|
|
1613
1594
|
return escapedMessage.replaceAll(" ", " ".repeat(TAB_SIZE));
|
|
1614
1595
|
};
|
|
1615
1596
|
var TAB_SIZE = 2;
|
|
1616
1597
|
|
|
1617
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1598
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/verbose/start.js
|
|
1618
1599
|
var logCommand = (escapedCommand, verboseInfo) => {
|
|
1619
1600
|
if (!isVerbose(verboseInfo)) {
|
|
1620
1601
|
return;
|
|
@@ -1626,7 +1607,7 @@ var logCommand = (escapedCommand, verboseInfo) => {
|
|
|
1626
1607
|
});
|
|
1627
1608
|
};
|
|
1628
1609
|
|
|
1629
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1610
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/verbose/info.js
|
|
1630
1611
|
init_cjs_shims();
|
|
1631
1612
|
var getVerboseInfo = (verbose, escapedCommand, rawOptions) => {
|
|
1632
1613
|
validateVerbose(verbose);
|
|
@@ -1655,13 +1636,12 @@ var validateVerbose = (verbose) => {
|
|
|
1655
1636
|
}
|
|
1656
1637
|
};
|
|
1657
1638
|
|
|
1658
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1639
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/return/duration.js
|
|
1659
1640
|
init_cjs_shims();
|
|
1641
|
+
var getStartTime = () => process3.hrtime.bigint();
|
|
1642
|
+
var getDurationMs = (startTime) => Number(process3.hrtime.bigint() - startTime) / 1e6;
|
|
1660
1643
|
|
|
1661
|
-
|
|
1662
|
-
var getDurationMs = (startTime) => Number(_process.hrtime.bigint() - startTime) / 1e6;
|
|
1663
|
-
|
|
1664
|
-
// ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/arguments/command.js
|
|
1644
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/arguments/command.js
|
|
1665
1645
|
var handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
1666
1646
|
const startTime = getStartTime();
|
|
1667
1647
|
const { command, escapedCommand } = joinCommand(filePath, rawArguments);
|
|
@@ -1676,18 +1656,13 @@ var handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
|
1676
1656
|
};
|
|
1677
1657
|
};
|
|
1678
1658
|
|
|
1679
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1659
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/arguments/options.js
|
|
1680
1660
|
init_cjs_shims();
|
|
1681
|
-
var import_cross_spawn = __toESM(require_cross_spawn()
|
|
1682
|
-
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
1661
|
+
var import_cross_spawn = __toESM(require_cross_spawn());
|
|
1683
1662
|
|
|
1684
|
-
|
|
1685
|
-
// ../../node_modules/.pnpm/npm-run-path@5.3.0/node_modules/npm-run-path/index.js
|
|
1663
|
+
// ../../node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
|
|
1686
1664
|
init_cjs_shims();
|
|
1687
1665
|
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
1666
|
// ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
|
|
1692
1667
|
init_cjs_shims();
|
|
1693
1668
|
function pathKey(options = {}) {
|
|
@@ -1701,38 +1676,60 @@ function pathKey(options = {}) {
|
|
|
1701
1676
|
return Object.keys(env).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
1702
1677
|
}
|
|
1703
1678
|
|
|
1704
|
-
// ../../node_modules/.pnpm/
|
|
1679
|
+
// ../../node_modules/.pnpm/unicorn-magic@0.3.0/node_modules/unicorn-magic/node.js
|
|
1680
|
+
init_cjs_shims();
|
|
1681
|
+
util.promisify(child_process.execFile);
|
|
1682
|
+
function toPath(urlOrPath) {
|
|
1683
|
+
return urlOrPath instanceof URL ? url.fileURLToPath(urlOrPath) : urlOrPath;
|
|
1684
|
+
}
|
|
1685
|
+
function traversePathUp(startPath) {
|
|
1686
|
+
return {
|
|
1687
|
+
*[Symbol.iterator]() {
|
|
1688
|
+
let currentPath = path2__default.default.resolve(toPath(startPath));
|
|
1689
|
+
let previousPath;
|
|
1690
|
+
while (previousPath !== currentPath) {
|
|
1691
|
+
yield currentPath;
|
|
1692
|
+
previousPath = currentPath;
|
|
1693
|
+
currentPath = path2__default.default.resolve(currentPath, "..");
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
};
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
// ../../node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
|
|
1705
1700
|
var npmRunPath = ({
|
|
1706
|
-
cwd =
|
|
1707
|
-
path: pathOption =
|
|
1701
|
+
cwd = process3__namespace.default.cwd(),
|
|
1702
|
+
path: pathOption = process3__namespace.default.env[pathKey()],
|
|
1708
1703
|
preferLocal = true,
|
|
1709
|
-
execPath: execPath2 =
|
|
1704
|
+
execPath: execPath2 = process3__namespace.default.execPath,
|
|
1710
1705
|
addExecPath = true
|
|
1711
1706
|
} = {}) => {
|
|
1712
|
-
const
|
|
1713
|
-
const cwdPath = _path2.default.resolve(cwdString);
|
|
1707
|
+
const cwdPath = path2__default.default.resolve(toPath(cwd));
|
|
1714
1708
|
const result = [];
|
|
1709
|
+
const pathParts = pathOption.split(path2__default.default.delimiter);
|
|
1715
1710
|
if (preferLocal) {
|
|
1716
|
-
applyPreferLocal(result, cwdPath);
|
|
1711
|
+
applyPreferLocal(result, pathParts, cwdPath);
|
|
1717
1712
|
}
|
|
1718
1713
|
if (addExecPath) {
|
|
1719
|
-
applyExecPath(result, execPath2, cwdPath);
|
|
1714
|
+
applyExecPath(result, pathParts, execPath2, cwdPath);
|
|
1720
1715
|
}
|
|
1721
|
-
return [...result, pathOption].join(
|
|
1716
|
+
return pathOption === "" || pathOption === path2__default.default.delimiter ? `${result.join(path2__default.default.delimiter)}${pathOption}` : [...result, pathOption].join(path2__default.default.delimiter);
|
|
1722
1717
|
};
|
|
1723
|
-
var applyPreferLocal = (result, cwdPath) => {
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1718
|
+
var applyPreferLocal = (result, pathParts, cwdPath) => {
|
|
1719
|
+
for (const directory of traversePathUp(cwdPath)) {
|
|
1720
|
+
const pathPart = path2__default.default.join(directory, "node_modules/.bin");
|
|
1721
|
+
if (!pathParts.includes(pathPart)) {
|
|
1722
|
+
result.push(pathPart);
|
|
1723
|
+
}
|
|
1729
1724
|
}
|
|
1730
1725
|
};
|
|
1731
|
-
var applyExecPath = (result, execPath2, cwdPath) => {
|
|
1732
|
-
const
|
|
1733
|
-
|
|
1726
|
+
var applyExecPath = (result, pathParts, execPath2, cwdPath) => {
|
|
1727
|
+
const pathPart = path2__default.default.resolve(cwdPath, toPath(execPath2), "..");
|
|
1728
|
+
if (!pathParts.includes(pathPart)) {
|
|
1729
|
+
result.push(pathPart);
|
|
1730
|
+
}
|
|
1734
1731
|
};
|
|
1735
|
-
var npmRunPathEnv = ({ env =
|
|
1732
|
+
var npmRunPathEnv = ({ env = process3__namespace.default.env, ...options } = {}) => {
|
|
1736
1733
|
env = { ...env };
|
|
1737
1734
|
const pathName = pathKey({ env });
|
|
1738
1735
|
options.path = env[pathName];
|
|
@@ -1740,11 +1737,10 @@ var npmRunPathEnv = ({ env = process10.default.env, ...options } = {}) => {
|
|
|
1740
1737
|
return env;
|
|
1741
1738
|
};
|
|
1742
1739
|
|
|
1743
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1740
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/terminate/kill.js
|
|
1744
1741
|
init_cjs_shims();
|
|
1745
|
-
var _promises = require('timers/promises');
|
|
1746
1742
|
|
|
1747
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1743
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/return/final-error.js
|
|
1748
1744
|
init_cjs_shims();
|
|
1749
1745
|
var getFinalError = (originalError, message, isSync) => {
|
|
1750
1746
|
const ErrorClass = isSync ? ExecaSyncError : ExecaError;
|
|
@@ -1777,14 +1773,12 @@ var ExecaSyncError = class extends Error {
|
|
|
1777
1773
|
};
|
|
1778
1774
|
setErrorName(ExecaSyncError, ExecaSyncError.name);
|
|
1779
1775
|
|
|
1780
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1776
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/terminate/signal.js
|
|
1781
1777
|
init_cjs_shims();
|
|
1782
|
-
var _os = require('os');
|
|
1783
1778
|
|
|
1784
1779
|
// ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/main.js
|
|
1785
1780
|
init_cjs_shims();
|
|
1786
1781
|
|
|
1787
|
-
|
|
1788
1782
|
// ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/realtime.js
|
|
1789
1783
|
init_cjs_shims();
|
|
1790
1784
|
var getRealtimeSignals = () => {
|
|
@@ -1804,7 +1798,6 @@ var SIGRTMAX = 64;
|
|
|
1804
1798
|
// ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/signals.js
|
|
1805
1799
|
init_cjs_shims();
|
|
1806
1800
|
|
|
1807
|
-
|
|
1808
1801
|
// ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/core.js
|
|
1809
1802
|
init_cjs_shims();
|
|
1810
1803
|
var SIGNALS = [
|
|
@@ -2095,7 +2088,7 @@ var normalizeSignal = ({
|
|
|
2095
2088
|
}) => {
|
|
2096
2089
|
const {
|
|
2097
2090
|
signals: { [name]: constantSignal }
|
|
2098
|
-
} =
|
|
2091
|
+
} = os.constants;
|
|
2099
2092
|
const supported = constantSignal !== void 0;
|
|
2100
2093
|
const number = supported ? constantSignal : defaultNumber;
|
|
2101
2094
|
return { name, number, description, supported, action, forced, standard };
|
|
@@ -2144,15 +2137,15 @@ var getSignalByNumber = (number, signals2) => {
|
|
|
2144
2137
|
};
|
|
2145
2138
|
};
|
|
2146
2139
|
var findSignalByNumber = (number, signals2) => {
|
|
2147
|
-
const signal = signals2.find(({ name }) =>
|
|
2140
|
+
const signal = signals2.find(({ name }) => os.constants.signals[name] === number);
|
|
2148
2141
|
if (signal !== void 0) {
|
|
2149
2142
|
return signal;
|
|
2150
2143
|
}
|
|
2151
2144
|
return signals2.find((signalA) => signalA.number === number);
|
|
2152
2145
|
};
|
|
2153
|
-
|
|
2146
|
+
getSignalsByNumber();
|
|
2154
2147
|
|
|
2155
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2148
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/terminate/signal.js
|
|
2156
2149
|
var normalizeKillSignal = (killSignal) => {
|
|
2157
2150
|
const optionName = "option `killSignal`";
|
|
2158
2151
|
if (killSignal === 0) {
|
|
@@ -2178,13 +2171,13 @@ var normalizeSignalInteger = (signalInteger, optionName) => {
|
|
|
2178
2171
|
throw new TypeError(`Invalid ${optionName} ${signalInteger}: this signal integer does not exist.
|
|
2179
2172
|
${getAvailableSignals()}`);
|
|
2180
2173
|
};
|
|
2181
|
-
var getSignalsIntegerToName = () => new Map(Object.entries(
|
|
2174
|
+
var getSignalsIntegerToName = () => new Map(Object.entries(os.constants.signals).reverse().map(([signalName, signalInteger]) => [signalInteger, signalName]));
|
|
2182
2175
|
var signalsIntegerToName = getSignalsIntegerToName();
|
|
2183
2176
|
var normalizeSignalName = (signalName, optionName) => {
|
|
2184
|
-
if (signalName in
|
|
2177
|
+
if (signalName in os.constants.signals) {
|
|
2185
2178
|
return signalName;
|
|
2186
2179
|
}
|
|
2187
|
-
if (signalName.toUpperCase() in
|
|
2180
|
+
if (signalName.toUpperCase() in os.constants.signals) {
|
|
2188
2181
|
throw new TypeError(`Invalid ${optionName} '${signalName}': please rename it to '${signalName.toUpperCase()}'.`);
|
|
2189
2182
|
}
|
|
2190
2183
|
throw new TypeError(`Invalid ${optionName} '${signalName}': this signal name does not exist.
|
|
@@ -2192,11 +2185,11 @@ ${getAvailableSignals()}`);
|
|
|
2192
2185
|
};
|
|
2193
2186
|
var getAvailableSignals = () => `Available signal names: ${getAvailableSignalNames()}.
|
|
2194
2187
|
Available signal numbers: ${getAvailableSignalIntegers()}.`;
|
|
2195
|
-
var getAvailableSignalNames = () => Object.keys(
|
|
2196
|
-
var getAvailableSignalIntegers = () => [...new Set(Object.values(
|
|
2188
|
+
var getAvailableSignalNames = () => Object.keys(os.constants.signals).sort().map((signalName) => `'${signalName}'`).join(", ");
|
|
2189
|
+
var getAvailableSignalIntegers = () => [...new Set(Object.values(os.constants.signals).sort((signalInteger, signalIntegerTwo) => signalInteger - signalIntegerTwo))].join(", ");
|
|
2197
2190
|
var getSignalDescription = (signal) => signalsByName[signal].description;
|
|
2198
2191
|
|
|
2199
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2192
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/terminate/kill.js
|
|
2200
2193
|
var normalizeForceKillAfterDelay = (forceKillAfterDelay) => {
|
|
2201
2194
|
if (forceKillAfterDelay === false) {
|
|
2202
2195
|
return forceKillAfterDelay;
|
|
@@ -2255,27 +2248,26 @@ var killOnTimeout = async ({ kill, forceKillAfterDelay, context, controllerSigna
|
|
|
2255
2248
|
return;
|
|
2256
2249
|
}
|
|
2257
2250
|
try {
|
|
2258
|
-
await
|
|
2251
|
+
await promises$1.setTimeout(forceKillAfterDelay, void 0, { signal: controllerSignal });
|
|
2259
2252
|
if (kill("SIGKILL")) {
|
|
2260
2253
|
context.isForcefullyTerminated ??= true;
|
|
2261
2254
|
}
|
|
2262
|
-
} catch
|
|
2255
|
+
} catch {
|
|
2263
2256
|
}
|
|
2264
2257
|
};
|
|
2265
2258
|
|
|
2266
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2259
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/terminate/cancel.js
|
|
2267
2260
|
init_cjs_shims();
|
|
2268
2261
|
|
|
2269
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2262
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/utils/abort-signal.js
|
|
2270
2263
|
init_cjs_shims();
|
|
2271
|
-
var _events2 = require('events');
|
|
2272
2264
|
var onAbortedSignal = async (mainSignal, stopSignal) => {
|
|
2273
2265
|
if (!mainSignal.aborted) {
|
|
2274
|
-
await
|
|
2266
|
+
await events.once(mainSignal, "abort", { signal: stopSignal });
|
|
2275
2267
|
}
|
|
2276
2268
|
};
|
|
2277
2269
|
|
|
2278
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2270
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/terminate/cancel.js
|
|
2279
2271
|
var validateCancelSignal = ({ cancelSignal }) => {
|
|
2280
2272
|
if (cancelSignal !== void 0 && Object.prototype.toString.call(cancelSignal) !== "[object AbortSignal]") {
|
|
2281
2273
|
throw new Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(cancelSignal)}`);
|
|
@@ -2289,18 +2281,16 @@ var terminateOnCancel = async (subprocess, cancelSignal, context, { signal }) =>
|
|
|
2289
2281
|
throw cancelSignal.reason;
|
|
2290
2282
|
};
|
|
2291
2283
|
|
|
2292
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2284
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/terminate/graceful.js
|
|
2293
2285
|
init_cjs_shims();
|
|
2294
2286
|
|
|
2295
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2287
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/graceful.js
|
|
2296
2288
|
init_cjs_shims();
|
|
2297
2289
|
|
|
2298
|
-
|
|
2299
|
-
// ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/send.js
|
|
2290
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/send.js
|
|
2300
2291
|
init_cjs_shims();
|
|
2301
2292
|
|
|
2302
|
-
|
|
2303
|
-
// ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/validation.js
|
|
2293
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/validation.js
|
|
2304
2294
|
init_cjs_shims();
|
|
2305
2295
|
var validateIpcMethod = ({ methodName, isSubprocess, ipc, isConnected: isConnected2 }) => {
|
|
2306
2296
|
validateIpcOption(methodName, isSubprocess, ipc);
|
|
@@ -2373,20 +2363,20 @@ var disconnect = (anyProcess) => {
|
|
|
2373
2363
|
}
|
|
2374
2364
|
};
|
|
2375
2365
|
|
|
2376
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2366
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/outgoing.js
|
|
2377
2367
|
init_cjs_shims();
|
|
2378
2368
|
|
|
2379
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2369
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/utils/deferred.js
|
|
2380
2370
|
init_cjs_shims();
|
|
2381
2371
|
var createDeferred = () => {
|
|
2382
2372
|
const methods = {};
|
|
2383
|
-
const promise = new Promise((
|
|
2384
|
-
Object.assign(methods, { resolve
|
|
2373
|
+
const promise = new Promise((resolve, reject) => {
|
|
2374
|
+
Object.assign(methods, { resolve, reject });
|
|
2385
2375
|
});
|
|
2386
2376
|
return Object.assign(promise, methods);
|
|
2387
2377
|
};
|
|
2388
2378
|
|
|
2389
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2379
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/arguments/fd-options.js
|
|
2390
2380
|
init_cjs_shims();
|
|
2391
2381
|
var getToStream = (destination, to = "stdin") => {
|
|
2392
2382
|
const isWritable = true;
|
|
@@ -2467,34 +2457,29 @@ var serializeOptionValue = (value) => {
|
|
|
2467
2457
|
return typeof value === "number" ? `${value}` : "Stream";
|
|
2468
2458
|
};
|
|
2469
2459
|
|
|
2470
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2460
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/strict.js
|
|
2471
2461
|
init_cjs_shims();
|
|
2472
2462
|
|
|
2473
|
-
|
|
2474
|
-
// ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/utils/max-listeners.js
|
|
2463
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/utils/max-listeners.js
|
|
2475
2464
|
init_cjs_shims();
|
|
2476
|
-
|
|
2477
2465
|
var incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
|
|
2478
2466
|
const maxListeners = eventEmitter.getMaxListeners();
|
|
2479
2467
|
if (maxListeners === 0 || maxListeners === Number.POSITIVE_INFINITY) {
|
|
2480
2468
|
return;
|
|
2481
2469
|
}
|
|
2482
2470
|
eventEmitter.setMaxListeners(maxListeners + maxListenersIncrement);
|
|
2483
|
-
|
|
2471
|
+
events.addAbortListener(signal, () => {
|
|
2484
2472
|
eventEmitter.setMaxListeners(eventEmitter.getMaxListeners() - maxListenersIncrement);
|
|
2485
2473
|
});
|
|
2486
2474
|
};
|
|
2487
2475
|
|
|
2488
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2476
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/forward.js
|
|
2489
2477
|
init_cjs_shims();
|
|
2490
2478
|
|
|
2491
|
-
|
|
2492
|
-
// ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/incoming.js
|
|
2479
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/incoming.js
|
|
2493
2480
|
init_cjs_shims();
|
|
2494
2481
|
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
// ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/reference.js
|
|
2482
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/reference.js
|
|
2498
2483
|
init_cjs_shims();
|
|
2499
2484
|
var addReference = (channel, reference) => {
|
|
2500
2485
|
if (reference) {
|
|
@@ -2525,7 +2510,7 @@ var redoAddedReferences = (channel, isSubprocess) => {
|
|
|
2525
2510
|
}
|
|
2526
2511
|
};
|
|
2527
2512
|
|
|
2528
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2513
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/incoming.js
|
|
2529
2514
|
var onMessage = async ({ anyProcess, channel, isSubprocess, ipcEmitter }, wrappedMessage) => {
|
|
2530
2515
|
if (handleStrictResponse(wrappedMessage) || handleAbort(wrappedMessage)) {
|
|
2531
2516
|
return;
|
|
@@ -2540,7 +2525,7 @@ var onMessage = async ({ anyProcess, channel, isSubprocess, ipcEmitter }, wrappe
|
|
|
2540
2525
|
}
|
|
2541
2526
|
while (incomingMessages.length > 0) {
|
|
2542
2527
|
await waitForOutgoingMessages(anyProcess, ipcEmitter, wrappedMessage);
|
|
2543
|
-
await
|
|
2528
|
+
await promises$1.scheduler.yield();
|
|
2544
2529
|
const message = await handleStrictRequest({
|
|
2545
2530
|
wrappedMessage: incomingMessages[0],
|
|
2546
2531
|
anyProcess,
|
|
@@ -2556,8 +2541,8 @@ var onMessage = async ({ anyProcess, channel, isSubprocess, ipcEmitter }, wrappe
|
|
|
2556
2541
|
var onDisconnect = async ({ anyProcess, channel, isSubprocess, ipcEmitter, boundOnMessage }) => {
|
|
2557
2542
|
abortOnDisconnect();
|
|
2558
2543
|
const incomingMessages = INCOMING_MESSAGES.get(anyProcess);
|
|
2559
|
-
while (
|
|
2560
|
-
await
|
|
2544
|
+
while (incomingMessages?.length > 0) {
|
|
2545
|
+
await events.once(ipcEmitter, "message:done");
|
|
2561
2546
|
}
|
|
2562
2547
|
anyProcess.removeListener("message", boundOnMessage);
|
|
2563
2548
|
redoAddedReferences(channel, isSubprocess);
|
|
@@ -2566,12 +2551,12 @@ var onDisconnect = async ({ anyProcess, channel, isSubprocess, ipcEmitter, bound
|
|
|
2566
2551
|
};
|
|
2567
2552
|
var INCOMING_MESSAGES = /* @__PURE__ */ new WeakMap();
|
|
2568
2553
|
|
|
2569
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2554
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/forward.js
|
|
2570
2555
|
var getIpcEmitter = (anyProcess, channel, isSubprocess) => {
|
|
2571
2556
|
if (IPC_EMITTERS.has(anyProcess)) {
|
|
2572
2557
|
return IPC_EMITTERS.get(anyProcess);
|
|
2573
2558
|
}
|
|
2574
|
-
const ipcEmitter = new
|
|
2559
|
+
const ipcEmitter = new events.EventEmitter();
|
|
2575
2560
|
ipcEmitter.connected = true;
|
|
2576
2561
|
IPC_EMITTERS.set(anyProcess, ipcEmitter);
|
|
2577
2562
|
forwardEvents({
|
|
@@ -2605,7 +2590,7 @@ var isConnected = (anyProcess) => {
|
|
|
2605
2590
|
return ipcEmitter === void 0 ? anyProcess.channel !== null : ipcEmitter.connected;
|
|
2606
2591
|
};
|
|
2607
2592
|
|
|
2608
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2593
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/strict.js
|
|
2609
2594
|
var handleSendStrict = ({ anyProcess, channel, isSubprocess, message, strict }) => {
|
|
2610
2595
|
if (!strict) {
|
|
2611
2596
|
return message;
|
|
@@ -2621,7 +2606,7 @@ var handleSendStrict = ({ anyProcess, channel, isSubprocess, message, strict })
|
|
|
2621
2606
|
};
|
|
2622
2607
|
var count = 0n;
|
|
2623
2608
|
var validateStrictDeadlock = (outgoingMessages, wrappedMessage) => {
|
|
2624
|
-
if (
|
|
2609
|
+
if (wrappedMessage?.type !== REQUEST_TYPE || wrappedMessage.hasListeners) {
|
|
2625
2610
|
return;
|
|
2626
2611
|
}
|
|
2627
2612
|
for (const { id } of outgoingMessages) {
|
|
@@ -2631,7 +2616,7 @@ var validateStrictDeadlock = (outgoingMessages, wrappedMessage) => {
|
|
|
2631
2616
|
}
|
|
2632
2617
|
};
|
|
2633
2618
|
var handleStrictRequest = async ({ wrappedMessage, anyProcess, channel, isSubprocess, ipcEmitter }) => {
|
|
2634
|
-
if (
|
|
2619
|
+
if (wrappedMessage?.type !== REQUEST_TYPE || !anyProcess.connected) {
|
|
2635
2620
|
return wrappedMessage;
|
|
2636
2621
|
}
|
|
2637
2622
|
const { id, message } = wrappedMessage;
|
|
@@ -2649,15 +2634,15 @@ var handleStrictRequest = async ({ wrappedMessage, anyProcess, channel, isSubpro
|
|
|
2649
2634
|
return message;
|
|
2650
2635
|
};
|
|
2651
2636
|
var handleStrictResponse = (wrappedMessage) => {
|
|
2652
|
-
if (
|
|
2637
|
+
if (wrappedMessage?.type !== RESPONSE_TYPE) {
|
|
2653
2638
|
return false;
|
|
2654
2639
|
}
|
|
2655
2640
|
const { id, message: hasListeners } = wrappedMessage;
|
|
2656
|
-
|
|
2641
|
+
STRICT_RESPONSES[id]?.resolve({ isDeadlock: false, hasListeners });
|
|
2657
2642
|
return true;
|
|
2658
2643
|
};
|
|
2659
2644
|
var waitForStrictResponse = async (wrappedMessage, anyProcess, isSubprocess) => {
|
|
2660
|
-
if (
|
|
2645
|
+
if (wrappedMessage?.type !== REQUEST_TYPE) {
|
|
2661
2646
|
return;
|
|
2662
2647
|
}
|
|
2663
2648
|
const deferred = createDeferred();
|
|
@@ -2682,13 +2667,13 @@ var waitForStrictResponse = async (wrappedMessage, anyProcess, isSubprocess) =>
|
|
|
2682
2667
|
var STRICT_RESPONSES = {};
|
|
2683
2668
|
var throwOnDisconnect = async (anyProcess, isSubprocess, { signal }) => {
|
|
2684
2669
|
incrementMaxListeners(anyProcess, 1, signal);
|
|
2685
|
-
await
|
|
2670
|
+
await events.once(anyProcess, "disconnect", { signal });
|
|
2686
2671
|
throwOnStrictDisconnect(isSubprocess);
|
|
2687
2672
|
};
|
|
2688
2673
|
var REQUEST_TYPE = "execa:ipc:request";
|
|
2689
2674
|
var RESPONSE_TYPE = "execa:ipc:response";
|
|
2690
2675
|
|
|
2691
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2676
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/outgoing.js
|
|
2692
2677
|
var startSendMessage = (anyProcess, wrappedMessage, strict) => {
|
|
2693
2678
|
if (!OUTGOING_MESSAGES.has(anyProcess)) {
|
|
2694
2679
|
OUTGOING_MESSAGES.set(anyProcess, /* @__PURE__ */ new Set());
|
|
@@ -2705,7 +2690,7 @@ var endSendMessage = ({ outgoingMessages, outgoingMessage }) => {
|
|
|
2705
2690
|
outgoingMessage.onMessageSent.resolve();
|
|
2706
2691
|
};
|
|
2707
2692
|
var waitForOutgoingMessages = async (anyProcess, ipcEmitter, wrappedMessage) => {
|
|
2708
|
-
while (!hasMessageListeners(anyProcess, ipcEmitter) &&
|
|
2693
|
+
while (!hasMessageListeners(anyProcess, ipcEmitter) && OUTGOING_MESSAGES.get(anyProcess)?.size > 0) {
|
|
2709
2694
|
const outgoingMessages = [...OUTGOING_MESSAGES.get(anyProcess)];
|
|
2710
2695
|
validateStrictDeadlock(outgoingMessages, wrappedMessage);
|
|
2711
2696
|
await Promise.all(outgoingMessages.map(({ onMessageSent }) => onMessageSent));
|
|
@@ -2715,7 +2700,7 @@ var OUTGOING_MESSAGES = /* @__PURE__ */ new WeakMap();
|
|
|
2715
2700
|
var hasMessageListeners = (anyProcess, ipcEmitter) => ipcEmitter.listenerCount("message") > getMinListenerCount(anyProcess);
|
|
2716
2701
|
var getMinListenerCount = (anyProcess) => SUBPROCESS_OPTIONS.has(anyProcess) && !getFdSpecificValue(SUBPROCESS_OPTIONS.get(anyProcess).options.buffer, "ipc") ? 1 : 0;
|
|
2717
2702
|
|
|
2718
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2703
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/send.js
|
|
2719
2704
|
var sendMessage = ({ anyProcess, channel, isSubprocess, ipc }, message, { strict = false } = {}) => {
|
|
2720
2705
|
const methodName = "sendMessage";
|
|
2721
2706
|
validateIpcMethod({
|
|
@@ -2779,13 +2764,13 @@ var getSendMethod = (anyProcess) => {
|
|
|
2779
2764
|
if (PROCESS_SEND_METHODS.has(anyProcess)) {
|
|
2780
2765
|
return PROCESS_SEND_METHODS.get(anyProcess);
|
|
2781
2766
|
}
|
|
2782
|
-
const sendMethod =
|
|
2767
|
+
const sendMethod = util.promisify(anyProcess.send.bind(anyProcess));
|
|
2783
2768
|
PROCESS_SEND_METHODS.set(anyProcess, sendMethod);
|
|
2784
2769
|
return sendMethod;
|
|
2785
2770
|
};
|
|
2786
2771
|
var PROCESS_SEND_METHODS = /* @__PURE__ */ new WeakMap();
|
|
2787
2772
|
|
|
2788
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2773
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/graceful.js
|
|
2789
2774
|
var sendAbort = (subprocess, message) => {
|
|
2790
2775
|
const methodName = "cancelSignal";
|
|
2791
2776
|
validateConnection(methodName, false, subprocess.connected);
|
|
@@ -2820,11 +2805,11 @@ var startIpc = async ({ anyProcess, channel, isSubprocess, ipc }) => {
|
|
|
2820
2805
|
return;
|
|
2821
2806
|
}
|
|
2822
2807
|
getIpcEmitter(anyProcess, channel, isSubprocess);
|
|
2823
|
-
await
|
|
2808
|
+
await promises$1.scheduler.yield();
|
|
2824
2809
|
};
|
|
2825
2810
|
var cancelListening = false;
|
|
2826
2811
|
var handleAbort = (wrappedMessage) => {
|
|
2827
|
-
if (
|
|
2812
|
+
if (wrappedMessage?.type !== GRACEFUL_CANCEL_TYPE) {
|
|
2828
2813
|
return false;
|
|
2829
2814
|
}
|
|
2830
2815
|
cancelController.abort(wrappedMessage.message);
|
|
@@ -2836,7 +2821,7 @@ var abortOnDisconnect = () => {
|
|
|
2836
2821
|
};
|
|
2837
2822
|
var cancelController = new AbortController();
|
|
2838
2823
|
|
|
2839
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2824
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/terminate/graceful.js
|
|
2840
2825
|
var validateGracefulCancel = ({ gracefulCancel, cancelSignal, ipc, serialization }) => {
|
|
2841
2826
|
if (!gracefulCancel) {
|
|
2842
2827
|
return;
|
|
@@ -2892,9 +2877,8 @@ var getReason = ({ reason }) => {
|
|
|
2892
2877
|
return error;
|
|
2893
2878
|
};
|
|
2894
2879
|
|
|
2895
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2880
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/terminate/timeout.js
|
|
2896
2881
|
init_cjs_shims();
|
|
2897
|
-
|
|
2898
2882
|
var validateTimeout = ({ timeout }) => {
|
|
2899
2883
|
if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) {
|
|
2900
2884
|
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
|
|
@@ -2902,16 +2886,14 @@ var validateTimeout = ({ timeout }) => {
|
|
|
2902
2886
|
};
|
|
2903
2887
|
var throwOnTimeout = (subprocess, timeout, context, controller) => timeout === 0 || timeout === void 0 ? [] : [killAfterTimeout(subprocess, timeout, context, controller)];
|
|
2904
2888
|
var killAfterTimeout = async (subprocess, timeout, context, { signal }) => {
|
|
2905
|
-
await
|
|
2889
|
+
await promises$1.setTimeout(timeout, void 0, { signal });
|
|
2906
2890
|
context.terminationReason ??= "timeout";
|
|
2907
2891
|
subprocess.kill();
|
|
2908
2892
|
throw new DiscardedError();
|
|
2909
2893
|
};
|
|
2910
2894
|
|
|
2911
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2895
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/methods/node.js
|
|
2912
2896
|
init_cjs_shims();
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
2897
|
var mapNode = ({ options }) => {
|
|
2916
2898
|
if (options.node === false) {
|
|
2917
2899
|
throw new TypeError('The "node" option cannot be false with `execaNode()`.');
|
|
@@ -2920,8 +2902,8 @@ var mapNode = ({ options }) => {
|
|
|
2920
2902
|
};
|
|
2921
2903
|
var handleNodeOption = (file, commandArguments, {
|
|
2922
2904
|
node: shouldHandleNode = false,
|
|
2923
|
-
nodePath =
|
|
2924
|
-
nodeOptions =
|
|
2905
|
+
nodePath = process3.execPath,
|
|
2906
|
+
nodeOptions = process3.execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")),
|
|
2925
2907
|
cwd,
|
|
2926
2908
|
execPath: formerNodePath,
|
|
2927
2909
|
...options
|
|
@@ -2930,7 +2912,7 @@ var handleNodeOption = (file, commandArguments, {
|
|
|
2930
2912
|
throw new TypeError('The "execPath" option has been removed. Please use the "nodePath" option instead.');
|
|
2931
2913
|
}
|
|
2932
2914
|
const normalizedNodePath = safeNormalizeFileUrl(nodePath, 'The "nodePath" option');
|
|
2933
|
-
const resolvedNodePath =
|
|
2915
|
+
const resolvedNodePath = path2__default.default.resolve(cwd, normalizedNodePath);
|
|
2934
2916
|
const newOptions = {
|
|
2935
2917
|
...options,
|
|
2936
2918
|
nodePath: resolvedNodePath,
|
|
@@ -2940,7 +2922,7 @@ var handleNodeOption = (file, commandArguments, {
|
|
|
2940
2922
|
if (!shouldHandleNode) {
|
|
2941
2923
|
return [file, commandArguments, newOptions];
|
|
2942
2924
|
}
|
|
2943
|
-
if (
|
|
2925
|
+
if (path2__default.default.basename(file, ".exe") === "node") {
|
|
2944
2926
|
throw new TypeError('When the "node" option is true, the first argument does not need to be "node".');
|
|
2945
2927
|
}
|
|
2946
2928
|
return [
|
|
@@ -2950,9 +2932,8 @@ var handleNodeOption = (file, commandArguments, {
|
|
|
2950
2932
|
];
|
|
2951
2933
|
};
|
|
2952
2934
|
|
|
2953
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2935
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/ipc-input.js
|
|
2954
2936
|
init_cjs_shims();
|
|
2955
|
-
var _v8 = require('v8');
|
|
2956
2937
|
var validateIpcInputOption = ({ ipcInput, ipc, serialization }) => {
|
|
2957
2938
|
if (ipcInput === void 0) {
|
|
2958
2939
|
return;
|
|
@@ -2964,7 +2945,7 @@ var validateIpcInputOption = ({ ipcInput, ipc, serialization }) => {
|
|
|
2964
2945
|
};
|
|
2965
2946
|
var validateAdvancedInput = (ipcInput) => {
|
|
2966
2947
|
try {
|
|
2967
|
-
|
|
2948
|
+
v8.serialize(ipcInput);
|
|
2968
2949
|
} catch (error) {
|
|
2969
2950
|
throw new Error("The `ipcInput` option is not serializable with a structured clone.", { cause: error });
|
|
2970
2951
|
}
|
|
@@ -2987,7 +2968,7 @@ var sendIpcInput = async (subprocess, ipcInput) => {
|
|
|
2987
2968
|
await subprocess.sendMessage(ipcInput);
|
|
2988
2969
|
};
|
|
2989
2970
|
|
|
2990
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2971
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/arguments/encoding-option.js
|
|
2991
2972
|
init_cjs_shims();
|
|
2992
2973
|
var validateEncoding = ({ encoding }) => {
|
|
2993
2974
|
if (ENCODINGS.has(encoding)) {
|
|
@@ -3030,18 +3011,15 @@ var ENCODING_ALIASES = {
|
|
|
3030
3011
|
};
|
|
3031
3012
|
var serializeEncoding = (encoding) => typeof encoding === "string" ? `"${encoding}"` : String(encoding);
|
|
3032
3013
|
|
|
3033
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
3014
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/arguments/cwd.js
|
|
3034
3015
|
init_cjs_shims();
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
3016
|
var normalizeCwd = (cwd = getDefaultCwd()) => {
|
|
3039
3017
|
const cwdString = safeNormalizeFileUrl(cwd, 'The "cwd" option');
|
|
3040
|
-
return
|
|
3018
|
+
return path2__default.default.resolve(cwdString);
|
|
3041
3019
|
};
|
|
3042
3020
|
var getDefaultCwd = () => {
|
|
3043
3021
|
try {
|
|
3044
|
-
return
|
|
3022
|
+
return process3__namespace.default.cwd();
|
|
3045
3023
|
} catch (error) {
|
|
3046
3024
|
error.message = `The current directory does not exist.
|
|
3047
3025
|
${error.message}`;
|
|
@@ -3054,7 +3032,7 @@ var fixCwdError = (originalMessage, cwd) => {
|
|
|
3054
3032
|
}
|
|
3055
3033
|
let cwdStat;
|
|
3056
3034
|
try {
|
|
3057
|
-
cwdStat =
|
|
3035
|
+
cwdStat = fs.statSync(cwd);
|
|
3058
3036
|
} catch (error) {
|
|
3059
3037
|
return `The "cwd" option is invalid: ${cwd}.
|
|
3060
3038
|
${error.message}
|
|
@@ -3067,7 +3045,7 @@ ${originalMessage}`;
|
|
|
3067
3045
|
return originalMessage;
|
|
3068
3046
|
};
|
|
3069
3047
|
|
|
3070
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
3048
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/arguments/options.js
|
|
3071
3049
|
var normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
3072
3050
|
rawOptions.cwd = normalizeCwd(rawOptions.cwd);
|
|
3073
3051
|
const [processedFile, processedArguments, processedOptions] = handleNodeOption(filePath, rawArguments, rawOptions);
|
|
@@ -3084,7 +3062,7 @@ var normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
|
3084
3062
|
options.killSignal = normalizeKillSignal(options.killSignal);
|
|
3085
3063
|
options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
|
|
3086
3064
|
options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
|
|
3087
|
-
if (
|
|
3065
|
+
if (process3__namespace.default.platform === "win32" && path2__default.default.basename(file, ".exe") === "cmd") {
|
|
3088
3066
|
commandArguments.unshift("/q");
|
|
3089
3067
|
}
|
|
3090
3068
|
return { file, commandArguments, options };
|
|
@@ -3125,7 +3103,7 @@ var addDefaultOptions = ({
|
|
|
3125
3103
|
serialization
|
|
3126
3104
|
});
|
|
3127
3105
|
var getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
|
|
3128
|
-
const env = extendEnv ? { ...
|
|
3106
|
+
const env = extendEnv ? { ...process3__namespace.default.env, ...envOption } : envOption;
|
|
3129
3107
|
if (preferLocal || node) {
|
|
3130
3108
|
return npmRunPathEnv({
|
|
3131
3109
|
env,
|
|
@@ -3138,13 +3116,12 @@ var getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, no
|
|
|
3138
3116
|
return env;
|
|
3139
3117
|
};
|
|
3140
3118
|
|
|
3141
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
3119
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/return/result.js
|
|
3142
3120
|
init_cjs_shims();
|
|
3143
3121
|
|
|
3144
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
3122
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/return/message.js
|
|
3145
3123
|
init_cjs_shims();
|
|
3146
3124
|
|
|
3147
|
-
|
|
3148
3125
|
// ../../node_modules/.pnpm/strip-final-newline@4.0.0/node_modules/strip-final-newline/index.js
|
|
3149
3126
|
init_cjs_shims();
|
|
3150
3127
|
function stripFinalNewline(input) {
|
|
@@ -3163,14 +3140,12 @@ var LF_BINARY = LF.codePointAt(0);
|
|
|
3163
3140
|
var CR = "\r";
|
|
3164
3141
|
var CR_BINARY = CR.codePointAt(0);
|
|
3165
3142
|
|
|
3166
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
3143
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/io/max-buffer.js
|
|
3167
3144
|
init_cjs_shims();
|
|
3168
3145
|
|
|
3169
3146
|
// ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/index.js
|
|
3170
3147
|
init_cjs_shims();
|
|
3171
3148
|
|
|
3172
|
-
var _promises3 = require('stream/promises');
|
|
3173
|
-
|
|
3174
3149
|
// ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.js
|
|
3175
3150
|
init_cjs_shims();
|
|
3176
3151
|
|
|
@@ -3289,7 +3264,7 @@ var getAsyncIterable = (stream) => {
|
|
|
3289
3264
|
if (isReadableStream(stream, { checkOpen: false }) && nodeImports.on !== void 0) {
|
|
3290
3265
|
return getStreamIterable(stream);
|
|
3291
3266
|
}
|
|
3292
|
-
if (typeof
|
|
3267
|
+
if (typeof stream?.[Symbol.asyncIterator] === "function") {
|
|
3293
3268
|
return stream;
|
|
3294
3269
|
}
|
|
3295
3270
|
if (toString.call(stream) === "[object ReadableStream]") {
|
|
@@ -3411,7 +3386,7 @@ var getChunkType = (chunk) => {
|
|
|
3411
3386
|
if (typeOfChunk !== "object" || chunk === null) {
|
|
3412
3387
|
return "others";
|
|
3413
3388
|
}
|
|
3414
|
-
if (
|
|
3389
|
+
if (globalThis.Buffer?.isBuffer(chunk)) {
|
|
3415
3390
|
return "buffer";
|
|
3416
3391
|
}
|
|
3417
3392
|
const prototypeName = objectToString2.call(chunk);
|
|
@@ -3427,12 +3402,12 @@ var getChunkType = (chunk) => {
|
|
|
3427
3402
|
return "others";
|
|
3428
3403
|
};
|
|
3429
3404
|
var { toString: objectToString2 } = Object.prototype;
|
|
3430
|
-
var MaxBufferError =
|
|
3431
|
-
|
|
3405
|
+
var MaxBufferError = class extends Error {
|
|
3406
|
+
name = "MaxBufferError";
|
|
3432
3407
|
constructor() {
|
|
3433
|
-
super("maxBuffer exceeded");
|
|
3408
|
+
super("maxBuffer exceeded");
|
|
3434
3409
|
}
|
|
3435
|
-
}
|
|
3410
|
+
};
|
|
3436
3411
|
|
|
3437
3412
|
// ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/utils.js
|
|
3438
3413
|
init_cjs_shims();
|
|
@@ -3556,9 +3531,9 @@ var stringMethods = {
|
|
|
3556
3531
|
};
|
|
3557
3532
|
|
|
3558
3533
|
// ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/index.js
|
|
3559
|
-
Object.assign(nodeImports, { on:
|
|
3534
|
+
Object.assign(nodeImports, { on: events.on, finished: promises.finished });
|
|
3560
3535
|
|
|
3561
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
3536
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/io/max-buffer.js
|
|
3562
3537
|
var handleMaxBuffer = ({ error, stream, readableObjectMode, lines, encoding, fdNumber }) => {
|
|
3563
3538
|
if (!(error instanceof MaxBufferError)) {
|
|
3564
3539
|
throw error;
|
|
@@ -3596,7 +3571,7 @@ var getMaxBufferMessage = (error, maxBuffer) => {
|
|
|
3596
3571
|
return `Command's ${streamName} was larger than ${threshold} ${unit}`;
|
|
3597
3572
|
};
|
|
3598
3573
|
var getMaxBufferInfo = (error, maxBuffer) => {
|
|
3599
|
-
if (
|
|
3574
|
+
if (error?.maxBufferInfo === void 0) {
|
|
3600
3575
|
return { streamName: "output", threshold: maxBuffer[1], unit: "bytes" };
|
|
3601
3576
|
}
|
|
3602
3577
|
const { maxBufferInfo: { fdNumber, unit } } = error;
|
|
@@ -3607,7 +3582,7 @@ var getMaxBufferInfo = (error, maxBuffer) => {
|
|
|
3607
3582
|
}
|
|
3608
3583
|
return { streamName: getStreamName(fdNumber), threshold, unit };
|
|
3609
3584
|
};
|
|
3610
|
-
var isMaxBufferSync = (resultError, output, maxBuffer) =>
|
|
3585
|
+
var isMaxBufferSync = (resultError, output, maxBuffer) => resultError?.code === "ENOBUFS" && output !== null && output.some((result) => result !== null && result.length > getMaxBufferSync(maxBuffer));
|
|
3611
3586
|
var truncateMaxBufferSync = (result, isMaxBuffer, maxBuffer) => {
|
|
3612
3587
|
if (!isMaxBuffer) {
|
|
3613
3588
|
return result;
|
|
@@ -3617,7 +3592,7 @@ var truncateMaxBufferSync = (result, isMaxBuffer, maxBuffer) => {
|
|
|
3617
3592
|
};
|
|
3618
3593
|
var getMaxBufferSync = ([, stdoutMaxBuffer]) => stdoutMaxBuffer;
|
|
3619
3594
|
|
|
3620
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
3595
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/return/message.js
|
|
3621
3596
|
var createMessages = ({
|
|
3622
3597
|
stdio,
|
|
3623
3598
|
all,
|
|
@@ -3638,7 +3613,7 @@ var createMessages = ({
|
|
|
3638
3613
|
timeout,
|
|
3639
3614
|
cwd
|
|
3640
3615
|
}) => {
|
|
3641
|
-
const errorCode =
|
|
3616
|
+
const errorCode = originalError?.code;
|
|
3642
3617
|
const prefix = getErrorPrefix({
|
|
3643
3618
|
originalError,
|
|
3644
3619
|
timedOut,
|
|
@@ -3719,11 +3694,11 @@ var getOriginalMessage = (originalError, cwd) => {
|
|
|
3719
3694
|
if (originalError instanceof DiscardedError) {
|
|
3720
3695
|
return;
|
|
3721
3696
|
}
|
|
3722
|
-
const originalMessage = isExecaError(originalError) ? originalError.originalMessage : String(
|
|
3697
|
+
const originalMessage = isExecaError(originalError) ? originalError.originalMessage : String(originalError?.message ?? originalError);
|
|
3723
3698
|
const escapedOriginalMessage = escapeLines(fixCwdError(originalMessage, cwd));
|
|
3724
3699
|
return escapedOriginalMessage === "" ? void 0 : escapedOriginalMessage;
|
|
3725
3700
|
};
|
|
3726
|
-
var serializeIpcMessage = (ipcMessage) => typeof ipcMessage === "string" ? ipcMessage :
|
|
3701
|
+
var serializeIpcMessage = (ipcMessage) => typeof ipcMessage === "string" ? ipcMessage : util.inspect(ipcMessage);
|
|
3727
3702
|
var serializeMessagePart = (messagePart) => Array.isArray(messagePart) ? messagePart.map((messageItem) => stripFinalNewline(serializeMessageItem(messageItem))).filter(Boolean).join("\n") : serializeMessageItem(messagePart);
|
|
3728
3703
|
var serializeMessageItem = (messageItem) => {
|
|
3729
3704
|
if (typeof messageItem === "string") {
|
|
@@ -3735,7 +3710,7 @@ var serializeMessageItem = (messageItem) => {
|
|
|
3735
3710
|
return "";
|
|
3736
3711
|
};
|
|
3737
3712
|
|
|
3738
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
3713
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/return/result.js
|
|
3739
3714
|
var makeSuccessResult = ({
|
|
3740
3715
|
command,
|
|
3741
3716
|
escapedCommand,
|
|
@@ -3892,7 +3867,7 @@ var getErrorProperties = ({
|
|
|
3892
3867
|
exitCode,
|
|
3893
3868
|
signal,
|
|
3894
3869
|
signalDescription,
|
|
3895
|
-
code:
|
|
3870
|
+
code: error.cause?.code,
|
|
3896
3871
|
stdout: stdio[1],
|
|
3897
3872
|
stderr: stdio[2],
|
|
3898
3873
|
all,
|
|
@@ -3908,10 +3883,10 @@ var normalizeExitPayload = (rawExitCode, rawSignal) => {
|
|
|
3908
3883
|
return { exitCode, signal, signalDescription };
|
|
3909
3884
|
};
|
|
3910
3885
|
|
|
3911
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
3886
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/return/reject.js
|
|
3912
3887
|
init_cjs_shims();
|
|
3913
3888
|
|
|
3914
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
3889
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/verbose/complete.js
|
|
3915
3890
|
init_cjs_shims();
|
|
3916
3891
|
|
|
3917
3892
|
// ../../node_modules/.pnpm/pretty-ms@9.0.0/node_modules/pretty-ms/index.js
|
|
@@ -3989,7 +3964,7 @@ function prettyMilliseconds(milliseconds, options) {
|
|
|
3989
3964
|
if ((result.length === 0 || !options.colonNotation) && isZero(value) && !(options.colonNotation && short === "m")) {
|
|
3990
3965
|
return;
|
|
3991
3966
|
}
|
|
3992
|
-
valueString =
|
|
3967
|
+
valueString = valueString ?? String(value);
|
|
3993
3968
|
if (options.colonNotation) {
|
|
3994
3969
|
const wholeDigits = valueString.includes(".") ? valueString.split(".")[0].length : valueString.length;
|
|
3995
3970
|
const minLength = result.length > 0 ? 2 : 1;
|
|
@@ -4044,7 +4019,7 @@ function prettyMilliseconds(milliseconds, options) {
|
|
|
4044
4019
|
return result.join(separator);
|
|
4045
4020
|
}
|
|
4046
4021
|
|
|
4047
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4022
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/verbose/error.js
|
|
4048
4023
|
init_cjs_shims();
|
|
4049
4024
|
var logError = (result, verboseInfo) => {
|
|
4050
4025
|
if (result.failed) {
|
|
@@ -4057,7 +4032,7 @@ var logError = (result, verboseInfo) => {
|
|
|
4057
4032
|
}
|
|
4058
4033
|
};
|
|
4059
4034
|
|
|
4060
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4035
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/verbose/complete.js
|
|
4061
4036
|
var logResult = (result, verboseInfo) => {
|
|
4062
4037
|
if (!isVerbose(verboseInfo)) {
|
|
4063
4038
|
return;
|
|
@@ -4075,7 +4050,7 @@ var logDuration = (result, verboseInfo) => {
|
|
|
4075
4050
|
});
|
|
4076
4051
|
};
|
|
4077
4052
|
|
|
4078
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4053
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/return/reject.js
|
|
4079
4054
|
var handleResult = (result, verboseInfo, { reject }) => {
|
|
4080
4055
|
logResult(result, verboseInfo);
|
|
4081
4056
|
if (result.failed && reject) {
|
|
@@ -4084,17 +4059,16 @@ var handleResult = (result, verboseInfo, { reject }) => {
|
|
|
4084
4059
|
return result;
|
|
4085
4060
|
};
|
|
4086
4061
|
|
|
4087
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4062
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/stdio/handle-sync.js
|
|
4088
4063
|
init_cjs_shims();
|
|
4089
4064
|
|
|
4090
|
-
|
|
4091
|
-
// ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/stdio/handle.js
|
|
4065
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/stdio/handle.js
|
|
4092
4066
|
init_cjs_shims();
|
|
4093
4067
|
|
|
4094
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4068
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/transform/normalize.js
|
|
4095
4069
|
init_cjs_shims();
|
|
4096
4070
|
|
|
4097
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4071
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/stdio/type.js
|
|
4098
4072
|
init_cjs_shims();
|
|
4099
4073
|
var getStdioItemType = (value, optionName) => {
|
|
4100
4074
|
if (isAsyncGenerator(value)) {
|
|
@@ -4194,7 +4168,7 @@ var KNOWN_STDIO_STRINGS = /* @__PURE__ */ new Set(["ipc", "ignore", "inherit", "
|
|
|
4194
4168
|
var isReadableStream2 = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
|
|
4195
4169
|
var isWritableStream2 = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
|
|
4196
4170
|
var isWebStream = (value) => isReadableStream2(value) || isWritableStream2(value);
|
|
4197
|
-
var isTransformStream = (value) => isReadableStream2(
|
|
4171
|
+
var isTransformStream = (value) => isReadableStream2(value?.readable) && isWritableStream2(value?.writable);
|
|
4198
4172
|
var isAsyncIterableObject = (value) => isObject(value) && typeof value[Symbol.asyncIterator] === "function";
|
|
4199
4173
|
var isIterableObject = (value) => isObject(value) && typeof value[Symbol.iterator] === "function";
|
|
4200
4174
|
var isObject = (value) => typeof value === "object" && value !== null;
|
|
@@ -4220,17 +4194,17 @@ var TYPE_TO_MESSAGE = {
|
|
|
4220
4194
|
uint8Array: "a Uint8Array"
|
|
4221
4195
|
};
|
|
4222
4196
|
|
|
4223
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4197
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/transform/object-mode.js
|
|
4224
4198
|
init_cjs_shims();
|
|
4225
4199
|
var getTransformObjectModes = (objectMode, index, newTransforms, direction) => direction === "output" ? getOutputObjectModes(objectMode, index, newTransforms) : getInputObjectModes(objectMode, index, newTransforms);
|
|
4226
4200
|
var getOutputObjectModes = (objectMode, index, newTransforms) => {
|
|
4227
4201
|
const writableObjectMode = index !== 0 && newTransforms[index - 1].value.readableObjectMode;
|
|
4228
|
-
const readableObjectMode =
|
|
4202
|
+
const readableObjectMode = objectMode ?? writableObjectMode;
|
|
4229
4203
|
return { writableObjectMode, readableObjectMode };
|
|
4230
4204
|
};
|
|
4231
4205
|
var getInputObjectModes = (objectMode, index, newTransforms) => {
|
|
4232
4206
|
const writableObjectMode = index === 0 ? objectMode === true : newTransforms[index - 1].value.readableObjectMode;
|
|
4233
|
-
const readableObjectMode = index !== newTransforms.length - 1 && (
|
|
4207
|
+
const readableObjectMode = index !== newTransforms.length - 1 && (objectMode ?? writableObjectMode);
|
|
4234
4208
|
return { writableObjectMode, readableObjectMode };
|
|
4235
4209
|
};
|
|
4236
4210
|
var getFdObjectMode = (stdioItems, direction) => {
|
|
@@ -4241,7 +4215,7 @@ var getFdObjectMode = (stdioItems, direction) => {
|
|
|
4241
4215
|
return direction === "input" ? lastTransform.value.writableObjectMode : lastTransform.value.readableObjectMode;
|
|
4242
4216
|
};
|
|
4243
4217
|
|
|
4244
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4218
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/transform/normalize.js
|
|
4245
4219
|
var normalizeTransforms = (stdioItems, optionName, direction, options) => [
|
|
4246
4220
|
...stdioItems.filter(({ type }) => !TRANSFORM_TYPES.has(type)),
|
|
4247
4221
|
...getTransforms(stdioItems, optionName, direction, options)
|
|
@@ -4335,17 +4309,16 @@ var normalizeGenerator = ({ stdioItem, stdioItem: { value }, index, newTransform
|
|
|
4335
4309
|
};
|
|
4336
4310
|
var sortTransforms = (newTransforms, direction) => direction === "input" ? newTransforms.reverse() : newTransforms;
|
|
4337
4311
|
|
|
4338
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4312
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/stdio/direction.js
|
|
4339
4313
|
init_cjs_shims();
|
|
4340
|
-
|
|
4341
4314
|
var getStreamDirection = (stdioItems, fdNumber, optionName) => {
|
|
4342
4315
|
const directions = stdioItems.map((stdioItem) => getStdioItemDirection(stdioItem, fdNumber));
|
|
4343
4316
|
if (directions.includes("input") && directions.includes("output")) {
|
|
4344
4317
|
throw new TypeError(`The \`${optionName}\` option must not be an array of both readable and writable values.`);
|
|
4345
4318
|
}
|
|
4346
|
-
return
|
|
4319
|
+
return directions.find(Boolean) ?? DEFAULT_DIRECTION;
|
|
4347
4320
|
};
|
|
4348
|
-
var getStdioItemDirection = ({ type, value }, fdNumber) =>
|
|
4321
|
+
var getStdioItemDirection = ({ type, value }, fdNumber) => KNOWN_DIRECTIONS[fdNumber] ?? guessStreamDirection[type](value);
|
|
4349
4322
|
var KNOWN_DIRECTIONS = ["input", "output", "output"];
|
|
4350
4323
|
var anyDirection = () => void 0;
|
|
4351
4324
|
var alwaysInput = () => "input";
|
|
@@ -4377,23 +4350,23 @@ var guessStreamDirection = {
|
|
|
4377
4350
|
}
|
|
4378
4351
|
};
|
|
4379
4352
|
var getStandardStreamDirection = (value) => {
|
|
4380
|
-
if ([0,
|
|
4353
|
+
if ([0, process3__namespace.default.stdin].includes(value)) {
|
|
4381
4354
|
return "input";
|
|
4382
4355
|
}
|
|
4383
|
-
if ([1, 2,
|
|
4356
|
+
if ([1, 2, process3__namespace.default.stdout, process3__namespace.default.stderr].includes(value)) {
|
|
4384
4357
|
return "output";
|
|
4385
4358
|
}
|
|
4386
4359
|
};
|
|
4387
4360
|
var DEFAULT_DIRECTION = "output";
|
|
4388
4361
|
|
|
4389
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4362
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/stdio/stdio-option.js
|
|
4390
4363
|
init_cjs_shims();
|
|
4391
4364
|
|
|
4392
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4365
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/array.js
|
|
4393
4366
|
init_cjs_shims();
|
|
4394
4367
|
var normalizeIpcStdioArray = (stdioArray, ipc) => ipc && !stdioArray.includes("ipc") ? [...stdioArray, "ipc"] : stdioArray;
|
|
4395
4368
|
|
|
4396
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4369
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/stdio/stdio-option.js
|
|
4397
4370
|
var normalizeStdioOption = ({ stdio, ipc, buffer, ...options }, verboseInfo, isSync) => {
|
|
4398
4371
|
const stdioArray = getStdioArray(stdio, options).map((stdioOption, fdNumber) => addDefaultValue2(stdioOption, fdNumber));
|
|
4399
4372
|
return isSync ? normalizeStdioSync(stdioArray, buffer, verboseInfo) : normalizeIpcStdioArray(stdioArray, ipc);
|
|
@@ -4427,10 +4400,8 @@ var addDefaultValue2 = (stdioOption, fdNumber) => {
|
|
|
4427
4400
|
var normalizeStdioSync = (stdioArray, buffer, verboseInfo) => stdioArray.map((stdioOption, fdNumber) => !buffer[fdNumber] && fdNumber !== 0 && !isFullVerbose(verboseInfo, fdNumber) && isOutputPipeOnly(stdioOption) ? "ignore" : stdioOption);
|
|
4428
4401
|
var isOutputPipeOnly = (stdioOption) => stdioOption === "pipe" || Array.isArray(stdioOption) && stdioOption.every((item) => item === "pipe");
|
|
4429
4402
|
|
|
4430
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4403
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/stdio/native.js
|
|
4431
4404
|
init_cjs_shims();
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
4405
|
var handleNativeStream = ({ stdioItem, stdioItem: { type }, isStdioArray, fdNumber, direction, isSync }) => {
|
|
4435
4406
|
if (!isStdioArray || type !== "native") {
|
|
4436
4407
|
return stdioItem;
|
|
@@ -4460,10 +4431,10 @@ var getTargetFd = ({ value, optionName, fdNumber, direction }) => {
|
|
|
4460
4431
|
if (direction === "output") {
|
|
4461
4432
|
return { type: "fileNumber", value: targetFdNumber, optionName };
|
|
4462
4433
|
}
|
|
4463
|
-
if (
|
|
4434
|
+
if (tty__default.default.isatty(targetFdNumber)) {
|
|
4464
4435
|
throw new TypeError(`The \`${optionName}: ${serializeOptionValue(value)}\` option is invalid: it cannot be a TTY with synchronous methods.`);
|
|
4465
4436
|
}
|
|
4466
|
-
return { type: "uint8Array", value: bufferToUint8Array(
|
|
4437
|
+
return { type: "uint8Array", value: bufferToUint8Array(fs.readFileSync(targetFdNumber)), optionName };
|
|
4467
4438
|
};
|
|
4468
4439
|
var getTargetFdNumber = (value, fdNumber) => {
|
|
4469
4440
|
if (value === "inherit") {
|
|
@@ -4497,7 +4468,7 @@ var getStandardStream = (fdNumber, value, optionName) => {
|
|
|
4497
4468
|
return standardStream;
|
|
4498
4469
|
};
|
|
4499
4470
|
|
|
4500
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4471
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/stdio/input-option.js
|
|
4501
4472
|
init_cjs_shims();
|
|
4502
4473
|
var handleInputOptions = ({ input, inputFile }, fdNumber) => fdNumber === 0 ? [
|
|
4503
4474
|
...handleInputOption(input),
|
|
@@ -4534,7 +4505,7 @@ var getInputFileType = (inputFile) => {
|
|
|
4534
4505
|
throw new Error("The `inputFile` option must be a file path string or a file URL.");
|
|
4535
4506
|
};
|
|
4536
4507
|
|
|
4537
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4508
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/stdio/duplicate.js
|
|
4538
4509
|
init_cjs_shims();
|
|
4539
4510
|
var filterDuplicates = (stdioItems) => stdioItems.filter((stdioItemOne, indexOne) => stdioItems.every((stdioItemTwo, indexTwo) => stdioItemOne.value !== stdioItemTwo.value || indexOne >= indexTwo || stdioItemOne.type === "generator" || stdioItemOne.type === "asyncGenerator"));
|
|
4540
4511
|
var getDuplicateStream = ({ stdioItem: { type, value, optionName }, direction, fileDescriptors, isSync }) => {
|
|
@@ -4610,7 +4581,7 @@ var throwOnDuplicateStream = (stdioItem, optionName, type) => {
|
|
|
4610
4581
|
}
|
|
4611
4582
|
};
|
|
4612
4583
|
|
|
4613
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4584
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/stdio/handle.js
|
|
4614
4585
|
var handleStdio = (addProperties3, options, verboseInfo, isSync) => {
|
|
4615
4586
|
const stdio = normalizeStdioOption(options, verboseInfo, isSync);
|
|
4616
4587
|
const initialFileDescriptors = stdio.map((stdioOption, fdNumber) => getFileDescriptor({
|
|
@@ -4770,7 +4741,7 @@ var forwardStdio = (stdioItems) => {
|
|
|
4770
4741
|
return type === "native" ? value : "pipe";
|
|
4771
4742
|
};
|
|
4772
4743
|
|
|
4773
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4744
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/stdio/handle-sync.js
|
|
4774
4745
|
var handleStdioSync = (options, verboseInfo) => handleStdio(addPropertiesSync, options, verboseInfo, true);
|
|
4775
4746
|
var forbiddenIfSync = ({ type, optionName }) => {
|
|
4776
4747
|
throwInvalidSyncValue(optionName, TYPE_TO_MESSAGE[type]);
|
|
@@ -4798,8 +4769,8 @@ var addProperties = {
|
|
|
4798
4769
|
var addPropertiesSync = {
|
|
4799
4770
|
input: {
|
|
4800
4771
|
...addProperties,
|
|
4801
|
-
fileUrl: ({ value }) => ({ contents: [bufferToUint8Array(
|
|
4802
|
-
filePath: ({ value: { file } }) => ({ contents: [bufferToUint8Array(
|
|
4772
|
+
fileUrl: ({ value }) => ({ contents: [bufferToUint8Array(fs.readFileSync(value))] }),
|
|
4773
|
+
filePath: ({ value: { file } }) => ({ contents: [bufferToUint8Array(fs.readFileSync(file))] }),
|
|
4803
4774
|
fileNumber: forbiddenIfSync,
|
|
4804
4775
|
iterable: ({ value }) => ({ contents: [...value] }),
|
|
4805
4776
|
string: ({ value }) => ({ contents: [value] }),
|
|
@@ -4816,19 +4787,18 @@ var addPropertiesSync = {
|
|
|
4816
4787
|
}
|
|
4817
4788
|
};
|
|
4818
4789
|
|
|
4819
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4790
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/io/strip-newline.js
|
|
4820
4791
|
init_cjs_shims();
|
|
4821
4792
|
var stripNewline = (value, { stripFinalNewline: stripFinalNewline2 }, fdNumber) => getStripFinalNewline(stripFinalNewline2, fdNumber) && value !== void 0 && !Array.isArray(value) ? stripFinalNewline(value) : value;
|
|
4822
4793
|
var getStripFinalNewline = (stripFinalNewline2, fdNumber) => fdNumber === "all" ? stripFinalNewline2[1] || stripFinalNewline2[2] : stripFinalNewline2[fdNumber];
|
|
4823
4794
|
|
|
4824
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4795
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/io/input-sync.js
|
|
4825
4796
|
init_cjs_shims();
|
|
4826
4797
|
|
|
4827
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4798
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/transform/generator.js
|
|
4828
4799
|
init_cjs_shims();
|
|
4829
|
-
var _stream = require('stream');
|
|
4830
4800
|
|
|
4831
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4801
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/transform/split.js
|
|
4832
4802
|
init_cjs_shims();
|
|
4833
4803
|
var getSplitLinesGenerator = (binary, preserveNewlines, skipped, state) => binary || skipped ? void 0 : initializeSplitLines(preserveNewlines, state);
|
|
4834
4804
|
var splitLinesSync = (chunk, preserveNewlines, objectMode) => objectMode ? chunk.flatMap((item) => splitLinesItemSync(item, preserveNewlines)) : splitLinesItemSync(chunk, preserveNewlines);
|
|
@@ -4909,12 +4879,11 @@ var linesUint8ArrayInfo = {
|
|
|
4909
4879
|
concatBytes: concatUint8Array
|
|
4910
4880
|
};
|
|
4911
4881
|
|
|
4912
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4882
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/transform/validate.js
|
|
4913
4883
|
init_cjs_shims();
|
|
4914
|
-
var _buffer = require('buffer');
|
|
4915
4884
|
var getValidateTransformInput = (writableObjectMode, optionName) => writableObjectMode ? void 0 : validateStringTransformInput.bind(void 0, optionName);
|
|
4916
4885
|
var validateStringTransformInput = function* (optionName, chunk) {
|
|
4917
|
-
if (typeof chunk !== "string" && !isUint8Array(chunk) && !
|
|
4886
|
+
if (typeof chunk !== "string" && !isUint8Array(chunk) && !buffer.Buffer.isBuffer(chunk)) {
|
|
4918
4887
|
throw new TypeError(`The \`${optionName}\` option's transform must use "objectMode: true" to receive as input: ${typeof chunk}.`);
|
|
4919
4888
|
}
|
|
4920
4889
|
yield chunk;
|
|
@@ -4939,10 +4908,8 @@ Instead, \`yield\` should either be called with a value, or not be called at all
|
|
|
4939
4908
|
}
|
|
4940
4909
|
};
|
|
4941
4910
|
|
|
4942
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4911
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/transform/encoding-transform.js
|
|
4943
4912
|
init_cjs_shims();
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
4913
|
var getEncodingTransformGenerator = (binary, encoding, skipped) => {
|
|
4947
4914
|
if (skipped) {
|
|
4948
4915
|
return;
|
|
@@ -4950,14 +4917,14 @@ var getEncodingTransformGenerator = (binary, encoding, skipped) => {
|
|
|
4950
4917
|
if (binary) {
|
|
4951
4918
|
return { transform: encodingUint8ArrayGenerator.bind(void 0, new TextEncoder()) };
|
|
4952
4919
|
}
|
|
4953
|
-
const stringDecoder = new
|
|
4920
|
+
const stringDecoder = new string_decoder.StringDecoder(encoding);
|
|
4954
4921
|
return {
|
|
4955
4922
|
transform: encodingStringGenerator.bind(void 0, stringDecoder),
|
|
4956
4923
|
final: encodingStringFinal.bind(void 0, stringDecoder)
|
|
4957
4924
|
};
|
|
4958
4925
|
};
|
|
4959
4926
|
var encodingUint8ArrayGenerator = function* (textEncoder3, chunk) {
|
|
4960
|
-
if (
|
|
4927
|
+
if (buffer.Buffer.isBuffer(chunk)) {
|
|
4961
4928
|
yield bufferToUint8Array(chunk);
|
|
4962
4929
|
} else if (typeof chunk === "string") {
|
|
4963
4930
|
yield textEncoder3.encode(chunk);
|
|
@@ -4975,10 +4942,9 @@ var encodingStringFinal = function* (stringDecoder) {
|
|
|
4975
4942
|
}
|
|
4976
4943
|
};
|
|
4977
4944
|
|
|
4978
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4945
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/transform/run-async.js
|
|
4979
4946
|
init_cjs_shims();
|
|
4980
|
-
|
|
4981
|
-
var pushChunks = _util.callbackify.call(void 0, async (getChunks, state, getChunksArguments, transformStream) => {
|
|
4947
|
+
var pushChunks = util.callbackify(async (getChunks, state, getChunksArguments, transformStream) => {
|
|
4982
4948
|
state.currentIterable = getChunks(...getChunksArguments);
|
|
4983
4949
|
try {
|
|
4984
4950
|
for await (const chunk of state.currentIterable) {
|
|
@@ -5011,7 +4977,7 @@ var generatorFinalChunks = async function* (final, index, generators) {
|
|
|
5011
4977
|
yield* transformChunk(finalChunk, generators, index + 1);
|
|
5012
4978
|
}
|
|
5013
4979
|
};
|
|
5014
|
-
var destroyTransform =
|
|
4980
|
+
var destroyTransform = util.callbackify(async ({ currentIterable }, error) => {
|
|
5015
4981
|
if (currentIterable !== void 0) {
|
|
5016
4982
|
await (error ? currentIterable.throw(error) : currentIterable.return());
|
|
5017
4983
|
return;
|
|
@@ -5024,7 +4990,7 @@ var identityGenerator = function* (chunk) {
|
|
|
5024
4990
|
yield chunk;
|
|
5025
4991
|
};
|
|
5026
4992
|
|
|
5027
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4993
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/transform/run-sync.js
|
|
5028
4994
|
init_cjs_shims();
|
|
5029
4995
|
var pushChunksSync = (getChunksSync, getChunksArguments, transformStream, done) => {
|
|
5030
4996
|
try {
|
|
@@ -5067,7 +5033,7 @@ var identityGenerator2 = function* (chunk) {
|
|
|
5067
5033
|
yield chunk;
|
|
5068
5034
|
};
|
|
5069
5035
|
|
|
5070
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5036
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/transform/generator.js
|
|
5071
5037
|
var generatorToStream = ({
|
|
5072
5038
|
value,
|
|
5073
5039
|
value: { transform, final, writableObjectMode, readableObjectMode },
|
|
@@ -5080,11 +5046,11 @@ var generatorToStream = ({
|
|
|
5080
5046
|
const transformMethod = transformAsync ? pushChunks.bind(void 0, transformChunk, state) : pushChunksSync.bind(void 0, transformChunkSync);
|
|
5081
5047
|
const finalMethod = transformAsync || finalAsync ? pushChunks.bind(void 0, finalChunks, state) : pushChunksSync.bind(void 0, finalChunksSync);
|
|
5082
5048
|
const destroyMethod = transformAsync || finalAsync ? destroyTransform.bind(void 0, state) : void 0;
|
|
5083
|
-
const stream = new
|
|
5049
|
+
const stream$1 = new stream.Transform({
|
|
5084
5050
|
writableObjectMode,
|
|
5085
|
-
writableHighWaterMark:
|
|
5051
|
+
writableHighWaterMark: stream.getDefaultHighWaterMark(writableObjectMode),
|
|
5086
5052
|
readableObjectMode,
|
|
5087
|
-
readableHighWaterMark:
|
|
5053
|
+
readableHighWaterMark: stream.getDefaultHighWaterMark(readableObjectMode),
|
|
5088
5054
|
transform(chunk, encoding2, done) {
|
|
5089
5055
|
transformMethod([chunk, generators, 0], this, done);
|
|
5090
5056
|
},
|
|
@@ -5093,7 +5059,7 @@ var generatorToStream = ({
|
|
|
5093
5059
|
},
|
|
5094
5060
|
destroy: destroyMethod
|
|
5095
5061
|
});
|
|
5096
|
-
return { stream };
|
|
5062
|
+
return { stream: stream$1 };
|
|
5097
5063
|
};
|
|
5098
5064
|
var runGeneratorsSync = (chunks, stdioItems, encoding, isInput) => {
|
|
5099
5065
|
const generators = stdioItems.filter(({ type }) => type === "generator");
|
|
@@ -5121,7 +5087,7 @@ var addInternalGenerators = ({ transform, final, binary, writableObjectMode, rea
|
|
|
5121
5087
|
].filter(Boolean);
|
|
5122
5088
|
};
|
|
5123
5089
|
|
|
5124
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5090
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/io/input-sync.js
|
|
5125
5091
|
var addInputOptionsSync = (fileDescriptors, options) => {
|
|
5126
5092
|
for (const fdNumber of getInputFdNumbers(fileDescriptors)) {
|
|
5127
5093
|
addInputOptionSync(fileDescriptors, fdNumber, options);
|
|
@@ -5154,11 +5120,10 @@ var validateSerializable = (newContents) => {
|
|
|
5154
5120
|
}
|
|
5155
5121
|
};
|
|
5156
5122
|
|
|
5157
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5123
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/io/output-sync.js
|
|
5158
5124
|
init_cjs_shims();
|
|
5159
5125
|
|
|
5160
|
-
|
|
5161
|
-
// ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/verbose/output.js
|
|
5126
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/verbose/output.js
|
|
5162
5127
|
init_cjs_shims();
|
|
5163
5128
|
var shouldLogOutput = ({ stdioItems, encoding, verboseInfo, fdNumber }) => fdNumber !== "all" && isFullVerbose(verboseInfo, fdNumber) && !BINARY_ENCODINGS.has(encoding) && fdUsesVerbose(fdNumber) && (stdioItems.some(({ type, value }) => type === "native" && PIPED_STDIO_VALUES.has(value)) || stdioItems.every(({ type }) => TRANSFORM_TYPES.has(type)));
|
|
5164
5129
|
var fdUsesVerbose = (fdNumber) => fdNumber === 1 || fdNumber === 2;
|
|
@@ -5186,7 +5151,7 @@ var logLine = (line, fdNumber, verboseInfo) => {
|
|
|
5186
5151
|
});
|
|
5187
5152
|
};
|
|
5188
5153
|
|
|
5189
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5154
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/io/output-sync.js
|
|
5190
5155
|
var transformOutputSync = ({ fileDescriptors, syncResult: { output }, options, isMaxBuffer, verboseInfo }) => {
|
|
5191
5156
|
if (output === null) {
|
|
5192
5157
|
return { output: Array.from({ length: 3 }) };
|
|
@@ -5278,18 +5243,18 @@ var logOutputSync = ({ serializedResult, fdNumber, state, verboseInfo, encoding,
|
|
|
5278
5243
|
}
|
|
5279
5244
|
};
|
|
5280
5245
|
var writeToFiles = (serializedResult, stdioItems, outputFiles) => {
|
|
5281
|
-
for (const { path:
|
|
5282
|
-
const pathString = typeof
|
|
5246
|
+
for (const { path: path7 } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
|
|
5247
|
+
const pathString = typeof path7 === "string" ? path7 : path7.toString();
|
|
5283
5248
|
if (outputFiles.has(pathString)) {
|
|
5284
|
-
|
|
5249
|
+
fs.appendFileSync(path7, serializedResult);
|
|
5285
5250
|
} else {
|
|
5286
5251
|
outputFiles.add(pathString);
|
|
5287
|
-
|
|
5252
|
+
fs.writeFileSync(path7, serializedResult);
|
|
5288
5253
|
}
|
|
5289
5254
|
}
|
|
5290
5255
|
};
|
|
5291
5256
|
|
|
5292
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5257
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/resolve/all-sync.js
|
|
5293
5258
|
init_cjs_shims();
|
|
5294
5259
|
var getAllSync = ([, stdout2, stderr], options) => {
|
|
5295
5260
|
if (!options.all) {
|
|
@@ -5313,12 +5278,11 @@ var getAllSync = ([, stdout2, stderr], options) => {
|
|
|
5313
5278
|
return `${stdout2}${stderr}`;
|
|
5314
5279
|
};
|
|
5315
5280
|
|
|
5316
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5281
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/resolve/exit-sync.js
|
|
5317
5282
|
init_cjs_shims();
|
|
5318
5283
|
|
|
5319
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5284
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/resolve/exit-async.js
|
|
5320
5285
|
init_cjs_shims();
|
|
5321
|
-
|
|
5322
5286
|
var waitForExit = async (subprocess, context) => {
|
|
5323
5287
|
const [exitCode, signal] = await waitForExitOrError(subprocess);
|
|
5324
5288
|
context.isForcefullyTerminated ??= false;
|
|
@@ -5326,8 +5290,8 @@ var waitForExit = async (subprocess, context) => {
|
|
|
5326
5290
|
};
|
|
5327
5291
|
var waitForExitOrError = async (subprocess) => {
|
|
5328
5292
|
const [spawnPayload, exitPayload] = await Promise.allSettled([
|
|
5329
|
-
|
|
5330
|
-
|
|
5293
|
+
events.once(subprocess, "spawn"),
|
|
5294
|
+
events.once(subprocess, "exit")
|
|
5331
5295
|
]);
|
|
5332
5296
|
if (spawnPayload.status === "rejected") {
|
|
5333
5297
|
return [];
|
|
@@ -5336,8 +5300,8 @@ var waitForExitOrError = async (subprocess) => {
|
|
|
5336
5300
|
};
|
|
5337
5301
|
var waitForSubprocessExit = async (subprocess) => {
|
|
5338
5302
|
try {
|
|
5339
|
-
return await
|
|
5340
|
-
} catch
|
|
5303
|
+
return await events.once(subprocess, "exit");
|
|
5304
|
+
} catch {
|
|
5341
5305
|
return waitForSubprocessExit(subprocess);
|
|
5342
5306
|
}
|
|
5343
5307
|
};
|
|
@@ -5351,10 +5315,10 @@ var waitForSuccessfulExit = async (exitPromise) => {
|
|
|
5351
5315
|
var isSubprocessErrorExit = (exitCode, signal) => exitCode === void 0 && signal === void 0;
|
|
5352
5316
|
var isFailedExit = (exitCode, signal) => exitCode !== 0 || signal !== null;
|
|
5353
5317
|
|
|
5354
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5318
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/resolve/exit-sync.js
|
|
5355
5319
|
var getExitResultSync = ({ error, status: exitCode, signal, output }, { maxBuffer }) => {
|
|
5356
5320
|
const resultError = getResultError(error, exitCode, signal);
|
|
5357
|
-
const timedOut =
|
|
5321
|
+
const timedOut = resultError?.code === "ETIMEDOUT";
|
|
5358
5322
|
const isMaxBuffer = isMaxBufferSync(resultError, output, maxBuffer);
|
|
5359
5323
|
return {
|
|
5360
5324
|
resultError,
|
|
@@ -5371,7 +5335,7 @@ var getResultError = (error, exitCode, signal) => {
|
|
|
5371
5335
|
return isFailedExit(exitCode, signal) ? new DiscardedError() : void 0;
|
|
5372
5336
|
};
|
|
5373
5337
|
|
|
5374
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5338
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/methods/main-sync.js
|
|
5375
5339
|
var execaCoreSync = (rawFile, rawArguments, rawOptions) => {
|
|
5376
5340
|
const { file, commandArguments, command, escapedCommand, startTime, verboseInfo, options, fileDescriptors } = handleSyncArguments(rawFile, rawArguments, rawOptions);
|
|
5377
5341
|
const result = spawnSubprocessSync({
|
|
@@ -5462,7 +5426,7 @@ var runSubprocessSync = ({ file, commandArguments, options, command, escapedComm
|
|
|
5462
5426
|
try {
|
|
5463
5427
|
addInputOptionsSync(fileDescriptors, options);
|
|
5464
5428
|
const normalizedOptions = normalizeSpawnSyncOptions(options);
|
|
5465
|
-
return
|
|
5429
|
+
return child_process.spawnSync(file, commandArguments, normalizedOptions);
|
|
5466
5430
|
} catch (error) {
|
|
5467
5431
|
return makeEarlyError({
|
|
5468
5432
|
error,
|
|
@@ -5503,18 +5467,14 @@ var getSyncResult = ({ error, exitCode, signal, timedOut, isMaxBuffer, stdio, al
|
|
|
5503
5467
|
isSync: true
|
|
5504
5468
|
});
|
|
5505
5469
|
|
|
5506
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5470
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/methods/main-async.js
|
|
5507
5471
|
init_cjs_shims();
|
|
5508
5472
|
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
// ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/methods.js
|
|
5473
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/methods.js
|
|
5512
5474
|
init_cjs_shims();
|
|
5513
5475
|
|
|
5514
|
-
|
|
5515
|
-
// ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/get-one.js
|
|
5476
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/get-one.js
|
|
5516
5477
|
init_cjs_shims();
|
|
5517
|
-
|
|
5518
5478
|
var getOneMessage = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true, filter } = {}) => {
|
|
5519
5479
|
validateIpcMethod({
|
|
5520
5480
|
methodName: "getOneMessage",
|
|
@@ -5550,27 +5510,26 @@ var getOneMessageAsync = async ({ anyProcess, channel, isSubprocess, filter, ref
|
|
|
5550
5510
|
};
|
|
5551
5511
|
var getMessage = async (ipcEmitter, filter, { signal }) => {
|
|
5552
5512
|
if (filter === void 0) {
|
|
5553
|
-
const [message] = await
|
|
5513
|
+
const [message] = await events.once(ipcEmitter, "message", { signal });
|
|
5554
5514
|
return message;
|
|
5555
5515
|
}
|
|
5556
|
-
for await (const [message] of
|
|
5516
|
+
for await (const [message] of events.on(ipcEmitter, "message", { signal })) {
|
|
5557
5517
|
if (filter(message)) {
|
|
5558
5518
|
return message;
|
|
5559
5519
|
}
|
|
5560
5520
|
}
|
|
5561
5521
|
};
|
|
5562
5522
|
var throwOnDisconnect2 = async (ipcEmitter, isSubprocess, { signal }) => {
|
|
5563
|
-
await
|
|
5523
|
+
await events.once(ipcEmitter, "disconnect", { signal });
|
|
5564
5524
|
throwOnEarlyDisconnect(isSubprocess);
|
|
5565
5525
|
};
|
|
5566
5526
|
var throwOnStrictError = async (ipcEmitter, isSubprocess, { signal }) => {
|
|
5567
|
-
const [error] = await
|
|
5527
|
+
const [error] = await events.once(ipcEmitter, "strict:error", { signal });
|
|
5568
5528
|
throw getStrictResponseError(error, isSubprocess);
|
|
5569
5529
|
};
|
|
5570
5530
|
|
|
5571
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5531
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/get-each.js
|
|
5572
5532
|
init_cjs_shims();
|
|
5573
|
-
|
|
5574
5533
|
var getEachMessage = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true } = {}) => loopOnMessages({
|
|
5575
5534
|
anyProcess,
|
|
5576
5535
|
channel,
|
|
@@ -5610,26 +5569,26 @@ var loopOnMessages = ({ anyProcess, channel, isSubprocess, ipc, shouldAwait, ref
|
|
|
5610
5569
|
};
|
|
5611
5570
|
var stopOnDisconnect = async (anyProcess, ipcEmitter, controller) => {
|
|
5612
5571
|
try {
|
|
5613
|
-
await
|
|
5572
|
+
await events.once(ipcEmitter, "disconnect", { signal: controller.signal });
|
|
5614
5573
|
controller.abort();
|
|
5615
|
-
} catch
|
|
5574
|
+
} catch {
|
|
5616
5575
|
}
|
|
5617
5576
|
};
|
|
5618
5577
|
var abortOnStrictError = async ({ ipcEmitter, isSubprocess, controller, state }) => {
|
|
5619
5578
|
try {
|
|
5620
|
-
const [error] = await
|
|
5579
|
+
const [error] = await events.once(ipcEmitter, "strict:error", { signal: controller.signal });
|
|
5621
5580
|
state.error = getStrictResponseError(error, isSubprocess);
|
|
5622
5581
|
controller.abort();
|
|
5623
|
-
} catch
|
|
5582
|
+
} catch {
|
|
5624
5583
|
}
|
|
5625
5584
|
};
|
|
5626
5585
|
var iterateOnMessages = async function* ({ anyProcess, channel, ipcEmitter, isSubprocess, shouldAwait, controller, state, reference }) {
|
|
5627
5586
|
try {
|
|
5628
|
-
for await (const [message] of
|
|
5587
|
+
for await (const [message] of events.on(ipcEmitter, "message", { signal: controller.signal })) {
|
|
5629
5588
|
throwIfStrictError(state);
|
|
5630
5589
|
yield message;
|
|
5631
5590
|
}
|
|
5632
|
-
} catch
|
|
5591
|
+
} catch {
|
|
5633
5592
|
throwIfStrictError(state);
|
|
5634
5593
|
} finally {
|
|
5635
5594
|
controller.abort();
|
|
@@ -5648,14 +5607,14 @@ var throwIfStrictError = ({ error }) => {
|
|
|
5648
5607
|
}
|
|
5649
5608
|
};
|
|
5650
5609
|
|
|
5651
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5610
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/methods.js
|
|
5652
5611
|
var addIpcMethods = (subprocess, { ipc }) => {
|
|
5653
5612
|
Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
|
|
5654
5613
|
};
|
|
5655
5614
|
var getIpcExport = () => {
|
|
5656
|
-
const anyProcess =
|
|
5615
|
+
const anyProcess = process3__namespace.default;
|
|
5657
5616
|
const isSubprocess = true;
|
|
5658
|
-
const ipc =
|
|
5617
|
+
const ipc = process3__namespace.default.channel !== void 0;
|
|
5659
5618
|
return {
|
|
5660
5619
|
...getIpcMethods(anyProcess, isSubprocess, ipc),
|
|
5661
5620
|
getCancelSignal: getCancelSignal.bind(void 0, {
|
|
@@ -5687,18 +5646,11 @@ var getIpcMethods = (anyProcess, isSubprocess, ipc) => ({
|
|
|
5687
5646
|
})
|
|
5688
5647
|
});
|
|
5689
5648
|
|
|
5690
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5649
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/return/early-error.js
|
|
5691
5650
|
init_cjs_shims();
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
5651
|
var handleEarlyError = ({ error, command, escapedCommand, fileDescriptors, options, startTime, verboseInfo }) => {
|
|
5700
5652
|
cleanupCustomStreams(fileDescriptors);
|
|
5701
|
-
const subprocess = new
|
|
5653
|
+
const subprocess = new child_process.ChildProcess();
|
|
5702
5654
|
createDummyStreams(subprocess, fileDescriptors);
|
|
5703
5655
|
Object.assign(subprocess, { readable, writable, duplex });
|
|
5704
5656
|
const earlyError = makeEarlyError({
|
|
@@ -5729,24 +5681,21 @@ var createDummyStreams = (subprocess, fileDescriptors) => {
|
|
|
5729
5681
|
});
|
|
5730
5682
|
};
|
|
5731
5683
|
var createDummyStream = () => {
|
|
5732
|
-
const stream = new
|
|
5733
|
-
stream.end();
|
|
5734
|
-
return stream;
|
|
5684
|
+
const stream$1 = new stream.PassThrough();
|
|
5685
|
+
stream$1.end();
|
|
5686
|
+
return stream$1;
|
|
5735
5687
|
};
|
|
5736
|
-
var readable = () => new
|
|
5688
|
+
var readable = () => new stream.Readable({ read() {
|
|
5737
5689
|
} });
|
|
5738
|
-
var writable = () => new
|
|
5690
|
+
var writable = () => new stream.Writable({ write() {
|
|
5739
5691
|
} });
|
|
5740
|
-
var duplex = () => new
|
|
5692
|
+
var duplex = () => new stream.Duplex({ read() {
|
|
5741
5693
|
}, write() {
|
|
5742
5694
|
} });
|
|
5743
5695
|
var handleDummyPromise = async (error, verboseInfo, options) => handleResult(error, verboseInfo, options);
|
|
5744
5696
|
|
|
5745
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5697
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/stdio/handle-async.js
|
|
5746
5698
|
init_cjs_shims();
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
5699
|
var handleStdioAsync = (options, verboseInfo) => handleStdio(addPropertiesAsync, options, verboseInfo, false);
|
|
5751
5700
|
var forbiddenIfAsync = ({ type, optionName }) => {
|
|
5752
5701
|
throw new TypeError(`The \`${optionName}\` option cannot be ${TYPE_TO_MESSAGE[type]}.`);
|
|
@@ -5758,8 +5707,8 @@ var addProperties2 = {
|
|
|
5758
5707
|
nodeStream: ({ value }) => ({ stream: value }),
|
|
5759
5708
|
webTransform({ value: { transform, writableObjectMode, readableObjectMode } }) {
|
|
5760
5709
|
const objectMode = writableObjectMode || readableObjectMode;
|
|
5761
|
-
const stream =
|
|
5762
|
-
return { stream };
|
|
5710
|
+
const stream$1 = stream.Duplex.fromWeb(transform, { objectMode });
|
|
5711
|
+
return { stream: stream$1 };
|
|
5763
5712
|
},
|
|
5764
5713
|
duplex: ({ value: { transform } }) => ({ stream: transform }),
|
|
5765
5714
|
native() {
|
|
@@ -5768,19 +5717,19 @@ var addProperties2 = {
|
|
|
5768
5717
|
var addPropertiesAsync = {
|
|
5769
5718
|
input: {
|
|
5770
5719
|
...addProperties2,
|
|
5771
|
-
fileUrl: ({ value }) => ({ stream:
|
|
5772
|
-
filePath: ({ value: { file } }) => ({ stream:
|
|
5773
|
-
webStream: ({ value }) => ({ stream:
|
|
5774
|
-
iterable: ({ value }) => ({ stream:
|
|
5775
|
-
asyncIterable: ({ value }) => ({ stream:
|
|
5776
|
-
string: ({ value }) => ({ stream:
|
|
5777
|
-
uint8Array: ({ value }) => ({ stream:
|
|
5720
|
+
fileUrl: ({ value }) => ({ stream: fs.createReadStream(value) }),
|
|
5721
|
+
filePath: ({ value: { file } }) => ({ stream: fs.createReadStream(file) }),
|
|
5722
|
+
webStream: ({ value }) => ({ stream: stream.Readable.fromWeb(value) }),
|
|
5723
|
+
iterable: ({ value }) => ({ stream: stream.Readable.from(value) }),
|
|
5724
|
+
asyncIterable: ({ value }) => ({ stream: stream.Readable.from(value) }),
|
|
5725
|
+
string: ({ value }) => ({ stream: stream.Readable.from(value) }),
|
|
5726
|
+
uint8Array: ({ value }) => ({ stream: stream.Readable.from(buffer.Buffer.from(value)) })
|
|
5778
5727
|
},
|
|
5779
5728
|
output: {
|
|
5780
5729
|
...addProperties2,
|
|
5781
|
-
fileUrl: ({ value }) => ({ stream:
|
|
5782
|
-
filePath: ({ value: { file } }) => ({ stream:
|
|
5783
|
-
webStream: ({ value }) => ({ stream:
|
|
5730
|
+
fileUrl: ({ value }) => ({ stream: fs.createWriteStream(value) }),
|
|
5731
|
+
filePath: ({ value: { file } }) => ({ stream: fs.createWriteStream(file) }),
|
|
5732
|
+
webStream: ({ value }) => ({ stream: stream.Writable.fromWeb(value) }),
|
|
5784
5733
|
iterable: forbiddenIfAsync,
|
|
5785
5734
|
asyncIterable: forbiddenIfAsync,
|
|
5786
5735
|
string: forbiddenIfAsync,
|
|
@@ -5788,14 +5737,11 @@ var addPropertiesAsync = {
|
|
|
5788
5737
|
}
|
|
5789
5738
|
};
|
|
5790
5739
|
|
|
5791
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5740
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/io/output-async.js
|
|
5792
5741
|
init_cjs_shims();
|
|
5793
5742
|
|
|
5794
5743
|
// ../../node_modules/.pnpm/@sindresorhus+merge-streams@4.0.0/node_modules/@sindresorhus/merge-streams/index.js
|
|
5795
5744
|
init_cjs_shims();
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
5745
|
function mergeStreams(streams) {
|
|
5800
5746
|
if (!Array.isArray(streams)) {
|
|
5801
5747
|
throw new TypeError(`Expected an array, got \`${typeof streams}\`.`);
|
|
@@ -5817,12 +5763,12 @@ function mergeStreams(streams) {
|
|
|
5817
5763
|
}
|
|
5818
5764
|
var getHighWaterMark = (streams, objectMode) => {
|
|
5819
5765
|
if (streams.length === 0) {
|
|
5820
|
-
return
|
|
5766
|
+
return stream.getDefaultHighWaterMark(objectMode);
|
|
5821
5767
|
}
|
|
5822
5768
|
const highWaterMarks = streams.filter(({ readableObjectMode }) => readableObjectMode === objectMode).map(({ readableHighWaterMark }) => readableHighWaterMark);
|
|
5823
5769
|
return Math.max(...highWaterMarks);
|
|
5824
5770
|
};
|
|
5825
|
-
var MergedStream = class extends
|
|
5771
|
+
var MergedStream = class extends stream.PassThrough {
|
|
5826
5772
|
#streams = /* @__PURE__ */ new Set([]);
|
|
5827
5773
|
#ended = /* @__PURE__ */ new Set([]);
|
|
5828
5774
|
#aborted = /* @__PURE__ */ new Set([]);
|
|
@@ -5878,21 +5824,21 @@ var onMergedStreamFinished = async (passThroughStream, streams, unpipeEvent) =>
|
|
|
5878
5824
|
};
|
|
5879
5825
|
var onMergedStreamEnd = async (passThroughStream, { signal }) => {
|
|
5880
5826
|
try {
|
|
5881
|
-
await
|
|
5827
|
+
await promises.finished(passThroughStream, { signal, cleanup: true });
|
|
5882
5828
|
} catch (error) {
|
|
5883
5829
|
errorOrAbortStream(passThroughStream, error);
|
|
5884
5830
|
throw error;
|
|
5885
5831
|
}
|
|
5886
5832
|
};
|
|
5887
5833
|
var onInputStreamsUnpipe = async (passThroughStream, streams, unpipeEvent, { signal }) => {
|
|
5888
|
-
for await (const [unpipedStream] of
|
|
5834
|
+
for await (const [unpipedStream] of events.on(passThroughStream, "unpipe", { signal })) {
|
|
5889
5835
|
if (streams.has(unpipedStream)) {
|
|
5890
5836
|
unpipedStream.emit(unpipeEvent);
|
|
5891
5837
|
}
|
|
5892
5838
|
}
|
|
5893
5839
|
};
|
|
5894
5840
|
var validateStream = (stream) => {
|
|
5895
|
-
if (typeof
|
|
5841
|
+
if (typeof stream?.pipe !== "function") {
|
|
5896
5842
|
throw new TypeError(`Expected a readable stream, got: \`${typeof stream}\`.`);
|
|
5897
5843
|
}
|
|
5898
5844
|
};
|
|
@@ -5945,7 +5891,7 @@ var afterMergedStreamFinished = async (onFinished, stream, { signal }) => {
|
|
|
5945
5891
|
};
|
|
5946
5892
|
var onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, aborted: aborted2, controller: { signal } }) => {
|
|
5947
5893
|
try {
|
|
5948
|
-
await
|
|
5894
|
+
await promises.finished(stream, {
|
|
5949
5895
|
signal,
|
|
5950
5896
|
cleanup: true,
|
|
5951
5897
|
readable: true,
|
|
@@ -5966,9 +5912,9 @@ var onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, abort
|
|
|
5966
5912
|
}
|
|
5967
5913
|
};
|
|
5968
5914
|
var onInputStreamUnpipe = async ({ stream, streams, ended, aborted: aborted2, unpipeEvent, controller: { signal } }) => {
|
|
5969
|
-
await
|
|
5915
|
+
await events.once(stream, unpipeEvent, { signal });
|
|
5970
5916
|
if (!stream.readable) {
|
|
5971
|
-
return
|
|
5917
|
+
return events.once(signal, "abort", { signal });
|
|
5972
5918
|
}
|
|
5973
5919
|
streams.delete(stream);
|
|
5974
5920
|
ended.delete(stream);
|
|
@@ -5986,7 +5932,7 @@ var errorOrAbortStream = (stream, error) => {
|
|
|
5986
5932
|
errorStream(stream, error);
|
|
5987
5933
|
}
|
|
5988
5934
|
};
|
|
5989
|
-
var isAbortError = (error) =>
|
|
5935
|
+
var isAbortError = (error) => error?.code === "ERR_STREAM_PREMATURE_CLOSE";
|
|
5990
5936
|
var abortStream = (stream) => {
|
|
5991
5937
|
if (stream.readable || stream.writable) {
|
|
5992
5938
|
stream.destroy();
|
|
@@ -6009,9 +5955,8 @@ var updateMaxListeners = (passThroughStream, increment2) => {
|
|
|
6009
5955
|
var PASSTHROUGH_LISTENERS_COUNT = 2;
|
|
6010
5956
|
var PASSTHROUGH_LISTENERS_PER_STREAM = 1;
|
|
6011
5957
|
|
|
6012
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5958
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/io/pipeline.js
|
|
6013
5959
|
init_cjs_shims();
|
|
6014
|
-
|
|
6015
5960
|
var pipeStreams = (source, destination) => {
|
|
6016
5961
|
source.pipe(destination);
|
|
6017
5962
|
onSourceFinish(source, destination);
|
|
@@ -6022,8 +5967,8 @@ var onSourceFinish = async (source, destination) => {
|
|
|
6022
5967
|
return;
|
|
6023
5968
|
}
|
|
6024
5969
|
try {
|
|
6025
|
-
await
|
|
6026
|
-
} catch
|
|
5970
|
+
await promises.finished(source, { cleanup: true, readable: true, writable: false });
|
|
5971
|
+
} catch {
|
|
6027
5972
|
}
|
|
6028
5973
|
endDestinationStream(destination);
|
|
6029
5974
|
};
|
|
@@ -6037,8 +5982,8 @@ var onDestinationFinish = async (source, destination) => {
|
|
|
6037
5982
|
return;
|
|
6038
5983
|
}
|
|
6039
5984
|
try {
|
|
6040
|
-
await
|
|
6041
|
-
} catch
|
|
5985
|
+
await promises.finished(destination, { cleanup: true, readable: false, writable: true });
|
|
5986
|
+
} catch {
|
|
6042
5987
|
}
|
|
6043
5988
|
abortSourceStream(source);
|
|
6044
5989
|
};
|
|
@@ -6048,7 +5993,7 @@ var abortSourceStream = (source) => {
|
|
|
6048
5993
|
}
|
|
6049
5994
|
};
|
|
6050
5995
|
|
|
6051
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5996
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/io/output-async.js
|
|
6052
5997
|
var pipeOutputAsync = (subprocess, fileDescriptors, controller) => {
|
|
6053
5998
|
const pipeGroups = /* @__PURE__ */ new Map();
|
|
6054
5999
|
for (const [fdNumber, { stdioItems, direction }] of Object.entries(fileDescriptors)) {
|
|
@@ -6090,7 +6035,7 @@ var pipeStdioItem = ({ subprocess, stream, direction, fdNumber, pipeGroups, cont
|
|
|
6090
6035
|
}
|
|
6091
6036
|
setStandardStreamMaxListeners(stream, controller);
|
|
6092
6037
|
const [inputStream, outputStream] = direction === "output" ? [stream, subprocess.stdio[fdNumber]] : [subprocess.stdio[fdNumber], stream];
|
|
6093
|
-
const outputStreams =
|
|
6038
|
+
const outputStreams = pipeGroups.get(inputStream) ?? [];
|
|
6094
6039
|
pipeGroups.set(inputStream, [...outputStreams, outputStream]);
|
|
6095
6040
|
};
|
|
6096
6041
|
var setStandardStreamMaxListeners = (stream, { signal }) => {
|
|
@@ -6100,10 +6045,9 @@ var setStandardStreamMaxListeners = (stream, { signal }) => {
|
|
|
6100
6045
|
};
|
|
6101
6046
|
var MAX_LISTENERS_INCREMENT = 2;
|
|
6102
6047
|
|
|
6103
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6048
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/terminate/cleanup.js
|
|
6104
6049
|
init_cjs_shims();
|
|
6105
6050
|
|
|
6106
|
-
|
|
6107
6051
|
// ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
|
|
6108
6052
|
init_cjs_shims();
|
|
6109
6053
|
|
|
@@ -6137,18 +6081,18 @@ var processOk = (process11) => !!process11 && typeof process11 === "object" && t
|
|
|
6137
6081
|
var kExitEmitter = Symbol.for("signal-exit emitter");
|
|
6138
6082
|
var global2 = globalThis;
|
|
6139
6083
|
var ObjectDefineProperty = Object.defineProperty.bind(Object);
|
|
6140
|
-
var Emitter =
|
|
6141
|
-
|
|
6084
|
+
var Emitter = class {
|
|
6085
|
+
emitted = {
|
|
6142
6086
|
afterExit: false,
|
|
6143
6087
|
exit: false
|
|
6144
|
-
}
|
|
6145
|
-
|
|
6088
|
+
};
|
|
6089
|
+
listeners = {
|
|
6146
6090
|
afterExit: [],
|
|
6147
6091
|
exit: []
|
|
6148
|
-
}
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
constructor() {
|
|
6092
|
+
};
|
|
6093
|
+
count = 0;
|
|
6094
|
+
id = Math.random();
|
|
6095
|
+
constructor() {
|
|
6152
6096
|
if (global2[kExitEmitter]) {
|
|
6153
6097
|
return global2[kExitEmitter];
|
|
6154
6098
|
}
|
|
@@ -6188,7 +6132,7 @@ var Emitter = (_class2 = class {
|
|
|
6188
6132
|
}
|
|
6189
6133
|
return ret;
|
|
6190
6134
|
}
|
|
6191
|
-
}
|
|
6135
|
+
};
|
|
6192
6136
|
var SignalExitBase = class {
|
|
6193
6137
|
};
|
|
6194
6138
|
var signalExitWrap = (handler) => {
|
|
@@ -6258,7 +6202,7 @@ var SignalExit = class extends SignalExitBase {
|
|
|
6258
6202
|
if (this.#loaded === false) {
|
|
6259
6203
|
this.load();
|
|
6260
6204
|
}
|
|
6261
|
-
const ev =
|
|
6205
|
+
const ev = opts?.alwaysLast ? "afterExit" : "exit";
|
|
6262
6206
|
this.#emitter.on(ev, cb);
|
|
6263
6207
|
return () => {
|
|
6264
6208
|
this.#emitter.removeListener(ev, cb);
|
|
@@ -6359,7 +6303,7 @@ var {
|
|
|
6359
6303
|
unload
|
|
6360
6304
|
} = signalExitWrap(processOk(process9) ? new SignalExit(process9) : new SignalExitFallback());
|
|
6361
6305
|
|
|
6362
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6306
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/terminate/cleanup.js
|
|
6363
6307
|
var cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
|
|
6364
6308
|
if (!cleanup || detached) {
|
|
6365
6309
|
return;
|
|
@@ -6367,15 +6311,15 @@ var cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
|
|
|
6367
6311
|
const removeExitHandler = onExit(() => {
|
|
6368
6312
|
subprocess.kill();
|
|
6369
6313
|
});
|
|
6370
|
-
|
|
6314
|
+
events.addAbortListener(signal, () => {
|
|
6371
6315
|
removeExitHandler();
|
|
6372
6316
|
});
|
|
6373
6317
|
};
|
|
6374
6318
|
|
|
6375
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6319
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/pipe/setup.js
|
|
6376
6320
|
init_cjs_shims();
|
|
6377
6321
|
|
|
6378
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6322
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/pipe/pipe-arguments.js
|
|
6379
6323
|
init_cjs_shims();
|
|
6380
6324
|
var normalizePipeArguments = ({ source, sourcePromise, boundOptions, createNested }, ...pipeArguments) => {
|
|
6381
6325
|
const startTime = getStartTime();
|
|
@@ -6449,7 +6393,7 @@ var getSourceStream = (source, from) => {
|
|
|
6449
6393
|
}
|
|
6450
6394
|
};
|
|
6451
6395
|
|
|
6452
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6396
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/pipe/throw.js
|
|
6453
6397
|
init_cjs_shims();
|
|
6454
6398
|
var handlePipeArgumentsError = ({
|
|
6455
6399
|
sourceStream,
|
|
@@ -6499,7 +6443,7 @@ var createNonCommandError = ({ error, fileDescriptors, sourceOptions, startTime
|
|
|
6499
6443
|
});
|
|
6500
6444
|
var PIPE_COMMAND_MESSAGE = "source.pipe(destination)";
|
|
6501
6445
|
|
|
6502
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6446
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/pipe/sequence.js
|
|
6503
6447
|
init_cjs_shims();
|
|
6504
6448
|
var waitForBothSubprocesses = async (subprocessPromises) => {
|
|
6505
6449
|
const [
|
|
@@ -6518,9 +6462,8 @@ var waitForBothSubprocesses = async (subprocessPromises) => {
|
|
|
6518
6462
|
return destinationResult;
|
|
6519
6463
|
};
|
|
6520
6464
|
|
|
6521
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6465
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/pipe/streaming.js
|
|
6522
6466
|
init_cjs_shims();
|
|
6523
|
-
|
|
6524
6467
|
var pipeSubprocessStream = (sourceStream, destinationStream, maxListenersController) => {
|
|
6525
6468
|
const mergedStream = MERGED_STREAMS.has(destinationStream) ? pipeMoreSubprocessStream(sourceStream, destinationStream) : pipeFirstSubprocessStream(sourceStream, destinationStream);
|
|
6526
6469
|
incrementMaxListeners(sourceStream, SOURCE_LISTENERS_PER_PIPE, maxListenersController.signal);
|
|
@@ -6541,8 +6484,8 @@ var pipeMoreSubprocessStream = (sourceStream, destinationStream) => {
|
|
|
6541
6484
|
};
|
|
6542
6485
|
var cleanupMergedStreamsMap = async (destinationStream) => {
|
|
6543
6486
|
try {
|
|
6544
|
-
await
|
|
6545
|
-
} catch
|
|
6487
|
+
await promises.finished(destinationStream, { cleanup: true, readable: false, writable: true });
|
|
6488
|
+
} catch {
|
|
6546
6489
|
}
|
|
6547
6490
|
MERGED_STREAMS.delete(destinationStream);
|
|
6548
6491
|
};
|
|
@@ -6550,12 +6493,11 @@ var MERGED_STREAMS = /* @__PURE__ */ new WeakMap();
|
|
|
6550
6493
|
var SOURCE_LISTENERS_PER_PIPE = 2;
|
|
6551
6494
|
var DESTINATION_LISTENERS_PER_PIPE = 1;
|
|
6552
6495
|
|
|
6553
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6496
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/pipe/abort.js
|
|
6554
6497
|
init_cjs_shims();
|
|
6555
|
-
|
|
6556
6498
|
var unpipeOnAbort = (unpipeSignal, unpipeContext) => unpipeSignal === void 0 ? [] : [unpipeOnSignalAbort(unpipeSignal, unpipeContext)];
|
|
6557
6499
|
var unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, fileDescriptors, sourceOptions, startTime }) => {
|
|
6558
|
-
await
|
|
6500
|
+
await util.aborted(unpipeSignal, sourceStream);
|
|
6559
6501
|
await mergedStream.remove(sourceStream);
|
|
6560
6502
|
const error = new Error("Pipe canceled by `unpipeSignal` option.");
|
|
6561
6503
|
throw createNonCommandError({
|
|
@@ -6566,7 +6508,7 @@ var unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, fil
|
|
|
6566
6508
|
});
|
|
6567
6509
|
};
|
|
6568
6510
|
|
|
6569
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6511
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/pipe/setup.js
|
|
6570
6512
|
var pipeToSubprocess = (sourceInfo, ...pipeArguments) => {
|
|
6571
6513
|
if (isPlainObject(pipeArguments[0])) {
|
|
6572
6514
|
return pipeToSubprocess.bind(void 0, {
|
|
@@ -6625,20 +6567,17 @@ var handlePipePromise = async ({
|
|
|
6625
6567
|
};
|
|
6626
6568
|
var getSubprocessPromises = (sourcePromise, destination) => Promise.allSettled([sourcePromise, destination]);
|
|
6627
6569
|
|
|
6628
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6570
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/resolve/all-async.js
|
|
6629
6571
|
init_cjs_shims();
|
|
6630
6572
|
|
|
6631
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6573
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/resolve/stdio.js
|
|
6632
6574
|
init_cjs_shims();
|
|
6633
6575
|
|
|
6634
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6576
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/io/contents.js
|
|
6635
6577
|
init_cjs_shims();
|
|
6636
6578
|
|
|
6637
|
-
|
|
6638
|
-
// ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/io/iterate.js
|
|
6579
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/io/iterate.js
|
|
6639
6580
|
init_cjs_shims();
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
6581
|
var iterateOnSubprocessStream = ({ subprocessStdout, subprocess, binary, shouldEncode, encoding, preserveNewlines }) => {
|
|
6643
6582
|
const controller = new AbortController();
|
|
6644
6583
|
stopReadingOnExit(subprocess, controller);
|
|
@@ -6655,7 +6594,7 @@ var iterateOnSubprocessStream = ({ subprocessStdout, subprocess, binary, shouldE
|
|
|
6655
6594
|
var stopReadingOnExit = async (subprocess, controller) => {
|
|
6656
6595
|
try {
|
|
6657
6596
|
await subprocess;
|
|
6658
|
-
} catch
|
|
6597
|
+
} catch {
|
|
6659
6598
|
} finally {
|
|
6660
6599
|
controller.abort();
|
|
6661
6600
|
}
|
|
@@ -6677,14 +6616,14 @@ var iterateForResult = ({ stream, onStreamEnd, lines, encoding, stripFinalNewlin
|
|
|
6677
6616
|
var stopReadingOnStreamEnd = async (onStreamEnd, controller, stream) => {
|
|
6678
6617
|
try {
|
|
6679
6618
|
await onStreamEnd;
|
|
6680
|
-
} catch
|
|
6619
|
+
} catch {
|
|
6681
6620
|
stream.destroy();
|
|
6682
6621
|
} finally {
|
|
6683
6622
|
controller.abort();
|
|
6684
6623
|
}
|
|
6685
6624
|
};
|
|
6686
6625
|
var iterateOnStream = ({ stream, controller, binary, shouldEncode, encoding, shouldSplit, preserveNewlines }) => {
|
|
6687
|
-
const onStdoutChunk =
|
|
6626
|
+
const onStdoutChunk = events.on(stream, "data", {
|
|
6688
6627
|
signal: controller.signal,
|
|
6689
6628
|
highWaterMark: HIGH_WATER_MARK,
|
|
6690
6629
|
// Backward compatibility with older name for this option
|
|
@@ -6702,7 +6641,7 @@ var iterateOnStream = ({ stream, controller, binary, shouldEncode, encoding, sho
|
|
|
6702
6641
|
preserveNewlines
|
|
6703
6642
|
});
|
|
6704
6643
|
};
|
|
6705
|
-
var DEFAULT_OBJECT_HIGH_WATER_MARK =
|
|
6644
|
+
var DEFAULT_OBJECT_HIGH_WATER_MARK = stream.getDefaultHighWaterMark(true);
|
|
6706
6645
|
var HIGH_WATER_MARK = DEFAULT_OBJECT_HIGH_WATER_MARK;
|
|
6707
6646
|
var iterateOnData = async function* ({ onStdoutChunk, controller, binary, shouldEncode, encoding, shouldSplit, preserveNewlines }) {
|
|
6708
6647
|
const generators = getGenerators({
|
|
@@ -6729,7 +6668,7 @@ var getGenerators = ({ binary, shouldEncode, encoding, shouldSplit, preserveNewl
|
|
|
6729
6668
|
getSplitLinesGenerator(binary, preserveNewlines, !shouldSplit, {})
|
|
6730
6669
|
].filter(Boolean);
|
|
6731
6670
|
|
|
6732
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6671
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/io/contents.js
|
|
6733
6672
|
var getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => {
|
|
6734
6673
|
const logPromise = logOutputAsync({
|
|
6735
6674
|
stream,
|
|
@@ -6768,7 +6707,7 @@ var getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer,
|
|
|
6768
6707
|
};
|
|
6769
6708
|
var logOutputAsync = async ({ stream, onStreamEnd, fdNumber, encoding, allMixed, verboseInfo, streamInfo: { fileDescriptors } }) => {
|
|
6770
6709
|
if (!shouldLogOutput({
|
|
6771
|
-
stdioItems:
|
|
6710
|
+
stdioItems: fileDescriptors[fdNumber]?.stdioItems,
|
|
6772
6711
|
encoding,
|
|
6773
6712
|
verboseInfo,
|
|
6774
6713
|
fdNumber
|
|
@@ -6786,7 +6725,7 @@ var logOutputAsync = async ({ stream, onStreamEnd, fdNumber, encoding, allMixed,
|
|
|
6786
6725
|
await logLines(linesIterable, stream, fdNumber, verboseInfo);
|
|
6787
6726
|
};
|
|
6788
6727
|
var resumeStream = async (stream) => {
|
|
6789
|
-
await
|
|
6728
|
+
await promises$1.setImmediate();
|
|
6790
6729
|
if (stream.readableFlowing === null) {
|
|
6791
6730
|
stream.resume();
|
|
6792
6731
|
}
|
|
@@ -6820,16 +6759,15 @@ var getBufferedData = async (streamPromise) => {
|
|
|
6820
6759
|
};
|
|
6821
6760
|
var handleBufferedData = ({ bufferedData }) => isArrayBuffer(bufferedData) ? new Uint8Array(bufferedData) : bufferedData;
|
|
6822
6761
|
|
|
6823
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6762
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/resolve/wait-stream.js
|
|
6824
6763
|
init_cjs_shims();
|
|
6825
|
-
|
|
6826
6764
|
var waitForStream = async (stream, fdNumber, streamInfo, { isSameDirection, stopOnExit = false } = {}) => {
|
|
6827
6765
|
const state = handleStdinDestroy(stream, streamInfo);
|
|
6828
6766
|
const abortController = new AbortController();
|
|
6829
6767
|
try {
|
|
6830
6768
|
await Promise.race([
|
|
6831
6769
|
...stopOnExit ? [streamInfo.exitPromise] : [],
|
|
6832
|
-
|
|
6770
|
+
promises.finished(stream, { cleanup: true, signal: abortController.signal })
|
|
6833
6771
|
]);
|
|
6834
6772
|
} catch (error) {
|
|
6835
6773
|
if (!state.stdinCleanedUp) {
|
|
@@ -6871,10 +6809,10 @@ var shouldIgnoreStreamError = (error, fdNumber, streamInfo, isSameDirection = tr
|
|
|
6871
6809
|
return isInputFileDescriptor(streamInfo, fdNumber) === isSameDirection ? isStreamEpipe(error) : isStreamAbort(error);
|
|
6872
6810
|
};
|
|
6873
6811
|
var isInputFileDescriptor = ({ fileDescriptors }, fdNumber) => fdNumber !== "all" && fileDescriptors[fdNumber].direction === "input";
|
|
6874
|
-
var isStreamAbort = (error) =>
|
|
6875
|
-
var isStreamEpipe = (error) =>
|
|
6812
|
+
var isStreamAbort = (error) => error?.code === "ERR_STREAM_PREMATURE_CLOSE";
|
|
6813
|
+
var isStreamEpipe = (error) => error?.code === "EPIPE";
|
|
6876
6814
|
|
|
6877
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6815
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/resolve/stdio.js
|
|
6878
6816
|
var waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => subprocess.stdio.map((stream, fdNumber) => waitForSubprocessStream({
|
|
6879
6817
|
stream,
|
|
6880
6818
|
fdNumber,
|
|
@@ -6915,7 +6853,7 @@ var waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBu
|
|
|
6915
6853
|
return output;
|
|
6916
6854
|
};
|
|
6917
6855
|
|
|
6918
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6856
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/resolve/all-async.js
|
|
6919
6857
|
var makeAllStream = ({ stdout: stdout2, stderr }, { all }) => all && (stdout2 || stderr) ? mergeStreams([stdout2, stderr].filter(Boolean)) : void 0;
|
|
6920
6858
|
var waitForAllStream = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => waitForSubprocessStream({
|
|
6921
6859
|
...getAllStream(subprocess, buffer),
|
|
@@ -6943,14 +6881,13 @@ var getAllStream = ({ stdout: stdout2, stderr, all }, [, bufferStdout, bufferStd
|
|
|
6943
6881
|
};
|
|
6944
6882
|
var getAllMixed = ({ all, stdout: stdout2, stderr }) => all && stdout2 && stderr && stdout2.readableObjectMode !== stderr.readableObjectMode;
|
|
6945
6883
|
|
|
6946
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6884
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/resolve/wait-subprocess.js
|
|
6947
6885
|
init_cjs_shims();
|
|
6948
6886
|
|
|
6949
|
-
|
|
6950
|
-
// ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/ipc/buffer-messages.js
|
|
6887
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/buffer-messages.js
|
|
6951
6888
|
init_cjs_shims();
|
|
6952
6889
|
|
|
6953
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6890
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/verbose/ipc.js
|
|
6954
6891
|
init_cjs_shims();
|
|
6955
6892
|
var shouldLogIpc = (verboseInfo) => isFullVerbose(verboseInfo, "ipc");
|
|
6956
6893
|
var logIpcOutput = (message, verboseInfo) => {
|
|
@@ -6963,7 +6900,7 @@ var logIpcOutput = (message, verboseInfo) => {
|
|
|
6963
6900
|
});
|
|
6964
6901
|
};
|
|
6965
6902
|
|
|
6966
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6903
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/ipc/buffer-messages.js
|
|
6967
6904
|
var waitForIpcOutput = async ({
|
|
6968
6905
|
subprocess,
|
|
6969
6906
|
buffer: bufferArray,
|
|
@@ -7001,7 +6938,7 @@ var getBufferedIpcOutput = async (ipcOutputPromise, ipcOutput) => {
|
|
|
7001
6938
|
return ipcOutput;
|
|
7002
6939
|
};
|
|
7003
6940
|
|
|
7004
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6941
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/resolve/wait-subprocess.js
|
|
7005
6942
|
var waitForSubprocessResult = async ({
|
|
7006
6943
|
subprocess,
|
|
7007
6944
|
options: {
|
|
@@ -7113,14 +7050,14 @@ var waitForCustomStreamsEnd = (fileDescriptors, streamInfo) => fileDescriptors.f
|
|
|
7113
7050
|
stopOnExit: type === "native"
|
|
7114
7051
|
})));
|
|
7115
7052
|
var throwOnSubprocessError = async (subprocess, { signal }) => {
|
|
7116
|
-
const [error] = await
|
|
7053
|
+
const [error] = await events.once(subprocess, "error", { signal });
|
|
7117
7054
|
throw error;
|
|
7118
7055
|
};
|
|
7119
7056
|
|
|
7120
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7057
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/convert/add.js
|
|
7121
7058
|
init_cjs_shims();
|
|
7122
7059
|
|
|
7123
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7060
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/convert/concurrent.js
|
|
7124
7061
|
init_cjs_shims();
|
|
7125
7062
|
var initializeConcurrentStreams = () => ({
|
|
7126
7063
|
readableDestroy: /* @__PURE__ */ new WeakMap(),
|
|
@@ -7135,11 +7072,11 @@ var addConcurrentStream = (concurrentStreams, stream, waitName) => {
|
|
|
7135
7072
|
const promises = weakMap.get(stream);
|
|
7136
7073
|
const promise = createDeferred();
|
|
7137
7074
|
promises.push(promise);
|
|
7138
|
-
const
|
|
7139
|
-
return { resolve
|
|
7075
|
+
const resolve = promise.resolve.bind(promise);
|
|
7076
|
+
return { resolve, promises };
|
|
7140
7077
|
};
|
|
7141
|
-
var waitForConcurrentStreams = async ({ resolve
|
|
7142
|
-
|
|
7078
|
+
var waitForConcurrentStreams = async ({ resolve, promises }, subprocess) => {
|
|
7079
|
+
resolve();
|
|
7143
7080
|
const [isSubprocessExit] = await Promise.race([
|
|
7144
7081
|
Promise.allSettled([true, subprocess]),
|
|
7145
7082
|
Promise.all([false, ...promises])
|
|
@@ -7147,21 +7084,18 @@ var waitForConcurrentStreams = async ({ resolve: resolve2, promises }, subproces
|
|
|
7147
7084
|
return !isSubprocessExit;
|
|
7148
7085
|
};
|
|
7149
7086
|
|
|
7150
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7087
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/convert/readable.js
|
|
7151
7088
|
init_cjs_shims();
|
|
7152
7089
|
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
// ../../node_modules/.pnpm/execa@9.3.1/node_modules/execa/lib/convert/shared.js
|
|
7090
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/convert/shared.js
|
|
7156
7091
|
init_cjs_shims();
|
|
7157
|
-
|
|
7158
7092
|
var safeWaitForSubprocessStdin = async (subprocessStdin) => {
|
|
7159
7093
|
if (subprocessStdin === void 0) {
|
|
7160
7094
|
return;
|
|
7161
7095
|
}
|
|
7162
7096
|
try {
|
|
7163
7097
|
await waitForSubprocessStdin(subprocessStdin);
|
|
7164
|
-
} catch
|
|
7098
|
+
} catch {
|
|
7165
7099
|
}
|
|
7166
7100
|
};
|
|
7167
7101
|
var safeWaitForSubprocessStdout = async (subprocessStdout) => {
|
|
@@ -7170,14 +7104,14 @@ var safeWaitForSubprocessStdout = async (subprocessStdout) => {
|
|
|
7170
7104
|
}
|
|
7171
7105
|
try {
|
|
7172
7106
|
await waitForSubprocessStdout(subprocessStdout);
|
|
7173
|
-
} catch
|
|
7107
|
+
} catch {
|
|
7174
7108
|
}
|
|
7175
7109
|
};
|
|
7176
7110
|
var waitForSubprocessStdin = async (subprocessStdin) => {
|
|
7177
|
-
await
|
|
7111
|
+
await promises.finished(subprocessStdin, { cleanup: true, readable: false, writable: true });
|
|
7178
7112
|
};
|
|
7179
7113
|
var waitForSubprocessStdout = async (subprocessStdout) => {
|
|
7180
|
-
await
|
|
7114
|
+
await promises.finished(subprocessStdout, { cleanup: true, readable: true, writable: false });
|
|
7181
7115
|
};
|
|
7182
7116
|
var waitForSubprocess = async (subprocess, error) => {
|
|
7183
7117
|
await subprocess;
|
|
@@ -7193,21 +7127,21 @@ var destroyOtherStream = (stream, isOpen, error) => {
|
|
|
7193
7127
|
}
|
|
7194
7128
|
};
|
|
7195
7129
|
|
|
7196
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7130
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/convert/readable.js
|
|
7197
7131
|
var createReadable = ({ subprocess, concurrentStreams, encoding }, { from, binary: binaryOption = true, preserveNewlines = true } = {}) => {
|
|
7198
7132
|
const binary = binaryOption || BINARY_ENCODINGS.has(encoding);
|
|
7199
7133
|
const { subprocessStdout, waitReadableDestroy } = getSubprocessStdout(subprocess, from, concurrentStreams);
|
|
7200
7134
|
const { readableEncoding, readableObjectMode, readableHighWaterMark } = getReadableOptions(subprocessStdout, binary);
|
|
7201
|
-
const { read
|
|
7135
|
+
const { read, onStdoutDataDone } = getReadableMethods({
|
|
7202
7136
|
subprocessStdout,
|
|
7203
7137
|
subprocess,
|
|
7204
7138
|
binary,
|
|
7205
7139
|
encoding,
|
|
7206
7140
|
preserveNewlines
|
|
7207
7141
|
});
|
|
7208
|
-
const readable2 = new
|
|
7209
|
-
read
|
|
7210
|
-
destroy:
|
|
7142
|
+
const readable2 = new stream.Readable({
|
|
7143
|
+
read,
|
|
7144
|
+
destroy: util.callbackify(onReadableDestroy.bind(void 0, { subprocessStdout, subprocess, waitReadableDestroy })),
|
|
7211
7145
|
highWaterMark: readableHighWaterMark,
|
|
7212
7146
|
objectMode: readableObjectMode,
|
|
7213
7147
|
encoding: readableEncoding
|
|
@@ -7251,7 +7185,7 @@ var onRead = async (readable2, onStdoutData, onStdoutDataDone) => {
|
|
|
7251
7185
|
} else {
|
|
7252
7186
|
readable2.push(value);
|
|
7253
7187
|
}
|
|
7254
|
-
} catch
|
|
7188
|
+
} catch {
|
|
7255
7189
|
}
|
|
7256
7190
|
};
|
|
7257
7191
|
var onStdoutFinished = async ({ subprocessStdout, onStdoutDataDone, readable: readable2, subprocess, subprocessStdin }) => {
|
|
@@ -7278,15 +7212,13 @@ var destroyOtherReadable = (stream, error) => {
|
|
|
7278
7212
|
destroyOtherStream(stream, stream.readable, error);
|
|
7279
7213
|
};
|
|
7280
7214
|
|
|
7281
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7215
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/convert/writable.js
|
|
7282
7216
|
init_cjs_shims();
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
7217
|
var createWritable = ({ subprocess, concurrentStreams }, { to } = {}) => {
|
|
7286
7218
|
const { subprocessStdin, waitWritableFinal, waitWritableDestroy } = getSubprocessStdin(subprocess, to, concurrentStreams);
|
|
7287
|
-
const writable2 = new
|
|
7219
|
+
const writable2 = new stream.Writable({
|
|
7288
7220
|
...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),
|
|
7289
|
-
destroy:
|
|
7221
|
+
destroy: util.callbackify(onWritableDestroy.bind(void 0, {
|
|
7290
7222
|
subprocessStdin,
|
|
7291
7223
|
subprocess,
|
|
7292
7224
|
waitWritableFinal,
|
|
@@ -7306,7 +7238,7 @@ var getSubprocessStdin = (subprocess, to, concurrentStreams) => {
|
|
|
7306
7238
|
};
|
|
7307
7239
|
var getWritableMethods = (subprocessStdin, subprocess, waitWritableFinal) => ({
|
|
7308
7240
|
write: onWrite.bind(void 0, subprocessStdin),
|
|
7309
|
-
final:
|
|
7241
|
+
final: util.callbackify(onWritableFinal.bind(void 0, subprocessStdin, subprocess, waitWritableFinal))
|
|
7310
7242
|
});
|
|
7311
7243
|
var onWrite = (subprocessStdin, chunk, encoding, done) => {
|
|
7312
7244
|
if (subprocessStdin.write(chunk, encoding)) {
|
|
@@ -7345,26 +7277,24 @@ var destroyOtherWritable = (stream, error) => {
|
|
|
7345
7277
|
destroyOtherStream(stream, stream.writable, error);
|
|
7346
7278
|
};
|
|
7347
7279
|
|
|
7348
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7280
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/convert/duplex.js
|
|
7349
7281
|
init_cjs_shims();
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
7282
|
var createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, binary: binaryOption = true, preserveNewlines = true } = {}) => {
|
|
7353
7283
|
const binary = binaryOption || BINARY_ENCODINGS.has(encoding);
|
|
7354
7284
|
const { subprocessStdout, waitReadableDestroy } = getSubprocessStdout(subprocess, from, concurrentStreams);
|
|
7355
7285
|
const { subprocessStdin, waitWritableFinal, waitWritableDestroy } = getSubprocessStdin(subprocess, to, concurrentStreams);
|
|
7356
7286
|
const { readableEncoding, readableObjectMode, readableHighWaterMark } = getReadableOptions(subprocessStdout, binary);
|
|
7357
|
-
const { read
|
|
7287
|
+
const { read, onStdoutDataDone } = getReadableMethods({
|
|
7358
7288
|
subprocessStdout,
|
|
7359
7289
|
subprocess,
|
|
7360
7290
|
binary,
|
|
7361
7291
|
encoding,
|
|
7362
7292
|
preserveNewlines
|
|
7363
7293
|
});
|
|
7364
|
-
const duplex2 = new
|
|
7365
|
-
read
|
|
7294
|
+
const duplex2 = new stream.Duplex({
|
|
7295
|
+
read,
|
|
7366
7296
|
...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),
|
|
7367
|
-
destroy:
|
|
7297
|
+
destroy: util.callbackify(onDuplexDestroy.bind(void 0, {
|
|
7368
7298
|
subprocessStdout,
|
|
7369
7299
|
subprocessStdin,
|
|
7370
7300
|
subprocess,
|
|
@@ -7400,7 +7330,7 @@ var onDuplexDestroy = async ({ subprocessStdout, subprocessStdin, subprocess, wa
|
|
|
7400
7330
|
]);
|
|
7401
7331
|
};
|
|
7402
7332
|
|
|
7403
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7333
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/convert/iterable.js
|
|
7404
7334
|
init_cjs_shims();
|
|
7405
7335
|
var createIterable = (subprocess, encoding, {
|
|
7406
7336
|
from,
|
|
@@ -7430,7 +7360,7 @@ var iterateOnStdoutData = async function* (onStdoutData, subprocessStdout, subpr
|
|
|
7430
7360
|
}
|
|
7431
7361
|
};
|
|
7432
7362
|
|
|
7433
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7363
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/convert/add.js
|
|
7434
7364
|
var addConvertedStreams = (subprocess, { encoding }) => {
|
|
7435
7365
|
const concurrentStreams = initializeConcurrentStreams();
|
|
7436
7366
|
subprocess.readable = createReadable.bind(void 0, { subprocess, concurrentStreams, encoding });
|
|
@@ -7440,7 +7370,7 @@ var addConvertedStreams = (subprocess, { encoding }) => {
|
|
|
7440
7370
|
subprocess[Symbol.asyncIterator] = createIterable.bind(void 0, subprocess, encoding, {});
|
|
7441
7371
|
};
|
|
7442
7372
|
|
|
7443
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7373
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/methods/promise.js
|
|
7444
7374
|
init_cjs_shims();
|
|
7445
7375
|
var mergePromise = (subprocess, promise) => {
|
|
7446
7376
|
for (const [property, descriptor] of descriptors) {
|
|
@@ -7455,7 +7385,7 @@ var descriptors = ["then", "catch", "finally"].map((property) => [
|
|
|
7455
7385
|
Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)
|
|
7456
7386
|
]);
|
|
7457
7387
|
|
|
7458
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7388
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/methods/main-async.js
|
|
7459
7389
|
var execaCoreAsync = (rawFile, rawArguments, rawOptions, createNested) => {
|
|
7460
7390
|
const { file, commandArguments, command, escapedCommand, startTime, verboseInfo, options, fileDescriptors } = handleAsyncArguments(rawFile, rawArguments, rawOptions);
|
|
7461
7391
|
const { subprocess, promise } = spawnSubprocessAsync({
|
|
@@ -7503,7 +7433,7 @@ var handleAsyncOptions = ({ timeout, signal, ...options }) => {
|
|
|
7503
7433
|
var spawnSubprocessAsync = ({ file, commandArguments, options, startTime, verboseInfo, command, escapedCommand, fileDescriptors }) => {
|
|
7504
7434
|
let subprocess;
|
|
7505
7435
|
try {
|
|
7506
|
-
subprocess =
|
|
7436
|
+
subprocess = child_process.spawn(file, commandArguments, options);
|
|
7507
7437
|
} catch (error) {
|
|
7508
7438
|
return handleEarlyError({
|
|
7509
7439
|
error,
|
|
@@ -7516,7 +7446,7 @@ var spawnSubprocessAsync = ({ file, commandArguments, options, startTime, verbos
|
|
|
7516
7446
|
});
|
|
7517
7447
|
}
|
|
7518
7448
|
const controller = new AbortController();
|
|
7519
|
-
|
|
7449
|
+
events.setMaxListeners(Number.POSITIVE_INFINITY, controller.signal);
|
|
7520
7450
|
const originalStreams = [...subprocess.stdio];
|
|
7521
7451
|
pipeOutputAsync(subprocess, fileDescriptors, controller);
|
|
7522
7452
|
cleanupOnExit(subprocess, options, controller);
|
|
@@ -7610,7 +7540,7 @@ var getAsyncResult = ({ errorInfo, exitCode, signal, stdio, all, ipcOutput, cont
|
|
|
7610
7540
|
startTime
|
|
7611
7541
|
});
|
|
7612
7542
|
|
|
7613
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7543
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/methods/bind.js
|
|
7614
7544
|
init_cjs_shims();
|
|
7615
7545
|
var mergeOptions = (boundOptions, options) => {
|
|
7616
7546
|
const newOptions = Object.fromEntries(
|
|
@@ -7629,7 +7559,7 @@ var mergeOption = (optionName, boundOptionValue, optionValue) => {
|
|
|
7629
7559
|
};
|
|
7630
7560
|
var DEEP_OPTIONS = /* @__PURE__ */ new Set(["env", ...FD_SPECIFIC_OPTIONS]);
|
|
7631
7561
|
|
|
7632
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7562
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/methods/create.js
|
|
7633
7563
|
var createExeca = (mapArguments, boundOptions, deepOptions, setBoundExeca) => {
|
|
7634
7564
|
const createNested = (mapArguments2, boundOptions2, setBoundExeca2) => createExeca(mapArguments2, boundOptions2, deepOptions, setBoundExeca2);
|
|
7635
7565
|
const boundExeca = (...execaArguments) => callBoundExeca({
|
|
@@ -7675,7 +7605,7 @@ var parseArguments = ({ mapArguments, firstArgument, nextArguments, deepOptions,
|
|
|
7675
7605
|
};
|
|
7676
7606
|
};
|
|
7677
7607
|
|
|
7678
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7608
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/methods/command.js
|
|
7679
7609
|
init_cjs_shims();
|
|
7680
7610
|
var mapCommandAsync = ({ file, commandArguments }) => parseCommand(file, commandArguments);
|
|
7681
7611
|
var mapCommandSync = ({ file, commandArguments }) => ({ ...parseCommand(file, commandArguments), isSync: true });
|
|
@@ -7707,7 +7637,7 @@ var parseCommandString = (command) => {
|
|
|
7707
7637
|
};
|
|
7708
7638
|
var SPACES_REGEXP = / +/g;
|
|
7709
7639
|
|
|
7710
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7640
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/lib/methods/script.js
|
|
7711
7641
|
init_cjs_shims();
|
|
7712
7642
|
var setScriptSync = (boundExeca, createNested, boundOptions) => {
|
|
7713
7643
|
boundExeca.sync = createNested(mapScriptSync, boundOptions);
|
|
@@ -7719,56 +7649,43 @@ var getScriptOptions = (options) => ({ options: { ...getScriptStdinOption(option
|
|
|
7719
7649
|
var getScriptStdinOption = ({ input, inputFile, stdio }) => input === void 0 && inputFile === void 0 && stdio === void 0 ? { stdin: "inherit" } : {};
|
|
7720
7650
|
var deepScriptOptions = { preferLocal: true };
|
|
7721
7651
|
|
|
7722
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7652
|
+
// ../../node_modules/.pnpm/execa@9.4.0/node_modules/execa/index.js
|
|
7723
7653
|
var execa = createExeca(() => ({}));
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
sendMessage: sendMessage2,
|
|
7731
|
-
getOneMessage: getOneMessage2,
|
|
7732
|
-
getEachMessage: getEachMessage2,
|
|
7733
|
-
getCancelSignal: getCancelSignal2
|
|
7734
|
-
} = getIpcExport();
|
|
7654
|
+
createExeca(() => ({ isSync: true }));
|
|
7655
|
+
createExeca(mapCommandAsync);
|
|
7656
|
+
createExeca(mapCommandSync);
|
|
7657
|
+
createExeca(mapNode);
|
|
7658
|
+
createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
|
|
7659
|
+
getIpcExport();
|
|
7735
7660
|
|
|
7736
7661
|
// src/generate.ts
|
|
7737
7662
|
init_cjs_shims();
|
|
7738
|
-
var _logger = require('@kubb/core/logger');
|
|
7739
|
-
var _core = require('@kubb/core');
|
|
7740
7663
|
|
|
7741
7664
|
// src/utils/executeHooks.ts
|
|
7742
7665
|
init_cjs_shims();
|
|
7743
|
-
var _stringargv = require('string-argv');
|
|
7744
7666
|
|
|
7745
7667
|
// src/utils/Writables.ts
|
|
7746
7668
|
init_cjs_shims();
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7669
|
+
var ConsolaWritable = class extends stream.Writable {
|
|
7670
|
+
consola;
|
|
7671
|
+
command;
|
|
7752
7672
|
constructor(consola, command, opts) {
|
|
7753
7673
|
super(opts);
|
|
7754
7674
|
this.command = command;
|
|
7755
7675
|
this.consola = consola;
|
|
7756
7676
|
}
|
|
7757
7677
|
_write(chunk, _encoding, callback) {
|
|
7758
|
-
|
|
7678
|
+
process3__namespace.stdout.write(`${p2.dim(chunk?.toString())}`);
|
|
7759
7679
|
callback();
|
|
7760
7680
|
}
|
|
7761
7681
|
};
|
|
7762
7682
|
|
|
7763
|
-
// src/utils/executeHooks.ts
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
7683
|
// ../../node_modules/.pnpm/p-queue@8.0.1/node_modules/p-queue/dist/index.js
|
|
7767
7684
|
init_cjs_shims();
|
|
7768
7685
|
|
|
7769
7686
|
// ../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.mjs
|
|
7770
7687
|
init_cjs_shims();
|
|
7771
|
-
var import_index = __toESM(require_eventemitter3()
|
|
7688
|
+
var import_index = __toESM(require_eventemitter3());
|
|
7772
7689
|
|
|
7773
7690
|
// ../../node_modules/.pnpm/p-timeout@6.1.2/node_modules/p-timeout/index.js
|
|
7774
7691
|
init_cjs_shims();
|
|
@@ -7798,7 +7715,7 @@ function pTimeout(promise, options) {
|
|
|
7798
7715
|
customTimers = { setTimeout, clearTimeout }
|
|
7799
7716
|
} = options;
|
|
7800
7717
|
let timer;
|
|
7801
|
-
const wrappedPromise = new Promise((
|
|
7718
|
+
const wrappedPromise = new Promise((resolve, reject) => {
|
|
7802
7719
|
if (typeof milliseconds !== "number" || Math.sign(milliseconds) !== 1) {
|
|
7803
7720
|
throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${milliseconds}\``);
|
|
7804
7721
|
}
|
|
@@ -7812,14 +7729,14 @@ function pTimeout(promise, options) {
|
|
|
7812
7729
|
});
|
|
7813
7730
|
}
|
|
7814
7731
|
if (milliseconds === Number.POSITIVE_INFINITY) {
|
|
7815
|
-
promise.then(
|
|
7732
|
+
promise.then(resolve, reject);
|
|
7816
7733
|
return;
|
|
7817
7734
|
}
|
|
7818
7735
|
const timeoutError = new TimeoutError();
|
|
7819
7736
|
timer = customTimers.setTimeout.call(void 0, () => {
|
|
7820
7737
|
if (fallback) {
|
|
7821
7738
|
try {
|
|
7822
|
-
|
|
7739
|
+
resolve(fallback());
|
|
7823
7740
|
} catch (error) {
|
|
7824
7741
|
reject(error);
|
|
7825
7742
|
}
|
|
@@ -7829,17 +7746,17 @@ function pTimeout(promise, options) {
|
|
|
7829
7746
|
promise.cancel();
|
|
7830
7747
|
}
|
|
7831
7748
|
if (message === false) {
|
|
7832
|
-
|
|
7749
|
+
resolve();
|
|
7833
7750
|
} else if (message instanceof Error) {
|
|
7834
7751
|
reject(message);
|
|
7835
7752
|
} else {
|
|
7836
|
-
timeoutError.message =
|
|
7753
|
+
timeoutError.message = message ?? `Promise timed out after ${milliseconds} milliseconds`;
|
|
7837
7754
|
reject(timeoutError);
|
|
7838
7755
|
}
|
|
7839
7756
|
}, milliseconds);
|
|
7840
7757
|
(async () => {
|
|
7841
7758
|
try {
|
|
7842
|
-
|
|
7759
|
+
resolve(await promise);
|
|
7843
7760
|
} catch (error) {
|
|
7844
7761
|
reject(error);
|
|
7845
7762
|
}
|
|
@@ -7897,7 +7814,7 @@ var PriorityQueue = class {
|
|
|
7897
7814
|
}
|
|
7898
7815
|
dequeue() {
|
|
7899
7816
|
const item = this.#queue.shift();
|
|
7900
|
-
return
|
|
7817
|
+
return item?.run;
|
|
7901
7818
|
}
|
|
7902
7819
|
filter(options) {
|
|
7903
7820
|
return this.#queue.filter((element) => element.priority === options.priority).map((element) => element.run);
|
|
@@ -7929,7 +7846,7 @@ var PQueue = class extends import_index.default {
|
|
|
7929
7846
|
|
|
7930
7847
|
Applies to each future operation.
|
|
7931
7848
|
*/
|
|
7932
|
-
|
|
7849
|
+
timeout;
|
|
7933
7850
|
// TODO: The `throwOnTimeout` option should affect the return types of `add()` and `addAll()`
|
|
7934
7851
|
constructor(options) {
|
|
7935
7852
|
super();
|
|
@@ -7943,10 +7860,10 @@ var PQueue = class extends import_index.default {
|
|
|
7943
7860
|
...options
|
|
7944
7861
|
};
|
|
7945
7862
|
if (!(typeof options.intervalCap === "number" && options.intervalCap >= 1)) {
|
|
7946
|
-
throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${
|
|
7863
|
+
throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${options.intervalCap?.toString() ?? ""}\` (${typeof options.intervalCap})`);
|
|
7947
7864
|
}
|
|
7948
7865
|
if (options.interval === void 0 || !(Number.isFinite(options.interval) && options.interval >= 0)) {
|
|
7949
|
-
throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${
|
|
7866
|
+
throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${options.interval?.toString() ?? ""}\` (${typeof options.interval})`);
|
|
7950
7867
|
}
|
|
7951
7868
|
this.#carryoverConcurrencyCount = options.carryoverConcurrencyCount;
|
|
7952
7869
|
this.#isIntervalIgnored = options.intervalCap === Number.POSITIVE_INFINITY || options.interval === 0;
|
|
@@ -8068,12 +7985,12 @@ var PQueue = class extends import_index.default {
|
|
|
8068
7985
|
throwOnTimeout: this.#throwOnTimeout,
|
|
8069
7986
|
...options
|
|
8070
7987
|
};
|
|
8071
|
-
return new Promise((
|
|
7988
|
+
return new Promise((resolve, reject) => {
|
|
8072
7989
|
this.#queue.enqueue(async () => {
|
|
8073
7990
|
this.#pending++;
|
|
8074
7991
|
this.#intervalCount++;
|
|
8075
7992
|
try {
|
|
8076
|
-
|
|
7993
|
+
options.signal?.throwIfAborted();
|
|
8077
7994
|
let operation = function_({ signal: options.signal });
|
|
8078
7995
|
if (options.timeout) {
|
|
8079
7996
|
operation = pTimeout(Promise.resolve(operation), { milliseconds: options.timeout });
|
|
@@ -8082,11 +7999,11 @@ var PQueue = class extends import_index.default {
|
|
|
8082
7999
|
operation = Promise.race([operation, this.#throwOnAbort(options.signal)]);
|
|
8083
8000
|
}
|
|
8084
8001
|
const result = await operation;
|
|
8085
|
-
|
|
8002
|
+
resolve(result);
|
|
8086
8003
|
this.emit("completed", result);
|
|
8087
8004
|
} catch (error) {
|
|
8088
8005
|
if (error instanceof TimeoutError && !options.throwOnTimeout) {
|
|
8089
|
-
|
|
8006
|
+
resolve();
|
|
8090
8007
|
return;
|
|
8091
8008
|
}
|
|
8092
8009
|
reject(error);
|
|
@@ -8161,13 +8078,13 @@ var PQueue = class extends import_index.default {
|
|
|
8161
8078
|
await this.#onEvent("idle");
|
|
8162
8079
|
}
|
|
8163
8080
|
async #onEvent(event, filter) {
|
|
8164
|
-
return new Promise((
|
|
8081
|
+
return new Promise((resolve) => {
|
|
8165
8082
|
const listener = () => {
|
|
8166
8083
|
if (filter && !filter()) {
|
|
8167
8084
|
return;
|
|
8168
8085
|
}
|
|
8169
8086
|
this.off(event, listener);
|
|
8170
|
-
|
|
8087
|
+
resolve();
|
|
8171
8088
|
};
|
|
8172
8089
|
this.on(event, listener);
|
|
8173
8090
|
});
|
|
@@ -8201,34 +8118,34 @@ var PQueue = class extends import_index.default {
|
|
|
8201
8118
|
};
|
|
8202
8119
|
|
|
8203
8120
|
// src/utils/executeHooks.ts
|
|
8204
|
-
async function executeHooks({ hooks, logger }) {
|
|
8121
|
+
async function executeHooks({ hooks, logger: logger$1 }) {
|
|
8205
8122
|
const commands = Array.isArray(hooks.done) ? hooks.done : [hooks.done].filter(Boolean);
|
|
8206
8123
|
const queue = new PQueue({ concurrency: 1 });
|
|
8207
8124
|
const promises = commands.map(async (command) => {
|
|
8208
|
-
const consolaWritable = new ConsolaWritable(logger.consola, command);
|
|
8209
|
-
const [cmd, ..._args] = [...
|
|
8125
|
+
const consolaWritable = new ConsolaWritable(logger$1.consola, command);
|
|
8126
|
+
const [cmd, ..._args] = [...stringArgv.parseArgsStringToArgv(command)];
|
|
8210
8127
|
if (!cmd) {
|
|
8211
8128
|
return null;
|
|
8212
8129
|
}
|
|
8213
8130
|
await queue.add(async () => {
|
|
8214
|
-
logger
|
|
8215
|
-
|
|
8131
|
+
logger$1?.emit("start", `Executing hook ${logger$1.logLevel !== logger.LogMapper.silent ? p2.dim(command) : ""}`);
|
|
8132
|
+
await execa(cmd, _args, {
|
|
8216
8133
|
detached: true,
|
|
8217
|
-
stdout: logger
|
|
8134
|
+
stdout: logger$1?.logLevel === logger.LogMapper.silent ? void 0 : ["pipe", consolaWritable],
|
|
8218
8135
|
stripFinalNewline: true
|
|
8219
8136
|
});
|
|
8220
|
-
logger
|
|
8137
|
+
logger$1?.emit("success", `Executed hook ${logger$1.logLevel !== logger.LogMapper.silent ? p2.dim(command) : ""}`);
|
|
8221
8138
|
});
|
|
8222
8139
|
});
|
|
8223
8140
|
await Promise.all(promises);
|
|
8224
|
-
logger
|
|
8141
|
+
logger$1?.emit("success", "Executed hooks");
|
|
8225
8142
|
}
|
|
8226
8143
|
|
|
8227
8144
|
// src/utils/getErrorCauses.ts
|
|
8228
8145
|
init_cjs_shims();
|
|
8229
8146
|
function getErrorCauses(errors) {
|
|
8230
8147
|
return errors.reduce((prev, error) => {
|
|
8231
|
-
const causedError =
|
|
8148
|
+
const causedError = error?.cause;
|
|
8232
8149
|
if (causedError) {
|
|
8233
8150
|
prev = [...prev, ...getErrorCauses([causedError])];
|
|
8234
8151
|
return prev;
|
|
@@ -8241,8 +8158,6 @@ function getErrorCauses(errors) {
|
|
|
8241
8158
|
// src/utils/getSummary.ts
|
|
8242
8159
|
init_cjs_shims();
|
|
8243
8160
|
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
8161
|
// src/utils/parseHrtimeToSeconds.ts
|
|
8247
8162
|
init_cjs_shims();
|
|
8248
8163
|
function parseHrtimeToSeconds(hrtime2) {
|
|
@@ -8252,20 +8167,20 @@ function parseHrtimeToSeconds(hrtime2) {
|
|
|
8252
8167
|
|
|
8253
8168
|
// src/utils/getSummary.ts
|
|
8254
8169
|
function getSummary({ pluginManager, filesCreated, status, hrStart, config }) {
|
|
8255
|
-
const logs =
|
|
8170
|
+
const logs = /* @__PURE__ */ new Set();
|
|
8256
8171
|
const elapsedSeconds = parseHrtimeToSeconds(process.hrtime(hrStart));
|
|
8257
8172
|
const buildStartPlugins = pluginManager.executed.filter((item) => item.hookName === "buildStart" && item.plugin.name !== "core").map((item) => item.plugin.name);
|
|
8258
8173
|
const buildEndPlugins = pluginManager.executed.filter((item) => item.hookName === "buildEnd" && item.plugin.name !== "core").map((item) => item.plugin.name);
|
|
8259
|
-
const failedPlugins =
|
|
8260
|
-
const pluginsCount =
|
|
8174
|
+
const failedPlugins = config.plugins?.filter((plugin) => !buildEndPlugins.includes(plugin.name))?.map((plugin) => plugin.name);
|
|
8175
|
+
const pluginsCount = config.plugins?.length || 0;
|
|
8261
8176
|
const meta = {
|
|
8262
|
-
plugins: status === "success" ? `${p2.green(`${buildStartPlugins.length} successful`)}, ${pluginsCount} total` : `${p2.red(`${
|
|
8263
|
-
pluginsFailed: status === "failed" ?
|
|
8177
|
+
plugins: status === "success" ? `${p2.green(`${buildStartPlugins.length} successful`)}, ${pluginsCount} total` : `${p2.red(`${failedPlugins?.length ?? 1} failed`)}, ${pluginsCount} total`,
|
|
8178
|
+
pluginsFailed: status === "failed" ? failedPlugins?.map((name) => logger.randomCliColour(name))?.join(", ") : void 0,
|
|
8264
8179
|
filesCreated,
|
|
8265
8180
|
time: `${p2.yellow(`${elapsedSeconds}s`)}`,
|
|
8266
|
-
output:
|
|
8181
|
+
output: path2__default.default.isAbsolute(config.root) ? path2__default.default.resolve(config.root, config.output.path) : config.root
|
|
8267
8182
|
};
|
|
8268
|
-
logs.
|
|
8183
|
+
logs.add(
|
|
8269
8184
|
[
|
|
8270
8185
|
[`${p2.bold("Plugins:")} ${meta.plugins}`, true],
|
|
8271
8186
|
[`${p2.dim("Failed:")} ${meta.pluginsFailed || "none"}`, !!meta.pluginsFailed],
|
|
@@ -8278,78 +8193,45 @@ function getSummary({ pluginManager, filesCreated, status, hrStart, config }) {
|
|
|
8278
8193
|
return void 0;
|
|
8279
8194
|
}).filter(Boolean).join("\n")
|
|
8280
8195
|
);
|
|
8281
|
-
return logs;
|
|
8282
|
-
}
|
|
8283
|
-
|
|
8284
|
-
// src/utils/writeLog.ts
|
|
8285
|
-
init_cjs_shims();
|
|
8286
|
-
|
|
8287
|
-
var _fs3 = require('@kubb/fs');
|
|
8288
|
-
async function writeLog({ data, override, fileName = "kubb.log" }) {
|
|
8289
|
-
if (data.trim() === "") {
|
|
8290
|
-
return void 0;
|
|
8291
|
-
}
|
|
8292
|
-
const path6 = _path.resolve.call(void 0, process.cwd(), fileName);
|
|
8293
|
-
let previousLogs = "";
|
|
8294
|
-
try {
|
|
8295
|
-
previousLogs = await _fs3.read.call(void 0, _path.resolve.call(void 0, path6));
|
|
8296
|
-
} catch (_err) {
|
|
8297
|
-
}
|
|
8298
|
-
if (override) {
|
|
8299
|
-
return _fs3.write.call(void 0, path6, data.trim(), { sanity: false });
|
|
8300
|
-
}
|
|
8301
|
-
return _fs3.write.call(void 0, path6, [previousLogs, data.trim()].filter(Boolean).join("\n"), { sanity: false });
|
|
8196
|
+
return [...logs];
|
|
8302
8197
|
}
|
|
8303
|
-
|
|
8304
|
-
// src/generate.ts
|
|
8305
|
-
var _cliprogress = require('cli-progress');
|
|
8306
8198
|
async function generate({ input, config, args }) {
|
|
8307
|
-
const logLevel =
|
|
8308
|
-
const logger =
|
|
8199
|
+
const logLevel = logger.LogMapper[args.logLevel] || 3;
|
|
8200
|
+
const logger$1 = logger.createLogger({
|
|
8309
8201
|
logLevel,
|
|
8310
8202
|
name: config.name
|
|
8311
8203
|
});
|
|
8312
|
-
const
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
} : {
|
|
8323
|
-
format: "{percentage}% {bar} {value}/{total} {id}",
|
|
8204
|
+
const { root = process.cwd(), ...userConfig } = config;
|
|
8205
|
+
const inputPath = input ?? ("path" in userConfig.input ? userConfig.input.path : void 0);
|
|
8206
|
+
if (logger$1.logLevel !== logger.LogMapper.debug) {
|
|
8207
|
+
const progressCache = /* @__PURE__ */ new Map();
|
|
8208
|
+
logger$1.on("progress_start", ({ id, size, message = "" }) => {
|
|
8209
|
+
logger$1.consola?.pauseLogs();
|
|
8210
|
+
const payload = { id, message };
|
|
8211
|
+
const progressBar = new cliProgress.SingleBar(
|
|
8212
|
+
{
|
|
8213
|
+
format: "{percentage}% {bar} {value}/{total} | {message}",
|
|
8324
8214
|
barsize: 30,
|
|
8325
8215
|
clearOnComplete: true,
|
|
8326
8216
|
emptyOnZero: true
|
|
8327
8217
|
},
|
|
8328
|
-
|
|
8218
|
+
cliProgress.Presets.shades_grey
|
|
8329
8219
|
);
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
}
|
|
8346
|
-
});
|
|
8347
|
-
logger.on("debug", async ({ logs, override, fileName }) => {
|
|
8348
|
-
await writeLog({ data: logs.join("\n"), fileName, override });
|
|
8349
|
-
});
|
|
8350
|
-
const { root = process.cwd(), ...userConfig } = config;
|
|
8351
|
-
const inputPath = _nullishCoalesce(input, () => ( ("path" in userConfig.input ? userConfig.input.path : void 0)));
|
|
8352
|
-
logger.emit("start", `Building ${logLevel !== _logger.LogMapper.silent ? p2.dim(inputPath) : ""}`);
|
|
8220
|
+
if (!progressCache.has(id)) {
|
|
8221
|
+
progressCache.set(id, progressBar);
|
|
8222
|
+
progressBar.start(size, 1, payload);
|
|
8223
|
+
}
|
|
8224
|
+
});
|
|
8225
|
+
logger$1.on("progress_stop", ({ id }) => {
|
|
8226
|
+
progressCache.get(id)?.stop();
|
|
8227
|
+
logger$1.consola?.resumeLogs();
|
|
8228
|
+
});
|
|
8229
|
+
logger$1.on("progressed", ({ id, message = "" }) => {
|
|
8230
|
+
const payload = { id, message };
|
|
8231
|
+
progressCache.get(id)?.increment(1, payload);
|
|
8232
|
+
});
|
|
8233
|
+
}
|
|
8234
|
+
logger$1.emit("start", `Building ${logger$1.logLevel !== logger.LogMapper.silent ? p2.dim(inputPath) : ""}`);
|
|
8353
8235
|
const definedConfig = {
|
|
8354
8236
|
root,
|
|
8355
8237
|
...userConfig,
|
|
@@ -8359,27 +8241,35 @@ async function generate({ input, config, args }) {
|
|
|
8359
8241
|
} : userConfig.input,
|
|
8360
8242
|
output: {
|
|
8361
8243
|
write: true,
|
|
8362
|
-
|
|
8244
|
+
barrelType: "named",
|
|
8245
|
+
extension: {
|
|
8246
|
+
".ts": ".ts"
|
|
8247
|
+
},
|
|
8363
8248
|
...userConfig.output
|
|
8364
8249
|
}
|
|
8365
8250
|
};
|
|
8366
8251
|
const hrStart = process.hrtime();
|
|
8367
|
-
const { pluginManager, files, error } = await
|
|
8252
|
+
const { pluginManager, files, error } = await core.safeBuild({
|
|
8368
8253
|
config: definedConfig,
|
|
8369
|
-
logger
|
|
8254
|
+
logger: logger$1
|
|
8370
8255
|
});
|
|
8256
|
+
if (logger$1.logLevel === logger.LogMapper.debug) {
|
|
8257
|
+
logger$1.consola?.start("Writing logs");
|
|
8258
|
+
const logFiles = await logger$1.writeLogs();
|
|
8259
|
+
logger$1.consola?.success(`Written logs:
|
|
8260
|
+
${logFiles.join("\n")}`);
|
|
8261
|
+
}
|
|
8371
8262
|
const summary = getSummary({
|
|
8372
8263
|
filesCreated: files.length,
|
|
8373
8264
|
pluginManager,
|
|
8374
8265
|
config: definedConfig,
|
|
8375
8266
|
status: error ? "failed" : "success",
|
|
8376
|
-
hrStart
|
|
8377
|
-
logger
|
|
8267
|
+
hrStart
|
|
8378
8268
|
});
|
|
8379
|
-
if (error && logger.consola) {
|
|
8380
|
-
|
|
8381
|
-
logger.consola.error(`Build failed ${logLevel !==
|
|
8382
|
-
logger.consola.box({
|
|
8269
|
+
if (error && logger$1.consola) {
|
|
8270
|
+
logger$1.consola?.resumeLogs();
|
|
8271
|
+
logger$1.consola.error(`Build failed ${logger$1.logLevel !== logger.LogMapper.silent ? p2.dim(inputPath) : ""}`);
|
|
8272
|
+
logger$1.consola.box({
|
|
8383
8273
|
title: `${config.name || ""}`,
|
|
8384
8274
|
message: summary.join(""),
|
|
8385
8275
|
style: {
|
|
@@ -8389,19 +8279,19 @@ async function generate({ input, config, args }) {
|
|
|
8389
8279
|
}
|
|
8390
8280
|
});
|
|
8391
8281
|
const errors = getErrorCauses([error]);
|
|
8392
|
-
if (logger.consola && errors.length && logLevel ===
|
|
8282
|
+
if (logger$1.consola && errors.length && logger$1.logLevel === logger.LogMapper.debug) {
|
|
8393
8283
|
errors.forEach((err) => {
|
|
8394
|
-
|
|
8284
|
+
logger$1.consola?.error(err);
|
|
8395
8285
|
});
|
|
8396
8286
|
}
|
|
8397
|
-
|
|
8287
|
+
logger$1.consola?.error(error);
|
|
8398
8288
|
process.exit(0);
|
|
8399
8289
|
}
|
|
8400
8290
|
if (config.hooks) {
|
|
8401
|
-
await executeHooks({ hooks: config.hooks, logger });
|
|
8291
|
+
await executeHooks({ hooks: config.hooks, logger: logger$1 });
|
|
8402
8292
|
}
|
|
8403
|
-
|
|
8404
|
-
|
|
8293
|
+
logger$1.consola?.log(`\u26A1Build completed ${logger$1.logLevel !== logger.LogMapper.silent ? p2.dim(inputPath) : ""}`);
|
|
8294
|
+
logger$1.consola?.box({
|
|
8405
8295
|
title: `${config.name || ""}`,
|
|
8406
8296
|
message: summary.join(""),
|
|
8407
8297
|
style: {
|
|
@@ -8409,13 +8299,11 @@ async function generate({ input, config, args }) {
|
|
|
8409
8299
|
borderColor: "green",
|
|
8410
8300
|
borderStyle: "rounded"
|
|
8411
8301
|
}
|
|
8412
|
-
})
|
|
8302
|
+
});
|
|
8413
8303
|
}
|
|
8414
8304
|
|
|
8415
|
-
|
|
8416
|
-
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
exports.init_cjs_shims = init_cjs_shims; exports.p = p2; exports.execa = execa; exports.generate = generate;
|
|
8421
|
-
//# sourceMappingURL=chunk-LK3JKOEH.cjs.map
|
|
8305
|
+
exports.generate = generate;
|
|
8306
|
+
exports.init_cjs_shims = init_cjs_shims;
|
|
8307
|
+
exports.p = p2;
|
|
8308
|
+
//# sourceMappingURL=chunk-PAOUPXAG.cjs.map
|
|
8309
|
+
//# sourceMappingURL=chunk-PAOUPXAG.cjs.map
|