wxt 0.18.10 → 0.18.12
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 +6 -6
- package/dist/{chunk-2V7XZSZQ.js → chunk-6QN6UXBH.js} +161 -91
- package/dist/cli.js +176 -96
- package/dist/client.d.ts +4 -2
- package/dist/client.js +8 -1
- package/dist/{index-Bk-a0SkY.d.ts → define-app-config-bg54F_lV.d.ts} +21 -1
- package/dist/{execa-D7CMCKO2.js → execa-4UBDUBJZ.js} +566 -478
- package/dist/{execa-ATHZH2Y4.js → execa-QLUM2B3W.js} +566 -478
- package/dist/{index-mz3v4Nde.d.cts → index-1N-eQJJh.d.cts} +15 -6
- package/dist/{index-mz3v4Nde.d.ts → index-1N-eQJJh.d.ts} +15 -6
- package/dist/index.cjs +948 -760
- package/dist/index.d.cts +14 -3
- package/dist/index.d.ts +14 -3
- package/dist/index.js +29 -20
- package/dist/modules.d.cts +1 -1
- package/dist/modules.d.ts +1 -1
- package/dist/sandbox.d.ts +2 -1
- package/dist/sandbox.js +6 -0
- package/dist/testing.cjs +127 -63
- package/dist/testing.d.cts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +4 -2
- package/dist/virtual/background-entrypoint.js +9 -1
- package/package.json +10 -10
- package/dist/cli.d.ts +0 -2
package/dist/index.cjs
CHANGED
|
@@ -47,10 +47,10 @@ var init_is_plain_obj = __esm({
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
50
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/file-url.js
|
|
51
51
|
var import_node_url, safeNormalizeFileUrl, normalizeFileUrl;
|
|
52
52
|
var init_file_url = __esm({
|
|
53
|
-
"../../node_modules/.pnpm/execa@9.
|
|
53
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/file-url.js"() {
|
|
54
54
|
"use strict";
|
|
55
55
|
import_node_url = require("url");
|
|
56
56
|
safeNormalizeFileUrl = (file, name) => {
|
|
@@ -64,10 +64,10 @@ var init_file_url = __esm({
|
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
|
|
67
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
67
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/parameters.js
|
|
68
68
|
var normalizeParameters;
|
|
69
69
|
var init_parameters = __esm({
|
|
70
|
-
"../../node_modules/.pnpm/execa@9.
|
|
70
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/parameters.js"() {
|
|
71
71
|
"use strict";
|
|
72
72
|
init_is_plain_obj();
|
|
73
73
|
init_file_url();
|
|
@@ -93,10 +93,10 @@ var init_parameters = __esm({
|
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
96
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/utils/uint-array.js
|
|
97
97
|
var import_node_string_decoder, objectToString, isArrayBuffer, isUint8Array, bufferToUint8Array, textEncoder, stringToUint8Array, textDecoder, uint8ArrayToString, joinToString, uint8ArraysToStrings, joinToUint8Array, stringsToUint8Arrays, concatUint8Arrays, getJoinLength;
|
|
98
98
|
var init_uint_array = __esm({
|
|
99
|
-
"../../node_modules/.pnpm/execa@9.
|
|
99
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/utils/uint-array.js"() {
|
|
100
100
|
"use strict";
|
|
101
101
|
import_node_string_decoder = require("string_decoder");
|
|
102
102
|
({ toString: objectToString } = Object.prototype);
|
|
@@ -146,10 +146,10 @@ var init_uint_array = __esm({
|
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
148
|
|
|
149
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
149
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/template.js
|
|
150
150
|
var import_node_child_process, isTemplateString, parseTemplates, parseTemplate, splitByWhitespaces, DELIMITERS, ESCAPE_LENGTH, concatTokens, parseExpression, getSubprocessResult;
|
|
151
151
|
var init_template = __esm({
|
|
152
|
-
"../../node_modules/.pnpm/execa@9.
|
|
152
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/template.js"() {
|
|
153
153
|
"use strict";
|
|
154
154
|
import_node_child_process = require("child_process");
|
|
155
155
|
init_is_plain_obj();
|
|
@@ -252,124 +252,173 @@ var init_template = __esm({
|
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
254
|
|
|
255
|
-
// ../../node_modules/.pnpm/
|
|
256
|
-
var
|
|
257
|
-
var
|
|
258
|
-
"../../node_modules/.pnpm/
|
|
255
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/utils/standard-stream.js
|
|
256
|
+
var import_node_process, isStandardStream, STANDARD_STREAMS, STANDARD_STREAMS_ALIASES, getStreamName;
|
|
257
|
+
var init_standard_stream = __esm({
|
|
258
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/utils/standard-stream.js"() {
|
|
259
259
|
"use strict";
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
260
|
+
import_node_process = __toESM(require("process"), 1);
|
|
261
|
+
isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
|
|
262
|
+
STANDARD_STREAMS = [import_node_process.default.stdin, import_node_process.default.stdout, import_node_process.default.stderr];
|
|
263
|
+
STANDARD_STREAMS_ALIASES = ["stdin", "stdout", "stderr"];
|
|
264
|
+
getStreamName = (fdNumber) => STANDARD_STREAMS_ALIASES[fdNumber] ?? `stdio[${fdNumber}]`;
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/specific.js
|
|
269
|
+
var import_node_util, normalizeFdSpecificOptions, normalizeFdSpecificOption, getStdioLength, normalizeFdSpecificValue, normalizeOptionObject, compareFdName, getFdNameOrder, parseFdName, parseFd, FD_REGEXP, addDefaultValue, verboseDefault, DEFAULT_OPTIONS, FD_SPECIFIC_OPTIONS, getFdSpecificValue;
|
|
270
|
+
var init_specific = __esm({
|
|
271
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/specific.js"() {
|
|
272
|
+
"use strict";
|
|
273
|
+
import_node_util = require("util");
|
|
274
|
+
init_is_plain_obj();
|
|
275
|
+
init_standard_stream();
|
|
276
|
+
normalizeFdSpecificOptions = (options) => {
|
|
277
|
+
const optionsCopy = { ...options };
|
|
278
|
+
for (const optionName of FD_SPECIFIC_OPTIONS) {
|
|
279
|
+
optionsCopy[optionName] = normalizeFdSpecificOption(options, optionName);
|
|
265
280
|
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
index = string.indexOf(closeCode, lastIndex);
|
|
281
|
+
return optionsCopy;
|
|
282
|
+
};
|
|
283
|
+
normalizeFdSpecificOption = (options, optionName) => {
|
|
284
|
+
const optionBaseArray = Array.from({ length: getStdioLength(options) + 1 });
|
|
285
|
+
const optionArray = normalizeFdSpecificValue(options[optionName], optionBaseArray, optionName);
|
|
286
|
+
return addDefaultValue(optionArray, optionName);
|
|
287
|
+
};
|
|
288
|
+
getStdioLength = ({ stdio }) => Array.isArray(stdio) ? Math.max(stdio.length, STANDARD_STREAMS_ALIASES.length) : STANDARD_STREAMS_ALIASES.length;
|
|
289
|
+
normalizeFdSpecificValue = (optionValue, optionArray, optionName) => isPlainObject(optionValue) ? normalizeOptionObject(optionValue, optionArray, optionName) : optionArray.fill(optionValue);
|
|
290
|
+
normalizeOptionObject = (optionValue, optionArray, optionName) => {
|
|
291
|
+
for (const fdName of Object.keys(optionValue).sort(compareFdName)) {
|
|
292
|
+
for (const fdNumber of parseFdName(fdName, optionName, optionArray)) {
|
|
293
|
+
optionArray[fdNumber] = optionValue[fdName];
|
|
280
294
|
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
};
|
|
295
|
+
}
|
|
296
|
+
return optionArray;
|
|
284
297
|
};
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
298
|
+
compareFdName = (fdNameA, fdNameB) => getFdNameOrder(fdNameA) < getFdNameOrder(fdNameB) ? 1 : -1;
|
|
299
|
+
getFdNameOrder = (fdName) => {
|
|
300
|
+
if (fdName === "stdout" || fdName === "stderr") {
|
|
301
|
+
return 0;
|
|
302
|
+
}
|
|
303
|
+
return fdName === "all" ? 2 : 1;
|
|
304
|
+
};
|
|
305
|
+
parseFdName = (fdName, optionName, optionArray) => {
|
|
306
|
+
if (fdName === "ipc") {
|
|
307
|
+
return [optionArray.length - 1];
|
|
308
|
+
}
|
|
309
|
+
const fdNumber = parseFd(fdName);
|
|
310
|
+
if (fdNumber === void 0 || fdNumber === 0) {
|
|
311
|
+
throw new TypeError(`"${optionName}.${fdName}" is invalid.
|
|
312
|
+
It must be "${optionName}.stdout", "${optionName}.stderr", "${optionName}.all", "${optionName}.ipc", or "${optionName}.fd3", "${optionName}.fd4" (and so on).`);
|
|
313
|
+
}
|
|
314
|
+
if (fdNumber >= optionArray.length) {
|
|
315
|
+
throw new TypeError(`"${optionName}.${fdName}" is invalid: that file descriptor does not exist.
|
|
316
|
+
Please set the "stdio" option to ensure that file descriptor exists.`);
|
|
317
|
+
}
|
|
318
|
+
return fdNumber === "all" ? [1, 2] : [fdNumber];
|
|
319
|
+
};
|
|
320
|
+
parseFd = (fdName) => {
|
|
321
|
+
if (fdName === "all") {
|
|
322
|
+
return fdName;
|
|
323
|
+
}
|
|
324
|
+
if (STANDARD_STREAMS_ALIASES.includes(fdName)) {
|
|
325
|
+
return STANDARD_STREAMS_ALIASES.indexOf(fdName);
|
|
326
|
+
}
|
|
327
|
+
const regexpResult = FD_REGEXP.exec(fdName);
|
|
328
|
+
if (regexpResult !== null) {
|
|
329
|
+
return Number(regexpResult[1]);
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
FD_REGEXP = /^fd(\d+)$/;
|
|
333
|
+
addDefaultValue = (optionArray, optionName) => optionArray.map((optionValue) => optionValue === void 0 ? DEFAULT_OPTIONS[optionName] : optionValue);
|
|
334
|
+
verboseDefault = (0, import_node_util.debuglog)("execa").enabled ? "full" : "none";
|
|
335
|
+
DEFAULT_OPTIONS = {
|
|
336
|
+
lines: false,
|
|
337
|
+
buffer: true,
|
|
338
|
+
maxBuffer: 1e3 * 1e3 * 100,
|
|
339
|
+
verbose: verboseDefault,
|
|
340
|
+
stripFinalNewline: true
|
|
341
|
+
};
|
|
342
|
+
FD_SPECIFIC_OPTIONS = ["lines", "buffer", "maxBuffer", "verbose", "stripFinalNewline"];
|
|
343
|
+
getFdSpecificValue = (optionArray, fdNumber) => fdNumber === "ipc" ? optionArray.at(-1) : optionArray[fdNumber];
|
|
326
344
|
}
|
|
327
345
|
});
|
|
328
346
|
|
|
329
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
330
|
-
var
|
|
331
|
-
var
|
|
332
|
-
"../../node_modules/.pnpm/execa@9.
|
|
347
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/values.js
|
|
348
|
+
var isVerbose, isFullVerbose, getVerboseFunction, getFdVerbose, getFdGenericVerbose, isVerboseFunction, VERBOSE_VALUES;
|
|
349
|
+
var init_values = __esm({
|
|
350
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/values.js"() {
|
|
333
351
|
"use strict";
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
return
|
|
352
|
+
init_specific();
|
|
353
|
+
isVerbose = ({ verbose }, fdNumber) => getFdVerbose(verbose, fdNumber) !== "none";
|
|
354
|
+
isFullVerbose = ({ verbose }, fdNumber) => !["none", "short"].includes(getFdVerbose(verbose, fdNumber));
|
|
355
|
+
getVerboseFunction = ({ verbose }, fdNumber) => {
|
|
356
|
+
const fdVerbose = getFdVerbose(verbose, fdNumber);
|
|
357
|
+
return isVerboseFunction(fdVerbose) ? fdVerbose : void 0;
|
|
340
358
|
};
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
359
|
+
getFdVerbose = (verbose, fdNumber) => fdNumber === void 0 ? getFdGenericVerbose(verbose) : getFdSpecificValue(verbose, fdNumber);
|
|
360
|
+
getFdGenericVerbose = (verbose) => verbose.find((fdVerbose) => isVerboseFunction(fdVerbose)) ?? VERBOSE_VALUES.findLast((fdVerbose) => verbose.includes(fdVerbose));
|
|
361
|
+
isVerboseFunction = (fdVerbose) => typeof fdVerbose === "function";
|
|
362
|
+
VERBOSE_VALUES = ["none", "short", "full"];
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
|
|
366
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/escape.js
|
|
367
|
+
var import_node_process2, import_node_util2, joinCommand, escapeLines, escapeControlCharacters, escapeControlCharacter, SPECIAL_CHAR_REGEXP, COMMON_ESCAPES, ASTRAL_START, quoteString, NO_ESCAPE_REGEXP;
|
|
368
|
+
var init_escape = __esm({
|
|
369
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/escape.js"() {
|
|
370
|
+
"use strict";
|
|
371
|
+
import_node_process2 = require("process");
|
|
372
|
+
import_node_util2 = require("util");
|
|
373
|
+
joinCommand = (filePath, rawArguments) => {
|
|
374
|
+
const fileAndArguments = [filePath, ...rawArguments];
|
|
375
|
+
const command = fileAndArguments.join(" ");
|
|
376
|
+
const escapedCommand = fileAndArguments.map((fileAndArgument) => quoteString(escapeControlCharacters(fileAndArgument))).join(" ");
|
|
377
|
+
return { command, escapedCommand };
|
|
378
|
+
};
|
|
379
|
+
escapeLines = (lines) => (0, import_node_util2.stripVTControlCharacters)(lines).split("\n").map((line) => escapeControlCharacters(line)).join("\n");
|
|
380
|
+
escapeControlCharacters = (line) => line.replaceAll(SPECIAL_CHAR_REGEXP, (character) => escapeControlCharacter(character));
|
|
381
|
+
escapeControlCharacter = (character) => {
|
|
382
|
+
const commonEscape = COMMON_ESCAPES[character];
|
|
383
|
+
if (commonEscape !== void 0) {
|
|
384
|
+
return commonEscape;
|
|
385
|
+
}
|
|
386
|
+
const codepoint = character.codePointAt(0);
|
|
387
|
+
const codepointHex = codepoint.toString(16);
|
|
388
|
+
return codepoint <= ASTRAL_START ? `\\u${codepointHex.padStart(4, "0")}` : `\\U${codepointHex}`;
|
|
389
|
+
};
|
|
390
|
+
SPECIAL_CHAR_REGEXP = /\p{Separator}|\p{Other}/gu;
|
|
391
|
+
COMMON_ESCAPES = {
|
|
392
|
+
" ": " ",
|
|
393
|
+
"\b": "\\b",
|
|
394
|
+
"\f": "\\f",
|
|
395
|
+
"\n": "\\n",
|
|
396
|
+
"\r": "\\r",
|
|
397
|
+
" ": "\\t"
|
|
398
|
+
};
|
|
399
|
+
ASTRAL_START = 65535;
|
|
400
|
+
quoteString = (escapedArgument) => {
|
|
401
|
+
if (NO_ESCAPE_REGEXP.test(escapedArgument)) {
|
|
402
|
+
return escapedArgument;
|
|
355
403
|
}
|
|
404
|
+
return import_node_process2.platform === "win32" ? `"${escapedArgument.replaceAll('"', '""')}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
|
|
356
405
|
};
|
|
357
|
-
|
|
406
|
+
NO_ESCAPE_REGEXP = /^[\w./-]+$/;
|
|
358
407
|
}
|
|
359
408
|
});
|
|
360
409
|
|
|
361
410
|
// ../../node_modules/.pnpm/is-unicode-supported@2.0.0/node_modules/is-unicode-supported/index.js
|
|
362
411
|
function isUnicodeSupported() {
|
|
363
|
-
if (
|
|
364
|
-
return
|
|
412
|
+
if (import_node_process3.default.platform !== "win32") {
|
|
413
|
+
return import_node_process3.default.env.TERM !== "linux";
|
|
365
414
|
}
|
|
366
|
-
return Boolean(
|
|
415
|
+
return Boolean(import_node_process3.default.env.WT_SESSION) || Boolean(import_node_process3.default.env.TERMINUS_SUBLIME) || import_node_process3.default.env.ConEmuTask === "{cmd::Cmder}" || import_node_process3.default.env.TERM_PROGRAM === "Terminus-Sublime" || import_node_process3.default.env.TERM_PROGRAM === "vscode" || import_node_process3.default.env.TERM === "xterm-256color" || import_node_process3.default.env.TERM === "alacritty" || import_node_process3.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
367
416
|
}
|
|
368
|
-
var
|
|
417
|
+
var import_node_process3;
|
|
369
418
|
var init_is_unicode_supported = __esm({
|
|
370
419
|
"../../node_modules/.pnpm/is-unicode-supported@2.0.0/node_modules/is-unicode-supported/index.js"() {
|
|
371
420
|
"use strict";
|
|
372
|
-
|
|
421
|
+
import_node_process3 = __toESM(require("process"), 1);
|
|
373
422
|
}
|
|
374
423
|
});
|
|
375
424
|
|
|
@@ -656,89 +705,187 @@ var init_figures = __esm({
|
|
|
656
705
|
}
|
|
657
706
|
});
|
|
658
707
|
|
|
659
|
-
// ../../node_modules/.pnpm/
|
|
660
|
-
var
|
|
661
|
-
var
|
|
662
|
-
"../../node_modules/.pnpm/
|
|
708
|
+
// ../../node_modules/.pnpm/yoctocolors@2.0.2/node_modules/yoctocolors/index.js
|
|
709
|
+
var import_node_tty, hasColors, format, reset, bold, dim, italic, underline, overline, inverse, hidden, strikethrough, black, red, green, yellow, blue, magenta, cyan, white, gray, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright;
|
|
710
|
+
var init_yoctocolors = __esm({
|
|
711
|
+
"../../node_modules/.pnpm/yoctocolors@2.0.2/node_modules/yoctocolors/index.js"() {
|
|
663
712
|
"use strict";
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
713
|
+
import_node_tty = __toESM(require("tty"), 1);
|
|
714
|
+
hasColors = import_node_tty.default.WriteStream.prototype.hasColors();
|
|
715
|
+
format = (open, close) => {
|
|
716
|
+
if (!hasColors) {
|
|
717
|
+
return (input) => input;
|
|
718
|
+
}
|
|
719
|
+
const openCode = `\x1B[${open}m`;
|
|
720
|
+
const closeCode = `\x1B[${close}m`;
|
|
721
|
+
return (input) => {
|
|
722
|
+
const string = input + "";
|
|
723
|
+
let index = string.indexOf(closeCode);
|
|
724
|
+
if (index === -1) {
|
|
725
|
+
return openCode + string + closeCode;
|
|
726
|
+
}
|
|
727
|
+
let result = openCode;
|
|
728
|
+
let lastIndex = 0;
|
|
729
|
+
while (index !== -1) {
|
|
730
|
+
result += string.slice(lastIndex, index) + openCode;
|
|
731
|
+
lastIndex = index + closeCode.length;
|
|
732
|
+
index = string.indexOf(closeCode, lastIndex);
|
|
733
|
+
}
|
|
734
|
+
result += string.slice(lastIndex) + closeCode;
|
|
735
|
+
return result;
|
|
736
|
+
};
|
|
671
737
|
};
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
738
|
+
reset = format(0, 0);
|
|
739
|
+
bold = format(1, 22);
|
|
740
|
+
dim = format(2, 22);
|
|
741
|
+
italic = format(3, 23);
|
|
742
|
+
underline = format(4, 24);
|
|
743
|
+
overline = format(53, 55);
|
|
744
|
+
inverse = format(7, 27);
|
|
745
|
+
hidden = format(8, 28);
|
|
746
|
+
strikethrough = format(9, 29);
|
|
747
|
+
black = format(30, 39);
|
|
748
|
+
red = format(31, 39);
|
|
749
|
+
green = format(32, 39);
|
|
750
|
+
yellow = format(33, 39);
|
|
751
|
+
blue = format(34, 39);
|
|
752
|
+
magenta = format(35, 39);
|
|
753
|
+
cyan = format(36, 39);
|
|
754
|
+
white = format(37, 39);
|
|
755
|
+
gray = format(90, 39);
|
|
756
|
+
bgBlack = format(40, 49);
|
|
757
|
+
bgRed = format(41, 49);
|
|
758
|
+
bgGreen = format(42, 49);
|
|
759
|
+
bgYellow = format(43, 49);
|
|
760
|
+
bgBlue = format(44, 49);
|
|
761
|
+
bgMagenta = format(45, 49);
|
|
762
|
+
bgCyan = format(46, 49);
|
|
763
|
+
bgWhite = format(47, 49);
|
|
764
|
+
bgGray = format(100, 49);
|
|
765
|
+
redBright = format(91, 39);
|
|
766
|
+
greenBright = format(92, 39);
|
|
767
|
+
yellowBright = format(93, 39);
|
|
768
|
+
blueBright = format(94, 39);
|
|
769
|
+
magentaBright = format(95, 39);
|
|
770
|
+
cyanBright = format(96, 39);
|
|
771
|
+
whiteBright = format(97, 39);
|
|
772
|
+
bgRedBright = format(101, 49);
|
|
773
|
+
bgGreenBright = format(102, 49);
|
|
774
|
+
bgYellowBright = format(103, 49);
|
|
775
|
+
bgBlueBright = format(104, 49);
|
|
776
|
+
bgMagentaBright = format(105, 49);
|
|
777
|
+
bgCyanBright = format(106, 49);
|
|
778
|
+
bgWhiteBright = format(107, 49);
|
|
779
|
+
}
|
|
780
|
+
});
|
|
781
|
+
|
|
782
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/default.js
|
|
783
|
+
var defaultVerboseFunction, serializeTimestamp, padField, getFinalIcon, ICONS, identity, COLORS;
|
|
784
|
+
var init_default = __esm({
|
|
785
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/default.js"() {
|
|
786
|
+
"use strict";
|
|
787
|
+
init_figures();
|
|
788
|
+
init_yoctocolors();
|
|
789
|
+
defaultVerboseFunction = ({
|
|
790
|
+
type,
|
|
791
|
+
message,
|
|
792
|
+
timestamp,
|
|
793
|
+
piped,
|
|
794
|
+
commandId,
|
|
795
|
+
result: { failed = false } = {},
|
|
796
|
+
options: { reject = true }
|
|
797
|
+
}) => {
|
|
798
|
+
const timestampString = serializeTimestamp(timestamp);
|
|
799
|
+
const icon = ICONS[type]({ failed, reject, piped });
|
|
800
|
+
const color = COLORS[type]({ reject });
|
|
801
|
+
return `${gray(`[${timestampString}]`)} ${gray(`[${commandId}]`)} ${color(icon)} ${color(message)}`;
|
|
802
|
+
};
|
|
803
|
+
serializeTimestamp = (timestamp) => `${padField(timestamp.getHours(), 2)}:${padField(timestamp.getMinutes(), 2)}:${padField(timestamp.getSeconds(), 2)}.${padField(timestamp.getMilliseconds(), 3)}`;
|
|
804
|
+
padField = (field, padding) => String(field).padStart(padding, "0");
|
|
805
|
+
getFinalIcon = ({ failed, reject }) => {
|
|
806
|
+
if (!failed) {
|
|
807
|
+
return figures_default.tick;
|
|
678
808
|
}
|
|
679
|
-
|
|
680
|
-
const codepointHex = codepoint.toString(16);
|
|
681
|
-
return codepoint <= ASTRAL_START ? `\\u${codepointHex.padStart(4, "0")}` : `\\U${codepointHex}`;
|
|
809
|
+
return reject ? figures_default.cross : figures_default.warning;
|
|
682
810
|
};
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
"\r": "\\r",
|
|
690
|
-
" ": "\\t"
|
|
811
|
+
ICONS = {
|
|
812
|
+
command: ({ piped }) => piped ? "|" : "$",
|
|
813
|
+
output: () => " ",
|
|
814
|
+
ipc: () => "*",
|
|
815
|
+
error: getFinalIcon,
|
|
816
|
+
duration: getFinalIcon
|
|
691
817
|
};
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
818
|
+
identity = (string) => string;
|
|
819
|
+
COLORS = {
|
|
820
|
+
command: () => bold,
|
|
821
|
+
output: () => identity,
|
|
822
|
+
ipc: () => identity,
|
|
823
|
+
error: ({ reject }) => reject ? redBright : yellowBright,
|
|
824
|
+
duration: () => gray
|
|
825
|
+
};
|
|
826
|
+
}
|
|
827
|
+
});
|
|
828
|
+
|
|
829
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/custom.js
|
|
830
|
+
var applyVerboseOnLines, applyVerboseFunction, appendNewline;
|
|
831
|
+
var init_custom = __esm({
|
|
832
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/custom.js"() {
|
|
833
|
+
"use strict";
|
|
834
|
+
init_values();
|
|
835
|
+
applyVerboseOnLines = (printedLines, verboseInfo, fdNumber) => {
|
|
836
|
+
const verboseFunction = getVerboseFunction(verboseInfo, fdNumber);
|
|
837
|
+
return printedLines.map(({ verboseLine, verboseObject }) => applyVerboseFunction(verboseLine, verboseObject, verboseFunction)).filter((printedLine) => printedLine !== void 0).map((printedLine) => appendNewline(printedLine)).join("");
|
|
838
|
+
};
|
|
839
|
+
applyVerboseFunction = (verboseLine, verboseObject, verboseFunction) => {
|
|
840
|
+
if (verboseFunction === void 0) {
|
|
841
|
+
return verboseLine;
|
|
842
|
+
}
|
|
843
|
+
const printedLine = verboseFunction(verboseLine, verboseObject);
|
|
844
|
+
if (typeof printedLine === "string") {
|
|
845
|
+
return printedLine;
|
|
696
846
|
}
|
|
697
|
-
return import_node_process2.platform === "win32" ? `"${escapedArgument.replaceAll('"', '""')}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
|
|
698
847
|
};
|
|
699
|
-
|
|
848
|
+
appendNewline = (printedLine) => printedLine.endsWith("\n") ? printedLine : `${printedLine}
|
|
849
|
+
`;
|
|
700
850
|
}
|
|
701
851
|
});
|
|
702
852
|
|
|
703
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
704
|
-
var import_node_fs, import_node_util3, verboseLog,
|
|
853
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/log.js
|
|
854
|
+
var import_node_fs, import_node_util3, verboseLog, getVerboseObject, getPrintedLines, getPrintedLine, STDERR_FD, serializeVerboseMessage, TAB_SIZE;
|
|
705
855
|
var init_log = __esm({
|
|
706
|
-
"../../node_modules/.pnpm/execa@9.
|
|
856
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/log.js"() {
|
|
707
857
|
"use strict";
|
|
708
858
|
import_node_fs = require("fs");
|
|
709
859
|
import_node_util3 = require("util");
|
|
710
|
-
init_figures();
|
|
711
|
-
init_yoctocolors();
|
|
712
860
|
init_escape();
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
861
|
+
init_default();
|
|
862
|
+
init_custom();
|
|
863
|
+
verboseLog = ({ type, verboseMessage, fdNumber, verboseInfo, result }) => {
|
|
864
|
+
const verboseObject = getVerboseObject({ type, result, verboseInfo });
|
|
865
|
+
const printedLines = getPrintedLines(verboseMessage, verboseObject);
|
|
866
|
+
const finalLines = applyVerboseOnLines(printedLines, verboseInfo, fdNumber);
|
|
867
|
+
(0, import_node_fs.writeFileSync)(STDERR_FD, finalLines);
|
|
868
|
+
};
|
|
869
|
+
getVerboseObject = ({
|
|
870
|
+
type,
|
|
871
|
+
result,
|
|
872
|
+
verboseInfo: { escapedCommand, commandId, rawOptions: { piped = false, ...options } }
|
|
873
|
+
}) => ({
|
|
874
|
+
type,
|
|
875
|
+
escapedCommand,
|
|
876
|
+
commandId: `${commandId}`,
|
|
877
|
+
timestamp: /* @__PURE__ */ new Date(),
|
|
878
|
+
piped,
|
|
879
|
+
result,
|
|
880
|
+
options
|
|
881
|
+
});
|
|
882
|
+
getPrintedLines = (verboseMessage, verboseObject) => verboseMessage.split("\n").map((message) => getPrintedLine({ ...verboseObject, message }));
|
|
883
|
+
getPrintedLine = (verboseObject) => {
|
|
884
|
+
const verboseLine = defaultVerboseFunction(verboseObject);
|
|
885
|
+
return { verboseLine, verboseObject };
|
|
717
886
|
};
|
|
718
887
|
STDERR_FD = 2;
|
|
719
|
-
|
|
720
|
-
addPrefixToLine = (line, verboseId, icon, color = identity) => [
|
|
721
|
-
gray(`[${getTimestamp()}]`),
|
|
722
|
-
gray(`[${verboseId}]`),
|
|
723
|
-
color(ICONS[icon]),
|
|
724
|
-
color(line)
|
|
725
|
-
].join(" ");
|
|
726
|
-
identity = (string) => string;
|
|
727
|
-
getTimestamp = () => {
|
|
728
|
-
const date = /* @__PURE__ */ new Date();
|
|
729
|
-
return `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;
|
|
730
|
-
};
|
|
731
|
-
padField = (field, padding) => String(field).padStart(padding, "0");
|
|
732
|
-
ICONS = {
|
|
733
|
-
command: "$",
|
|
734
|
-
pipedCommand: "|",
|
|
735
|
-
output: " ",
|
|
736
|
-
ipc: "*",
|
|
737
|
-
error: figures_default.cross,
|
|
738
|
-
warning: figures_default.warning,
|
|
739
|
-
success: figures_default.tick
|
|
740
|
-
};
|
|
741
|
-
serializeLogMessage = (message) => {
|
|
888
|
+
serializeVerboseMessage = (message) => {
|
|
742
889
|
const messageString = typeof message === "string" ? message : (0, import_node_util3.inspect)(message);
|
|
743
890
|
const escapedMessage = escapeLines(messageString);
|
|
744
891
|
return escapedMessage.replaceAll(" ", " ".repeat(TAB_SIZE));
|
|
@@ -747,129 +894,76 @@ var init_log = __esm({
|
|
|
747
894
|
}
|
|
748
895
|
});
|
|
749
896
|
|
|
750
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
897
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/start.js
|
|
751
898
|
var logCommand;
|
|
752
899
|
var init_start = __esm({
|
|
753
|
-
"../../node_modules/.pnpm/execa@9.
|
|
900
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/start.js"() {
|
|
754
901
|
"use strict";
|
|
755
|
-
|
|
756
|
-
init_info();
|
|
902
|
+
init_values();
|
|
757
903
|
init_log();
|
|
758
|
-
logCommand = (escapedCommand,
|
|
759
|
-
if (!isVerbose(
|
|
904
|
+
logCommand = (escapedCommand, verboseInfo) => {
|
|
905
|
+
if (!isVerbose(verboseInfo)) {
|
|
760
906
|
return;
|
|
761
907
|
}
|
|
762
|
-
|
|
763
|
-
|
|
908
|
+
verboseLog({
|
|
909
|
+
type: "command",
|
|
910
|
+
verboseMessage: escapedCommand,
|
|
911
|
+
verboseInfo
|
|
912
|
+
});
|
|
764
913
|
};
|
|
765
914
|
}
|
|
766
915
|
});
|
|
767
916
|
|
|
768
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
769
|
-
var
|
|
770
|
-
var
|
|
771
|
-
"../../node_modules/.pnpm/execa@9.
|
|
772
|
-
"use strict";
|
|
773
|
-
import_node_process3 = require("process");
|
|
774
|
-
getStartTime = () => import_node_process3.hrtime.bigint();
|
|
775
|
-
getDurationMs = (startTime) => Number(import_node_process3.hrtime.bigint() - startTime) / 1e6;
|
|
776
|
-
}
|
|
777
|
-
});
|
|
778
|
-
|
|
779
|
-
// ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/utils/standard-stream.js
|
|
780
|
-
var import_node_process4, isStandardStream, STANDARD_STREAMS, STANDARD_STREAMS_ALIASES, getStreamName;
|
|
781
|
-
var init_standard_stream = __esm({
|
|
782
|
-
"../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/utils/standard-stream.js"() {
|
|
783
|
-
"use strict";
|
|
784
|
-
import_node_process4 = __toESM(require("process"), 1);
|
|
785
|
-
isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
|
|
786
|
-
STANDARD_STREAMS = [import_node_process4.default.stdin, import_node_process4.default.stdout, import_node_process4.default.stderr];
|
|
787
|
-
STANDARD_STREAMS_ALIASES = ["stdin", "stdout", "stderr"];
|
|
788
|
-
getStreamName = (fdNumber) => STANDARD_STREAMS_ALIASES[fdNumber] ?? `stdio[${fdNumber}]`;
|
|
789
|
-
}
|
|
790
|
-
});
|
|
791
|
-
|
|
792
|
-
// ../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/arguments/specific.js
|
|
793
|
-
var normalizeFdSpecificOptions, normalizeFdSpecificOption, getStdioLength, normalizeFdSpecificValue, normalizeOptionObject, compareFdName, getFdNameOrder, parseFdName, parseFd, FD_REGEXP, addDefaultValue, DEFAULT_OPTIONS, FD_SPECIFIC_OPTIONS;
|
|
794
|
-
var init_specific = __esm({
|
|
795
|
-
"../../node_modules/.pnpm/execa@9.2.0/node_modules/execa/lib/arguments/specific.js"() {
|
|
917
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/info.js
|
|
918
|
+
var getVerboseInfo, getCommandId, COMMAND_ID, validateVerbose;
|
|
919
|
+
var init_info = __esm({
|
|
920
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/info.js"() {
|
|
796
921
|
"use strict";
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
normalizeFdSpecificOption = (options, optionName) => {
|
|
808
|
-
const optionBaseArray = Array.from({ length: getStdioLength(options) + 1 });
|
|
809
|
-
const optionArray = normalizeFdSpecificValue(options[optionName], optionBaseArray, optionName);
|
|
810
|
-
return addDefaultValue(optionArray, optionName);
|
|
811
|
-
};
|
|
812
|
-
getStdioLength = ({ stdio }) => Array.isArray(stdio) ? Math.max(stdio.length, STANDARD_STREAMS_ALIASES.length) : STANDARD_STREAMS_ALIASES.length;
|
|
813
|
-
normalizeFdSpecificValue = (optionValue, optionArray, optionName) => isPlainObject(optionValue) ? normalizeOptionObject(optionValue, optionArray, optionName) : optionArray.fill(optionValue);
|
|
814
|
-
normalizeOptionObject = (optionValue, optionArray, optionName) => {
|
|
815
|
-
for (const fdName of Object.keys(optionValue).sort(compareFdName)) {
|
|
816
|
-
for (const fdNumber of parseFdName(fdName, optionName, optionArray)) {
|
|
817
|
-
optionArray[fdNumber] = optionValue[fdName];
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
return optionArray;
|
|
821
|
-
};
|
|
822
|
-
compareFdName = (fdNameA, fdNameB) => getFdNameOrder(fdNameA) < getFdNameOrder(fdNameB) ? 1 : -1;
|
|
823
|
-
getFdNameOrder = (fdName) => {
|
|
824
|
-
if (fdName === "stdout" || fdName === "stderr") {
|
|
825
|
-
return 0;
|
|
826
|
-
}
|
|
827
|
-
return fdName === "all" ? 2 : 1;
|
|
828
|
-
};
|
|
829
|
-
parseFdName = (fdName, optionName, optionArray) => {
|
|
830
|
-
if (fdName === "ipc") {
|
|
831
|
-
return [optionArray.length - 1];
|
|
832
|
-
}
|
|
833
|
-
const fdNumber = parseFd(fdName);
|
|
834
|
-
if (fdNumber === void 0 || fdNumber === 0) {
|
|
835
|
-
throw new TypeError(`"${optionName}.${fdName}" is invalid.
|
|
836
|
-
It must be "${optionName}.stdout", "${optionName}.stderr", "${optionName}.all", "${optionName}.ipc", or "${optionName}.fd3", "${optionName}.fd4" (and so on).`);
|
|
837
|
-
}
|
|
838
|
-
if (fdNumber >= optionArray.length) {
|
|
839
|
-
throw new TypeError(`"${optionName}.${fdName}" is invalid: that file descriptor does not exist.
|
|
840
|
-
Please set the "stdio" option to ensure that file descriptor exists.`);
|
|
841
|
-
}
|
|
842
|
-
return fdNumber === "all" ? [1, 2] : [fdNumber];
|
|
843
|
-
};
|
|
844
|
-
parseFd = (fdName) => {
|
|
845
|
-
if (fdName === "all") {
|
|
846
|
-
return fdName;
|
|
847
|
-
}
|
|
848
|
-
if (STANDARD_STREAMS_ALIASES.includes(fdName)) {
|
|
849
|
-
return STANDARD_STREAMS_ALIASES.indexOf(fdName);
|
|
850
|
-
}
|
|
851
|
-
const regexpResult = FD_REGEXP.exec(fdName);
|
|
852
|
-
if (regexpResult !== null) {
|
|
853
|
-
return Number(regexpResult[1]);
|
|
854
|
-
}
|
|
922
|
+
init_values();
|
|
923
|
+
getVerboseInfo = (verbose, escapedCommand, rawOptions) => {
|
|
924
|
+
validateVerbose(verbose);
|
|
925
|
+
const commandId = getCommandId(verbose);
|
|
926
|
+
return {
|
|
927
|
+
verbose,
|
|
928
|
+
escapedCommand,
|
|
929
|
+
commandId,
|
|
930
|
+
rawOptions
|
|
931
|
+
};
|
|
855
932
|
};
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
933
|
+
getCommandId = (verbose) => isVerbose({ verbose }) ? COMMAND_ID++ : void 0;
|
|
934
|
+
COMMAND_ID = 0n;
|
|
935
|
+
validateVerbose = (verbose) => {
|
|
936
|
+
for (const fdVerbose of verbose) {
|
|
937
|
+
if (fdVerbose === false) {
|
|
938
|
+
throw new TypeError(`The "verbose: false" option was renamed to "verbose: 'none'".`);
|
|
939
|
+
}
|
|
940
|
+
if (fdVerbose === true) {
|
|
941
|
+
throw new TypeError(`The "verbose: true" option was renamed to "verbose: 'short'".`);
|
|
942
|
+
}
|
|
943
|
+
if (!VERBOSE_VALUES.includes(fdVerbose) && !isVerboseFunction(fdVerbose)) {
|
|
944
|
+
const allowedValues = VERBOSE_VALUES.map((allowedValue) => `'${allowedValue}'`).join(", ");
|
|
945
|
+
throw new TypeError(`The "verbose" option must not be ${fdVerbose}. Allowed values are: ${allowedValues} or a function.`);
|
|
946
|
+
}
|
|
947
|
+
}
|
|
864
948
|
};
|
|
865
|
-
FD_SPECIFIC_OPTIONS = ["lines", "buffer", "maxBuffer", "verbose", "stripFinalNewline"];
|
|
866
949
|
}
|
|
867
950
|
});
|
|
868
951
|
|
|
869
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
952
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/return/duration.js
|
|
953
|
+
var import_node_process4, getStartTime, getDurationMs;
|
|
954
|
+
var init_duration = __esm({
|
|
955
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/return/duration.js"() {
|
|
956
|
+
"use strict";
|
|
957
|
+
import_node_process4 = require("process");
|
|
958
|
+
getStartTime = () => import_node_process4.hrtime.bigint();
|
|
959
|
+
getDurationMs = (startTime) => Number(import_node_process4.hrtime.bigint() - startTime) / 1e6;
|
|
960
|
+
}
|
|
961
|
+
});
|
|
962
|
+
|
|
963
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/command.js
|
|
870
964
|
var handleCommand;
|
|
871
965
|
var init_command = __esm({
|
|
872
|
-
"../../node_modules/.pnpm/execa@9.
|
|
966
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/command.js"() {
|
|
873
967
|
"use strict";
|
|
874
968
|
init_start();
|
|
875
969
|
init_info();
|
|
@@ -879,8 +973,9 @@ var init_command = __esm({
|
|
|
879
973
|
handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
880
974
|
const startTime = getStartTime();
|
|
881
975
|
const { command, escapedCommand } = joinCommand(filePath, rawArguments);
|
|
882
|
-
const
|
|
883
|
-
|
|
976
|
+
const verbose = normalizeFdSpecificOption(rawOptions, "verbose");
|
|
977
|
+
const verboseInfo = getVerboseInfo(verbose, escapedCommand, { ...rawOptions });
|
|
978
|
+
logCommand(escapedCommand, verboseInfo);
|
|
884
979
|
return {
|
|
885
980
|
command,
|
|
886
981
|
escapedCommand,
|
|
@@ -988,12 +1083,12 @@ var require_isexe = __commonJS({
|
|
|
988
1083
|
if (typeof Promise !== "function") {
|
|
989
1084
|
throw new TypeError("callback not provided");
|
|
990
1085
|
}
|
|
991
|
-
return new Promise(function(
|
|
1086
|
+
return new Promise(function(resolve18, reject) {
|
|
992
1087
|
isexe(path12, options || {}, function(er, is) {
|
|
993
1088
|
if (er) {
|
|
994
1089
|
reject(er);
|
|
995
1090
|
} else {
|
|
996
|
-
|
|
1091
|
+
resolve18(is);
|
|
997
1092
|
}
|
|
998
1093
|
});
|
|
999
1094
|
});
|
|
@@ -1060,27 +1155,27 @@ var require_which = __commonJS({
|
|
|
1060
1155
|
opt = {};
|
|
1061
1156
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
1062
1157
|
const found = [];
|
|
1063
|
-
const step = (i2) => new Promise((
|
|
1158
|
+
const step = (i2) => new Promise((resolve18, reject) => {
|
|
1064
1159
|
if (i2 === pathEnv.length)
|
|
1065
|
-
return opt.all && found.length ?
|
|
1160
|
+
return opt.all && found.length ? resolve18(found) : reject(getNotFoundError(cmd));
|
|
1066
1161
|
const ppRaw = pathEnv[i2];
|
|
1067
1162
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
1068
1163
|
const pCmd = path12.join(pathPart, cmd);
|
|
1069
1164
|
const p2 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
1070
|
-
|
|
1165
|
+
resolve18(subStep(p2, i2, 0));
|
|
1071
1166
|
});
|
|
1072
|
-
const subStep = (p2, i2, ii) => new Promise((
|
|
1167
|
+
const subStep = (p2, i2, ii) => new Promise((resolve18, reject) => {
|
|
1073
1168
|
if (ii === pathExt.length)
|
|
1074
|
-
return
|
|
1169
|
+
return resolve18(step(i2 + 1));
|
|
1075
1170
|
const ext = pathExt[ii];
|
|
1076
1171
|
isexe(p2 + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
1077
1172
|
if (!er && is) {
|
|
1078
1173
|
if (opt.all)
|
|
1079
1174
|
found.push(p2 + ext);
|
|
1080
1175
|
else
|
|
1081
|
-
return
|
|
1176
|
+
return resolve18(p2 + ext);
|
|
1082
1177
|
}
|
|
1083
|
-
return
|
|
1178
|
+
return resolve18(subStep(p2, i2, ii + 1));
|
|
1084
1179
|
});
|
|
1085
1180
|
});
|
|
1086
1181
|
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
@@ -1458,10 +1553,10 @@ var init_npm_run_path = __esm({
|
|
|
1458
1553
|
}
|
|
1459
1554
|
});
|
|
1460
1555
|
|
|
1461
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1556
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/return/final-error.js
|
|
1462
1557
|
var getFinalError, DiscardedError, setErrorName, isExecaError, execaErrorSymbol, isErrorInstance, ExecaError, ExecaSyncError;
|
|
1463
1558
|
var init_final_error = __esm({
|
|
1464
|
-
"../../node_modules/.pnpm/execa@9.
|
|
1559
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/return/final-error.js"() {
|
|
1465
1560
|
"use strict";
|
|
1466
1561
|
getFinalError = (originalError, message, isSync) => {
|
|
1467
1562
|
const ErrorClass = isSync ? ExecaSyncError : ExecaError;
|
|
@@ -1887,10 +1982,10 @@ var init_main = __esm({
|
|
|
1887
1982
|
}
|
|
1888
1983
|
});
|
|
1889
1984
|
|
|
1890
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
1985
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/signal.js
|
|
1891
1986
|
var import_node_os3, normalizeKillSignal, normalizeSignalArgument, normalizeSignal2, normalizeSignalInteger, getSignalsIntegerToName, signalsIntegerToName, normalizeSignalName, getAvailableSignals, getAvailableSignalNames, getAvailableSignalIntegers, getSignalDescription;
|
|
1892
1987
|
var init_signal = __esm({
|
|
1893
|
-
"../../node_modules/.pnpm/execa@9.
|
|
1988
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/signal.js"() {
|
|
1894
1989
|
"use strict";
|
|
1895
1990
|
import_node_os3 = require("os");
|
|
1896
1991
|
init_main();
|
|
@@ -1939,10 +2034,10 @@ Available signal numbers: ${getAvailableSignalIntegers()}.`;
|
|
|
1939
2034
|
}
|
|
1940
2035
|
});
|
|
1941
2036
|
|
|
1942
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2037
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/kill.js
|
|
1943
2038
|
var import_promises, normalizeForceKillAfterDelay, DEFAULT_FORCE_KILL_TIMEOUT, subprocessKill, parseKillArguments, emitKillError, setKillTimeout, killOnTimeout;
|
|
1944
2039
|
var init_kill = __esm({
|
|
1945
|
-
"../../node_modules/.pnpm/execa@9.
|
|
2040
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/kill.js"() {
|
|
1946
2041
|
"use strict";
|
|
1947
2042
|
import_promises = require("timers/promises");
|
|
1948
2043
|
init_final_error();
|
|
@@ -2015,10 +2110,10 @@ var init_kill = __esm({
|
|
|
2015
2110
|
}
|
|
2016
2111
|
});
|
|
2017
2112
|
|
|
2018
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2113
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/utils/abort-signal.js
|
|
2019
2114
|
var import_node_events, onAbortedSignal;
|
|
2020
2115
|
var init_abort_signal = __esm({
|
|
2021
|
-
"../../node_modules/.pnpm/execa@9.
|
|
2116
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/utils/abort-signal.js"() {
|
|
2022
2117
|
"use strict";
|
|
2023
2118
|
import_node_events = require("events");
|
|
2024
2119
|
onAbortedSignal = async (mainSignal, stopSignal) => {
|
|
@@ -2029,10 +2124,10 @@ var init_abort_signal = __esm({
|
|
|
2029
2124
|
}
|
|
2030
2125
|
});
|
|
2031
2126
|
|
|
2032
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2127
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/cancel.js
|
|
2033
2128
|
var validateCancelSignal, throwOnCancel, terminateOnCancel;
|
|
2034
2129
|
var init_cancel = __esm({
|
|
2035
|
-
"../../node_modules/.pnpm/execa@9.
|
|
2130
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/cancel.js"() {
|
|
2036
2131
|
"use strict";
|
|
2037
2132
|
init_abort_signal();
|
|
2038
2133
|
validateCancelSignal = ({ cancelSignal }) => {
|
|
@@ -2050,10 +2145,10 @@ var init_cancel = __esm({
|
|
|
2050
2145
|
}
|
|
2051
2146
|
});
|
|
2052
2147
|
|
|
2053
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2148
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/validation.js
|
|
2054
2149
|
var validateIpcMethod, validateIpcOption, validateConnection, throwOnEarlyDisconnect, throwOnStrictDeadlockError, getStrictResponseError, throwOnMissingStrict, throwOnStrictDisconnect, getAbortDisconnectError, throwOnMissingParent, handleEpipeError, handleSerializationError, isSerializationError, SERIALIZATION_ERROR_CODES, SERIALIZATION_ERROR_MESSAGES, getMethodName, getNamespaceName, getOtherProcessName, disconnect;
|
|
2055
2150
|
var init_validation = __esm({
|
|
2056
|
-
"../../node_modules/.pnpm/execa@9.
|
|
2151
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/validation.js"() {
|
|
2057
2152
|
"use strict";
|
|
2058
2153
|
validateIpcMethod = ({ methodName, isSubprocess, ipc, isConnected: isConnected2 }) => {
|
|
2059
2154
|
validateIpcOption(methodName, isSubprocess, ipc);
|
|
@@ -2128,25 +2223,25 @@ const [receivedMessage] = await Promise.all([
|
|
|
2128
2223
|
}
|
|
2129
2224
|
});
|
|
2130
2225
|
|
|
2131
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2226
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/utils/deferred.js
|
|
2132
2227
|
var createDeferred;
|
|
2133
2228
|
var init_deferred = __esm({
|
|
2134
|
-
"../../node_modules/.pnpm/execa@9.
|
|
2229
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/utils/deferred.js"() {
|
|
2135
2230
|
"use strict";
|
|
2136
2231
|
createDeferred = () => {
|
|
2137
2232
|
const methods = {};
|
|
2138
|
-
const promise = new Promise((
|
|
2139
|
-
Object.assign(methods, { resolve:
|
|
2233
|
+
const promise = new Promise((resolve18, reject) => {
|
|
2234
|
+
Object.assign(methods, { resolve: resolve18, reject });
|
|
2140
2235
|
});
|
|
2141
2236
|
return Object.assign(promise, methods);
|
|
2142
2237
|
};
|
|
2143
2238
|
}
|
|
2144
2239
|
});
|
|
2145
2240
|
|
|
2146
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2241
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/fd-options.js
|
|
2147
2242
|
var getToStream, getFromStream, SUBPROCESS_OPTIONS, getFdNumber, parseFdNumber, validateFdNumber, getInvalidStdioOptionMessage, getInvalidStdioOption, getUsedDescriptor, getOptionName, serializeOptionValue;
|
|
2148
2243
|
var init_fd_options = __esm({
|
|
2149
|
-
"../../node_modules/.pnpm/execa@9.
|
|
2244
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/fd-options.js"() {
|
|
2150
2245
|
"use strict";
|
|
2151
2246
|
init_specific();
|
|
2152
2247
|
getToStream = (destination, to = "stdin") => {
|
|
@@ -2230,10 +2325,10 @@ Please set this option with "pipe" instead.`;
|
|
|
2230
2325
|
}
|
|
2231
2326
|
});
|
|
2232
2327
|
|
|
2233
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2328
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/utils/max-listeners.js
|
|
2234
2329
|
var import_node_events2, incrementMaxListeners;
|
|
2235
2330
|
var init_max_listeners = __esm({
|
|
2236
|
-
"../../node_modules/.pnpm/execa@9.
|
|
2331
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/utils/max-listeners.js"() {
|
|
2237
2332
|
"use strict";
|
|
2238
2333
|
import_node_events2 = require("events");
|
|
2239
2334
|
incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
|
|
@@ -2249,10 +2344,10 @@ var init_max_listeners = __esm({
|
|
|
2249
2344
|
}
|
|
2250
2345
|
});
|
|
2251
2346
|
|
|
2252
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2347
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/reference.js
|
|
2253
2348
|
var addReference, addReferenceCount, removeReference, removeReferenceCount, undoAddedReferences, redoAddedReferences;
|
|
2254
2349
|
var init_reference = __esm({
|
|
2255
|
-
"../../node_modules/.pnpm/execa@9.
|
|
2350
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/reference.js"() {
|
|
2256
2351
|
"use strict";
|
|
2257
2352
|
addReference = (channel, reference) => {
|
|
2258
2353
|
if (reference) {
|
|
@@ -2285,10 +2380,10 @@ var init_reference = __esm({
|
|
|
2285
2380
|
}
|
|
2286
2381
|
});
|
|
2287
2382
|
|
|
2288
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2383
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/incoming.js
|
|
2289
2384
|
var import_node_events3, import_promises2, onMessage, onDisconnect, INCOMING_MESSAGES;
|
|
2290
2385
|
var init_incoming = __esm({
|
|
2291
|
-
"../../node_modules/.pnpm/execa@9.
|
|
2386
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/incoming.js"() {
|
|
2292
2387
|
"use strict";
|
|
2293
2388
|
import_node_events3 = require("events");
|
|
2294
2389
|
import_promises2 = require("timers/promises");
|
|
@@ -2338,10 +2433,10 @@ var init_incoming = __esm({
|
|
|
2338
2433
|
}
|
|
2339
2434
|
});
|
|
2340
2435
|
|
|
2341
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2436
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/forward.js
|
|
2342
2437
|
var import_node_events4, getIpcEmitter, IPC_EMITTERS, forwardEvents, isConnected;
|
|
2343
2438
|
var init_forward = __esm({
|
|
2344
|
-
"../../node_modules/.pnpm/execa@9.
|
|
2439
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/forward.js"() {
|
|
2345
2440
|
"use strict";
|
|
2346
2441
|
import_node_events4 = require("events");
|
|
2347
2442
|
init_incoming();
|
|
@@ -2386,10 +2481,10 @@ var init_forward = __esm({
|
|
|
2386
2481
|
}
|
|
2387
2482
|
});
|
|
2388
2483
|
|
|
2389
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2484
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/strict.js
|
|
2390
2485
|
var import_node_events5, handleSendStrict, count, validateStrictDeadlock, handleStrictRequest, handleStrictResponse, waitForStrictResponse, STRICT_RESPONSES, throwOnDisconnect, REQUEST_TYPE, RESPONSE_TYPE;
|
|
2391
2486
|
var init_strict = __esm({
|
|
2392
|
-
"../../node_modules/.pnpm/execa@9.
|
|
2487
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/strict.js"() {
|
|
2393
2488
|
"use strict";
|
|
2394
2489
|
import_node_events5 = require("events");
|
|
2395
2490
|
init_deferred();
|
|
@@ -2482,12 +2577,13 @@ var init_strict = __esm({
|
|
|
2482
2577
|
}
|
|
2483
2578
|
});
|
|
2484
2579
|
|
|
2485
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2580
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/outgoing.js
|
|
2486
2581
|
var startSendMessage, endSendMessage, waitForOutgoingMessages, OUTGOING_MESSAGES, hasMessageListeners, getMinListenerCount;
|
|
2487
2582
|
var init_outgoing = __esm({
|
|
2488
|
-
"../../node_modules/.pnpm/execa@9.
|
|
2583
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/outgoing.js"() {
|
|
2489
2584
|
"use strict";
|
|
2490
2585
|
init_deferred();
|
|
2586
|
+
init_specific();
|
|
2491
2587
|
init_fd_options();
|
|
2492
2588
|
init_strict();
|
|
2493
2589
|
startSendMessage = (anyProcess, wrappedMessage, strict) => {
|
|
@@ -2514,14 +2610,14 @@ var init_outgoing = __esm({
|
|
|
2514
2610
|
};
|
|
2515
2611
|
OUTGOING_MESSAGES = /* @__PURE__ */ new WeakMap();
|
|
2516
2612
|
hasMessageListeners = (anyProcess, ipcEmitter) => ipcEmitter.listenerCount("message") > getMinListenerCount(anyProcess);
|
|
2517
|
-
getMinListenerCount = (anyProcess) => SUBPROCESS_OPTIONS.has(anyProcess) && !SUBPROCESS_OPTIONS.get(anyProcess).options.buffer
|
|
2613
|
+
getMinListenerCount = (anyProcess) => SUBPROCESS_OPTIONS.has(anyProcess) && !getFdSpecificValue(SUBPROCESS_OPTIONS.get(anyProcess).options.buffer, "ipc") ? 1 : 0;
|
|
2518
2614
|
}
|
|
2519
2615
|
});
|
|
2520
2616
|
|
|
2521
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2617
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/send.js
|
|
2522
2618
|
var import_node_util4, sendMessage, sendMessageAsync, sendOneMessage, getSendMethod, PROCESS_SEND_METHODS;
|
|
2523
2619
|
var init_send = __esm({
|
|
2524
|
-
"../../node_modules/.pnpm/execa@9.
|
|
2620
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/send.js"() {
|
|
2525
2621
|
"use strict";
|
|
2526
2622
|
import_node_util4 = require("util");
|
|
2527
2623
|
init_validation();
|
|
@@ -2598,10 +2694,10 @@ var init_send = __esm({
|
|
|
2598
2694
|
}
|
|
2599
2695
|
});
|
|
2600
2696
|
|
|
2601
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2697
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/graceful.js
|
|
2602
2698
|
var import_promises3, sendAbort, getCancelSignal, startIpc, cancelListening, handleAbort, GRACEFUL_CANCEL_TYPE, abortOnDisconnect, cancelController;
|
|
2603
2699
|
var init_graceful = __esm({
|
|
2604
|
-
"../../node_modules/.pnpm/execa@9.
|
|
2700
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/graceful.js"() {
|
|
2605
2701
|
"use strict";
|
|
2606
2702
|
import_promises3 = require("timers/promises");
|
|
2607
2703
|
init_send();
|
|
@@ -2659,10 +2755,10 @@ var init_graceful = __esm({
|
|
|
2659
2755
|
}
|
|
2660
2756
|
});
|
|
2661
2757
|
|
|
2662
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2758
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/graceful.js
|
|
2663
2759
|
var validateGracefulCancel, throwOnGracefulCancel, sendOnAbort, getReason;
|
|
2664
2760
|
var init_graceful2 = __esm({
|
|
2665
|
-
"../../node_modules/.pnpm/execa@9.
|
|
2761
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/graceful.js"() {
|
|
2666
2762
|
"use strict";
|
|
2667
2763
|
init_abort_signal();
|
|
2668
2764
|
init_graceful();
|
|
@@ -2724,10 +2820,10 @@ var init_graceful2 = __esm({
|
|
|
2724
2820
|
}
|
|
2725
2821
|
});
|
|
2726
2822
|
|
|
2727
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2823
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/timeout.js
|
|
2728
2824
|
var import_promises4, validateTimeout, throwOnTimeout, killAfterTimeout;
|
|
2729
2825
|
var init_timeout = __esm({
|
|
2730
|
-
"../../node_modules/.pnpm/execa@9.
|
|
2826
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/timeout.js"() {
|
|
2731
2827
|
"use strict";
|
|
2732
2828
|
import_promises4 = require("timers/promises");
|
|
2733
2829
|
init_final_error();
|
|
@@ -2746,10 +2842,10 @@ var init_timeout = __esm({
|
|
|
2746
2842
|
}
|
|
2747
2843
|
});
|
|
2748
2844
|
|
|
2749
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2845
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/node.js
|
|
2750
2846
|
var import_node_process6, import_node_path3, mapNode, handleNodeOption;
|
|
2751
2847
|
var init_node = __esm({
|
|
2752
|
-
"../../node_modules/.pnpm/execa@9.
|
|
2848
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/node.js"() {
|
|
2753
2849
|
"use strict";
|
|
2754
2850
|
import_node_process6 = require("process");
|
|
2755
2851
|
import_node_path3 = require("path");
|
|
@@ -2794,10 +2890,10 @@ var init_node = __esm({
|
|
|
2794
2890
|
}
|
|
2795
2891
|
});
|
|
2796
2892
|
|
|
2797
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2893
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/ipc-input.js
|
|
2798
2894
|
var import_node_v8, validateIpcInputOption, validateAdvancedInput, validateJsonInput, validateIpcInput, sendIpcInput;
|
|
2799
2895
|
var init_ipc_input = __esm({
|
|
2800
|
-
"../../node_modules/.pnpm/execa@9.
|
|
2896
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/ipc-input.js"() {
|
|
2801
2897
|
"use strict";
|
|
2802
2898
|
import_node_v8 = require("v8");
|
|
2803
2899
|
validateIpcInputOption = ({ ipcInput, ipc, serialization }) => {
|
|
@@ -2836,10 +2932,10 @@ var init_ipc_input = __esm({
|
|
|
2836
2932
|
}
|
|
2837
2933
|
});
|
|
2838
2934
|
|
|
2839
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2935
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/encoding-option.js
|
|
2840
2936
|
var validateEncoding, TEXT_ENCODINGS, BINARY_ENCODINGS, ENCODINGS, getCorrectEncoding, ENCODING_ALIASES, serializeEncoding;
|
|
2841
2937
|
var init_encoding_option = __esm({
|
|
2842
|
-
"../../node_modules/.pnpm/execa@9.
|
|
2938
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/encoding-option.js"() {
|
|
2843
2939
|
"use strict";
|
|
2844
2940
|
validateEncoding = ({ encoding }) => {
|
|
2845
2941
|
if (ENCODINGS.has(encoding)) {
|
|
@@ -2884,10 +2980,10 @@ Please rename it to one of: ${correctEncodings}.`);
|
|
|
2884
2980
|
}
|
|
2885
2981
|
});
|
|
2886
2982
|
|
|
2887
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
2983
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/cwd.js
|
|
2888
2984
|
var import_node_fs2, import_node_path4, import_node_process7, normalizeCwd, getDefaultCwd, fixCwdError;
|
|
2889
2985
|
var init_cwd = __esm({
|
|
2890
|
-
"../../node_modules/.pnpm/execa@9.
|
|
2986
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/cwd.js"() {
|
|
2891
2987
|
"use strict";
|
|
2892
2988
|
import_node_fs2 = require("fs");
|
|
2893
2989
|
import_node_path4 = require("path");
|
|
@@ -2927,10 +3023,10 @@ ${originalMessage}`;
|
|
|
2927
3023
|
}
|
|
2928
3024
|
});
|
|
2929
3025
|
|
|
2930
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
3026
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/options.js
|
|
2931
3027
|
var import_node_path5, import_node_process8, import_cross_spawn, normalizeOptions, addDefaultOptions, getEnv;
|
|
2932
3028
|
var init_options = __esm({
|
|
2933
|
-
"../../node_modules/.pnpm/execa@9.
|
|
3029
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/arguments/options.js"() {
|
|
2934
3030
|
"use strict";
|
|
2935
3031
|
import_node_path5 = require("path");
|
|
2936
3032
|
import_node_process8 = __toESM(require("process"), 1);
|
|
@@ -3501,13 +3597,14 @@ var init_source = __esm({
|
|
|
3501
3597
|
}
|
|
3502
3598
|
});
|
|
3503
3599
|
|
|
3504
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
3600
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/max-buffer.js
|
|
3505
3601
|
var handleMaxBuffer, getMaxBufferUnit, checkIpcMaxBuffer, getMaxBufferMessage, getMaxBufferInfo, isMaxBufferSync, truncateMaxBufferSync, getMaxBufferSync;
|
|
3506
3602
|
var init_max_buffer = __esm({
|
|
3507
|
-
"../../node_modules/.pnpm/execa@9.
|
|
3603
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/max-buffer.js"() {
|
|
3508
3604
|
"use strict";
|
|
3509
3605
|
init_source();
|
|
3510
3606
|
init_standard_stream();
|
|
3607
|
+
init_specific();
|
|
3511
3608
|
handleMaxBuffer = ({ error, stream, readableObjectMode, lines, encoding, fdNumber }) => {
|
|
3512
3609
|
if (!(error instanceof MaxBufferError)) {
|
|
3513
3610
|
throw error;
|
|
@@ -3550,10 +3647,11 @@ var init_max_buffer = __esm({
|
|
|
3550
3647
|
}
|
|
3551
3648
|
const { maxBufferInfo: { fdNumber, unit } } = error;
|
|
3552
3649
|
delete error.maxBufferInfo;
|
|
3650
|
+
const threshold = getFdSpecificValue(maxBuffer, fdNumber);
|
|
3553
3651
|
if (fdNumber === "ipc") {
|
|
3554
|
-
return { streamName: "IPC output", threshold
|
|
3652
|
+
return { streamName: "IPC output", threshold, unit: "messages" };
|
|
3555
3653
|
}
|
|
3556
|
-
return { streamName: getStreamName(fdNumber), threshold
|
|
3654
|
+
return { streamName: getStreamName(fdNumber), threshold, unit };
|
|
3557
3655
|
};
|
|
3558
3656
|
isMaxBufferSync = (resultError, output, maxBuffer) => resultError?.code === "ENOBUFS" && output !== null && output.some((result) => result !== null && result.length > getMaxBufferSync(maxBuffer));
|
|
3559
3657
|
truncateMaxBufferSync = (result, isMaxBuffer, maxBuffer) => {
|
|
@@ -3567,10 +3665,10 @@ var init_max_buffer = __esm({
|
|
|
3567
3665
|
}
|
|
3568
3666
|
});
|
|
3569
3667
|
|
|
3570
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
3668
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/return/message.js
|
|
3571
3669
|
var import_node_util5, createMessages, getErrorPrefix, getForcefulSuffix, getOriginalMessage, serializeIpcMessage, serializeMessagePart, serializeMessageItem;
|
|
3572
3670
|
var init_message = __esm({
|
|
3573
|
-
"../../node_modules/.pnpm/execa@9.
|
|
3671
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/return/message.js"() {
|
|
3574
3672
|
"use strict";
|
|
3575
3673
|
import_node_util5 = require("util");
|
|
3576
3674
|
init_strip_final_newline();
|
|
@@ -3699,10 +3797,10 @@ ${originalMessage}`;
|
|
|
3699
3797
|
}
|
|
3700
3798
|
});
|
|
3701
3799
|
|
|
3702
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
3800
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/return/result.js
|
|
3703
3801
|
var makeSuccessResult, makeEarlyError, makeError, getErrorProperties, omitUndefinedProperties, normalizeExitPayload;
|
|
3704
3802
|
var init_result = __esm({
|
|
3705
|
-
"../../node_modules/.pnpm/execa@9.
|
|
3803
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/return/result.js"() {
|
|
3706
3804
|
"use strict";
|
|
3707
3805
|
init_signal();
|
|
3708
3806
|
init_duration();
|
|
@@ -4021,88 +4119,61 @@ var init_pretty_ms = __esm({
|
|
|
4021
4119
|
}
|
|
4022
4120
|
});
|
|
4023
4121
|
|
|
4024
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4122
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/error.js
|
|
4025
4123
|
var logError;
|
|
4026
4124
|
var init_error = __esm({
|
|
4027
|
-
"../../node_modules/.pnpm/execa@9.
|
|
4125
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/error.js"() {
|
|
4028
4126
|
"use strict";
|
|
4029
|
-
init_yoctocolors();
|
|
4030
4127
|
init_log();
|
|
4031
|
-
logError = (
|
|
4032
|
-
if (
|
|
4033
|
-
|
|
4128
|
+
logError = (result, verboseInfo) => {
|
|
4129
|
+
if (result.failed) {
|
|
4130
|
+
verboseLog({
|
|
4131
|
+
type: "error",
|
|
4132
|
+
verboseMessage: result.shortMessage,
|
|
4133
|
+
verboseInfo,
|
|
4134
|
+
result
|
|
4135
|
+
});
|
|
4034
4136
|
}
|
|
4035
|
-
const color = reject ? redBright : yellowBright;
|
|
4036
|
-
verboseLog(message, verboseId, icon, color);
|
|
4037
4137
|
};
|
|
4038
4138
|
}
|
|
4039
4139
|
});
|
|
4040
4140
|
|
|
4041
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4042
|
-
var
|
|
4141
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/complete.js
|
|
4142
|
+
var logResult, logDuration;
|
|
4043
4143
|
var init_complete = __esm({
|
|
4044
|
-
"../../node_modules/.pnpm/execa@9.
|
|
4144
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/complete.js"() {
|
|
4045
4145
|
"use strict";
|
|
4046
4146
|
init_pretty_ms();
|
|
4047
|
-
|
|
4048
|
-
init_escape();
|
|
4049
|
-
init_duration();
|
|
4050
|
-
init_info();
|
|
4147
|
+
init_values();
|
|
4051
4148
|
init_log();
|
|
4052
4149
|
init_error();
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
message: shortMessage,
|
|
4056
|
-
failed,
|
|
4057
|
-
reject,
|
|
4058
|
-
durationMs,
|
|
4059
|
-
verboseInfo
|
|
4060
|
-
});
|
|
4061
|
-
};
|
|
4062
|
-
logEarlyResult = (error, startTime, verboseInfo) => {
|
|
4063
|
-
logResult({
|
|
4064
|
-
message: escapeLines(String(error)),
|
|
4065
|
-
failed: true,
|
|
4066
|
-
reject: true,
|
|
4067
|
-
durationMs: getDurationMs(startTime),
|
|
4068
|
-
verboseInfo
|
|
4069
|
-
});
|
|
4070
|
-
};
|
|
4071
|
-
logResult = ({ message, failed, reject, durationMs, verboseInfo: { verbose, verboseId } }) => {
|
|
4072
|
-
if (!isVerbose(verbose)) {
|
|
4150
|
+
logResult = (result, verboseInfo) => {
|
|
4151
|
+
if (!isVerbose(verboseInfo)) {
|
|
4073
4152
|
return;
|
|
4074
4153
|
}
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
message,
|
|
4078
|
-
failed,
|
|
4079
|
-
reject,
|
|
4080
|
-
verboseId,
|
|
4081
|
-
icon
|
|
4082
|
-
});
|
|
4083
|
-
logDuration(durationMs, verboseId, icon);
|
|
4154
|
+
logError(result, verboseInfo);
|
|
4155
|
+
logDuration(result, verboseInfo);
|
|
4084
4156
|
};
|
|
4085
|
-
logDuration = (
|
|
4086
|
-
const
|
|
4087
|
-
verboseLog(
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
}
|
|
4093
|
-
return reject ? "error" : "warning";
|
|
4157
|
+
logDuration = (result, verboseInfo) => {
|
|
4158
|
+
const verboseMessage = `(done in ${prettyMilliseconds(result.durationMs)})`;
|
|
4159
|
+
verboseLog({
|
|
4160
|
+
type: "duration",
|
|
4161
|
+
verboseMessage,
|
|
4162
|
+
verboseInfo,
|
|
4163
|
+
result
|
|
4164
|
+
});
|
|
4094
4165
|
};
|
|
4095
4166
|
}
|
|
4096
4167
|
});
|
|
4097
4168
|
|
|
4098
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4169
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/return/reject.js
|
|
4099
4170
|
var handleResult;
|
|
4100
4171
|
var init_reject = __esm({
|
|
4101
|
-
"../../node_modules/.pnpm/execa@9.
|
|
4172
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/return/reject.js"() {
|
|
4102
4173
|
"use strict";
|
|
4103
4174
|
init_complete();
|
|
4104
4175
|
handleResult = (result, verboseInfo, { reject }) => {
|
|
4105
|
-
|
|
4176
|
+
logResult(result, verboseInfo);
|
|
4106
4177
|
if (result.failed && reject) {
|
|
4107
4178
|
throw result;
|
|
4108
4179
|
}
|
|
@@ -4111,10 +4182,10 @@ var init_reject = __esm({
|
|
|
4111
4182
|
}
|
|
4112
4183
|
});
|
|
4113
4184
|
|
|
4114
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4185
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/type.js
|
|
4115
4186
|
var getStdioItemType, getTransformObjectType, getDuplexType, getTransformStreamType, validateNonGeneratorType, checkUndefinedOption, getGeneratorObjectType, checkBooleanOption, isGenerator, isAsyncGenerator, isSyncGenerator, isTransformOptions, isUrl, isRegularUrl, isFilePathObject, isFilePathString, isUnknownStdioString, KNOWN_STDIO_STRINGS, isReadableStream2, isWritableStream2, isWebStream, isTransformStream, isAsyncIterableObject, isIterableObject, isObject, TRANSFORM_TYPES, FILE_TYPES, SPECIAL_DUPLICATE_TYPES_SYNC, SPECIAL_DUPLICATE_TYPES, FORBID_DUPLICATE_TYPES, TYPE_TO_MESSAGE;
|
|
4116
4187
|
var init_type = __esm({
|
|
4117
|
-
"../../node_modules/.pnpm/execa@9.
|
|
4188
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/type.js"() {
|
|
4118
4189
|
"use strict";
|
|
4119
4190
|
init_is_stream();
|
|
4120
4191
|
init_is_plain_obj();
|
|
@@ -4245,10 +4316,10 @@ var init_type = __esm({
|
|
|
4245
4316
|
}
|
|
4246
4317
|
});
|
|
4247
4318
|
|
|
4248
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4319
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/object-mode.js
|
|
4249
4320
|
var getTransformObjectModes, getOutputObjectModes, getInputObjectModes, getFdObjectMode;
|
|
4250
4321
|
var init_object_mode = __esm({
|
|
4251
|
-
"../../node_modules/.pnpm/execa@9.
|
|
4322
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/object-mode.js"() {
|
|
4252
4323
|
"use strict";
|
|
4253
4324
|
init_type();
|
|
4254
4325
|
getTransformObjectModes = (objectMode, index, newTransforms, direction) => direction === "output" ? getOutputObjectModes(objectMode, index, newTransforms) : getInputObjectModes(objectMode, index, newTransforms);
|
|
@@ -4272,10 +4343,10 @@ var init_object_mode = __esm({
|
|
|
4272
4343
|
}
|
|
4273
4344
|
});
|
|
4274
4345
|
|
|
4275
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4346
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/normalize.js
|
|
4276
4347
|
var normalizeTransforms, getTransforms, normalizeTransform, normalizeDuplex, normalizeTransformStream, normalizeGenerator, sortTransforms;
|
|
4277
4348
|
var init_normalize = __esm({
|
|
4278
|
-
"../../node_modules/.pnpm/execa@9.
|
|
4349
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/normalize.js"() {
|
|
4279
4350
|
"use strict";
|
|
4280
4351
|
init_is_plain_obj();
|
|
4281
4352
|
init_encoding_option();
|
|
@@ -4376,10 +4447,10 @@ var init_normalize = __esm({
|
|
|
4376
4447
|
}
|
|
4377
4448
|
});
|
|
4378
4449
|
|
|
4379
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4450
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/direction.js
|
|
4380
4451
|
var import_node_process9, getStreamDirection, getStdioItemDirection, KNOWN_DIRECTIONS, anyDirection, alwaysInput, guessStreamDirection, getStandardStreamDirection, DEFAULT_DIRECTION;
|
|
4381
4452
|
var init_direction = __esm({
|
|
4382
|
-
"../../node_modules/.pnpm/execa@9.
|
|
4453
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/direction.js"() {
|
|
4383
4454
|
"use strict";
|
|
4384
4455
|
import_node_process9 = __toESM(require("process"), 1);
|
|
4385
4456
|
init_is_stream();
|
|
@@ -4434,25 +4505,26 @@ var init_direction = __esm({
|
|
|
4434
4505
|
}
|
|
4435
4506
|
});
|
|
4436
4507
|
|
|
4437
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4508
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/array.js
|
|
4438
4509
|
var normalizeIpcStdioArray;
|
|
4439
4510
|
var init_array2 = __esm({
|
|
4440
|
-
"../../node_modules/.pnpm/execa@9.
|
|
4511
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/array.js"() {
|
|
4441
4512
|
"use strict";
|
|
4442
4513
|
normalizeIpcStdioArray = (stdioArray, ipc) => ipc && !stdioArray.includes("ipc") ? [...stdioArray, "ipc"] : stdioArray;
|
|
4443
4514
|
}
|
|
4444
4515
|
});
|
|
4445
4516
|
|
|
4446
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4517
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/stdio-option.js
|
|
4447
4518
|
var normalizeStdioOption, getStdioArray, hasAlias, addDefaultValue2, normalizeStdioSync, isOutputPipeOnly;
|
|
4448
4519
|
var init_stdio_option = __esm({
|
|
4449
|
-
"../../node_modules/.pnpm/execa@9.
|
|
4520
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/stdio-option.js"() {
|
|
4450
4521
|
"use strict";
|
|
4451
4522
|
init_standard_stream();
|
|
4452
4523
|
init_array2();
|
|
4453
|
-
|
|
4524
|
+
init_values();
|
|
4525
|
+
normalizeStdioOption = ({ stdio, ipc, buffer, ...options }, verboseInfo, isSync) => {
|
|
4454
4526
|
const stdioArray = getStdioArray(stdio, options).map((stdioOption, fdNumber) => addDefaultValue2(stdioOption, fdNumber));
|
|
4455
|
-
return isSync ? normalizeStdioSync(stdioArray, buffer,
|
|
4527
|
+
return isSync ? normalizeStdioSync(stdioArray, buffer, verboseInfo) : normalizeIpcStdioArray(stdioArray, ipc);
|
|
4456
4528
|
};
|
|
4457
4529
|
getStdioArray = (stdio, options) => {
|
|
4458
4530
|
if (stdio === void 0) {
|
|
@@ -4480,15 +4552,15 @@ var init_stdio_option = __esm({
|
|
|
4480
4552
|
}
|
|
4481
4553
|
return stdioOption;
|
|
4482
4554
|
};
|
|
4483
|
-
normalizeStdioSync = (stdioArray, buffer,
|
|
4555
|
+
normalizeStdioSync = (stdioArray, buffer, verboseInfo) => stdioArray.map((stdioOption, fdNumber) => !buffer[fdNumber] && fdNumber !== 0 && !isFullVerbose(verboseInfo, fdNumber) && isOutputPipeOnly(stdioOption) ? "ignore" : stdioOption);
|
|
4484
4556
|
isOutputPipeOnly = (stdioOption) => stdioOption === "pipe" || Array.isArray(stdioOption) && stdioOption.every((item) => item === "pipe");
|
|
4485
4557
|
}
|
|
4486
4558
|
});
|
|
4487
4559
|
|
|
4488
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4560
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/native.js
|
|
4489
4561
|
var import_node_fs3, import_node_tty2, handleNativeStream, handleNativeStreamSync, getTargetFd, getTargetFdNumber, handleNativeStreamAsync, getStandardStream;
|
|
4490
4562
|
var init_native = __esm({
|
|
4491
|
-
"../../node_modules/.pnpm/execa@9.
|
|
4563
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/native.js"() {
|
|
4492
4564
|
"use strict";
|
|
4493
4565
|
import_node_fs3 = require("fs");
|
|
4494
4566
|
import_node_tty2 = __toESM(require("tty"), 1);
|
|
@@ -4564,10 +4636,10 @@ var init_native = __esm({
|
|
|
4564
4636
|
}
|
|
4565
4637
|
});
|
|
4566
4638
|
|
|
4567
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4639
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/input-option.js
|
|
4568
4640
|
var handleInputOptions, handleInputOption, getInputType, handleInputFileOption, getInputFileType;
|
|
4569
4641
|
var init_input_option = __esm({
|
|
4570
|
-
"../../node_modules/.pnpm/execa@9.
|
|
4642
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/input-option.js"() {
|
|
4571
4643
|
"use strict";
|
|
4572
4644
|
init_is_stream();
|
|
4573
4645
|
init_uint_array();
|
|
@@ -4609,10 +4681,10 @@ var init_input_option = __esm({
|
|
|
4609
4681
|
}
|
|
4610
4682
|
});
|
|
4611
4683
|
|
|
4612
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4684
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/duplicate.js
|
|
4613
4685
|
var filterDuplicates, getDuplicateStream, getOtherStdioItems, validateDuplicateStreamSync, getDuplicateStreamInstance, hasSameValue, validateDuplicateTransform, throwOnDuplicateStream;
|
|
4614
4686
|
var init_duplicate = __esm({
|
|
4615
|
-
"../../node_modules/.pnpm/execa@9.
|
|
4687
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/duplicate.js"() {
|
|
4616
4688
|
"use strict";
|
|
4617
4689
|
init_type();
|
|
4618
4690
|
filterDuplicates = (stdioItems) => stdioItems.filter((stdioItemOne, indexOne) => stdioItems.every((stdioItemTwo, indexTwo) => stdioItemOne.value !== stdioItemTwo.value || indexOne >= indexTwo || stdioItemOne.type === "generator" || stdioItemOne.type === "asyncGenerator"));
|
|
@@ -4691,10 +4763,10 @@ var init_duplicate = __esm({
|
|
|
4691
4763
|
}
|
|
4692
4764
|
});
|
|
4693
4765
|
|
|
4694
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4766
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/handle.js
|
|
4695
4767
|
var handleStdio, getFileDescriptor, initializeStdioItems, initializeStdioItem, validateStdioArray, INVALID_STDIO_ARRAY_OPTIONS, validateStreams, validateFileStdio, validateFileObjectMode, getFinalFileDescriptors, getFinalFileDescriptor, addStreamProperties, cleanupCustomStreams, forwardStdio;
|
|
4696
4768
|
var init_handle = __esm({
|
|
4697
|
-
"../../node_modules/.pnpm/execa@9.
|
|
4769
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/handle.js"() {
|
|
4698
4770
|
"use strict";
|
|
4699
4771
|
init_standard_stream();
|
|
4700
4772
|
init_normalize();
|
|
@@ -4706,7 +4778,7 @@ var init_handle = __esm({
|
|
|
4706
4778
|
init_input_option();
|
|
4707
4779
|
init_duplicate();
|
|
4708
4780
|
handleStdio = (addProperties3, options, verboseInfo, isSync) => {
|
|
4709
|
-
const stdio = normalizeStdioOption(options, isSync);
|
|
4781
|
+
const stdio = normalizeStdioOption(options, verboseInfo, isSync);
|
|
4710
4782
|
const initialFileDescriptors = stdio.map((stdioOption, fdNumber) => getFileDescriptor({
|
|
4711
4783
|
stdioOption,
|
|
4712
4784
|
fdNumber,
|
|
@@ -4866,10 +4938,10 @@ For example, you can use the \`pathToFileURL()\` method of the \`url\` core modu
|
|
|
4866
4938
|
}
|
|
4867
4939
|
});
|
|
4868
4940
|
|
|
4869
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4941
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/handle-sync.js
|
|
4870
4942
|
var import_node_fs4, handleStdioSync, forbiddenIfSync, forbiddenNativeIfSync, throwInvalidSyncValue, addProperties, addPropertiesSync;
|
|
4871
4943
|
var init_handle_sync = __esm({
|
|
4872
|
-
"../../node_modules/.pnpm/execa@9.
|
|
4944
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/handle-sync.js"() {
|
|
4873
4945
|
"use strict";
|
|
4874
4946
|
import_node_fs4 = require("fs");
|
|
4875
4947
|
init_uint_array();
|
|
@@ -4922,10 +4994,10 @@ var init_handle_sync = __esm({
|
|
|
4922
4994
|
}
|
|
4923
4995
|
});
|
|
4924
4996
|
|
|
4925
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
4997
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/strip-newline.js
|
|
4926
4998
|
var stripNewline, getStripFinalNewline;
|
|
4927
4999
|
var init_strip_newline = __esm({
|
|
4928
|
-
"../../node_modules/.pnpm/execa@9.
|
|
5000
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/strip-newline.js"() {
|
|
4929
5001
|
"use strict";
|
|
4930
5002
|
init_strip_final_newline();
|
|
4931
5003
|
stripNewline = (value, { stripFinalNewline: stripFinalNewline2 }, fdNumber) => getStripFinalNewline(stripFinalNewline2, fdNumber) && value !== void 0 && !Array.isArray(value) ? stripFinalNewline(value) : value;
|
|
@@ -4933,10 +5005,10 @@ var init_strip_newline = __esm({
|
|
|
4933
5005
|
}
|
|
4934
5006
|
});
|
|
4935
5007
|
|
|
4936
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5008
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/split.js
|
|
4937
5009
|
var getSplitLinesGenerator, splitLinesSync, splitLinesItemSync, initializeSplitLines, splitGenerator, getNewlineLength, linesFinal, getAppendNewlineGenerator, appendNewlineGenerator, concatString, linesStringInfo, concatUint8Array, linesUint8ArrayInfo;
|
|
4938
5010
|
var init_split = __esm({
|
|
4939
|
-
"../../node_modules/.pnpm/execa@9.
|
|
5011
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/split.js"() {
|
|
4940
5012
|
"use strict";
|
|
4941
5013
|
getSplitLinesGenerator = (binary, preserveNewlines, skipped, state) => binary || skipped ? void 0 : initializeSplitLines(preserveNewlines, state);
|
|
4942
5014
|
splitLinesSync = (chunk, preserveNewlines, objectMode) => objectMode ? chunk.flatMap((item) => splitLinesItemSync(item, preserveNewlines)) : splitLinesItemSync(chunk, preserveNewlines);
|
|
@@ -5019,10 +5091,10 @@ var init_split = __esm({
|
|
|
5019
5091
|
}
|
|
5020
5092
|
});
|
|
5021
5093
|
|
|
5022
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5094
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/validate.js
|
|
5023
5095
|
var import_node_buffer, getValidateTransformInput, validateStringTransformInput, getValidateTransformReturn, validateObjectTransformReturn, validateStringTransformReturn, validateEmptyReturn;
|
|
5024
5096
|
var init_validate = __esm({
|
|
5025
|
-
"../../node_modules/.pnpm/execa@9.
|
|
5097
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/validate.js"() {
|
|
5026
5098
|
"use strict";
|
|
5027
5099
|
import_node_buffer = require("buffer");
|
|
5028
5100
|
init_uint_array();
|
|
@@ -5055,10 +5127,10 @@ Instead, \`yield\` should either be called with a value, or not be called at all
|
|
|
5055
5127
|
}
|
|
5056
5128
|
});
|
|
5057
5129
|
|
|
5058
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5130
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/encoding-transform.js
|
|
5059
5131
|
var import_node_buffer2, import_node_string_decoder2, getEncodingTransformGenerator, encodingUint8ArrayGenerator, encodingStringGenerator, encodingStringFinal;
|
|
5060
5132
|
var init_encoding_transform = __esm({
|
|
5061
|
-
"../../node_modules/.pnpm/execa@9.
|
|
5133
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/encoding-transform.js"() {
|
|
5062
5134
|
"use strict";
|
|
5063
5135
|
import_node_buffer2 = require("buffer");
|
|
5064
5136
|
import_node_string_decoder2 = require("string_decoder");
|
|
@@ -5097,10 +5169,10 @@ var init_encoding_transform = __esm({
|
|
|
5097
5169
|
}
|
|
5098
5170
|
});
|
|
5099
5171
|
|
|
5100
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5172
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/run-async.js
|
|
5101
5173
|
var import_node_util6, pushChunks, transformChunk, finalChunks, generatorFinalChunks, destroyTransform, identityGenerator;
|
|
5102
5174
|
var init_run_async = __esm({
|
|
5103
|
-
"../../node_modules/.pnpm/execa@9.
|
|
5175
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/run-async.js"() {
|
|
5104
5176
|
"use strict";
|
|
5105
5177
|
import_node_util6 = require("util");
|
|
5106
5178
|
pushChunks = (0, import_node_util6.callbackify)(async (getChunks, state, getChunksArguments, transformStream) => {
|
|
@@ -5151,10 +5223,10 @@ var init_run_async = __esm({
|
|
|
5151
5223
|
}
|
|
5152
5224
|
});
|
|
5153
5225
|
|
|
5154
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5226
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/run-sync.js
|
|
5155
5227
|
var pushChunksSync, runTransformSync, transformChunkSync, finalChunksSync, generatorFinalChunksSync, identityGenerator2;
|
|
5156
5228
|
var init_run_sync = __esm({
|
|
5157
|
-
"../../node_modules/.pnpm/execa@9.
|
|
5229
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/run-sync.js"() {
|
|
5158
5230
|
"use strict";
|
|
5159
5231
|
pushChunksSync = (getChunksSync, getChunksArguments, transformStream, done) => {
|
|
5160
5232
|
try {
|
|
@@ -5199,10 +5271,10 @@ var init_run_sync = __esm({
|
|
|
5199
5271
|
}
|
|
5200
5272
|
});
|
|
5201
5273
|
|
|
5202
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5274
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/generator.js
|
|
5203
5275
|
var import_node_stream, generatorToStream, runGeneratorsSync, addInternalGenerators;
|
|
5204
5276
|
var init_generator = __esm({
|
|
5205
|
-
"../../node_modules/.pnpm/execa@9.
|
|
5277
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/transform/generator.js"() {
|
|
5206
5278
|
"use strict";
|
|
5207
5279
|
import_node_stream = require("stream");
|
|
5208
5280
|
init_type();
|
|
@@ -5266,10 +5338,10 @@ var init_generator = __esm({
|
|
|
5266
5338
|
}
|
|
5267
5339
|
});
|
|
5268
5340
|
|
|
5269
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5341
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/input-sync.js
|
|
5270
5342
|
var addInputOptionsSync, getInputFdNumbers, addInputOptionSync, applySingleInputGeneratorsSync, validateSerializable;
|
|
5271
5343
|
var init_input_sync = __esm({
|
|
5272
|
-
"../../node_modules/.pnpm/execa@9.
|
|
5344
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/input-sync.js"() {
|
|
5273
5345
|
"use strict";
|
|
5274
5346
|
init_generator();
|
|
5275
5347
|
init_uint_array();
|
|
@@ -5308,40 +5380,47 @@ var init_input_sync = __esm({
|
|
|
5308
5380
|
}
|
|
5309
5381
|
});
|
|
5310
5382
|
|
|
5311
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5383
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/output.js
|
|
5312
5384
|
var shouldLogOutput, fdUsesVerbose, PIPED_STDIO_VALUES, logLines, logLinesSync, isPipingStream, logLine;
|
|
5313
5385
|
var init_output = __esm({
|
|
5314
|
-
"../../node_modules/.pnpm/execa@9.
|
|
5386
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/output.js"() {
|
|
5315
5387
|
"use strict";
|
|
5316
5388
|
init_encoding_option();
|
|
5317
5389
|
init_type();
|
|
5318
5390
|
init_log();
|
|
5319
|
-
|
|
5391
|
+
init_values();
|
|
5392
|
+
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)));
|
|
5320
5393
|
fdUsesVerbose = (fdNumber) => fdNumber === 1 || fdNumber === 2;
|
|
5321
5394
|
PIPED_STDIO_VALUES = /* @__PURE__ */ new Set(["pipe", "overlapped"]);
|
|
5322
|
-
logLines = async (linesIterable, stream, verboseInfo) => {
|
|
5395
|
+
logLines = async (linesIterable, stream, fdNumber, verboseInfo) => {
|
|
5323
5396
|
for await (const line of linesIterable) {
|
|
5324
5397
|
if (!isPipingStream(stream)) {
|
|
5325
|
-
logLine(line, verboseInfo);
|
|
5398
|
+
logLine(line, fdNumber, verboseInfo);
|
|
5326
5399
|
}
|
|
5327
5400
|
}
|
|
5328
5401
|
};
|
|
5329
|
-
logLinesSync = (linesArray, verboseInfo) => {
|
|
5402
|
+
logLinesSync = (linesArray, fdNumber, verboseInfo) => {
|
|
5330
5403
|
for (const line of linesArray) {
|
|
5331
|
-
logLine(line, verboseInfo);
|
|
5404
|
+
logLine(line, fdNumber, verboseInfo);
|
|
5332
5405
|
}
|
|
5333
5406
|
};
|
|
5334
5407
|
isPipingStream = (stream) => stream._readableState.pipes.length > 0;
|
|
5335
|
-
logLine = (line,
|
|
5336
|
-
|
|
5408
|
+
logLine = (line, fdNumber, verboseInfo) => {
|
|
5409
|
+
const verboseMessage = serializeVerboseMessage(line);
|
|
5410
|
+
verboseLog({
|
|
5411
|
+
type: "output",
|
|
5412
|
+
verboseMessage,
|
|
5413
|
+
fdNumber,
|
|
5414
|
+
verboseInfo
|
|
5415
|
+
});
|
|
5337
5416
|
};
|
|
5338
5417
|
}
|
|
5339
5418
|
});
|
|
5340
5419
|
|
|
5341
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5342
|
-
var import_node_fs5, transformOutputSync, transformOutputResultSync, runOutputGeneratorsSync, serializeChunks, writeToFiles;
|
|
5420
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/output-sync.js
|
|
5421
|
+
var import_node_fs5, transformOutputSync, transformOutputResultSync, runOutputGeneratorsSync, serializeChunks, logOutputSync, writeToFiles;
|
|
5343
5422
|
var init_output_sync = __esm({
|
|
5344
|
-
"../../node_modules/.pnpm/execa@9.
|
|
5423
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/output-sync.js"() {
|
|
5345
5424
|
"use strict";
|
|
5346
5425
|
import_node_fs5 = require("fs");
|
|
5347
5426
|
init_output();
|
|
@@ -5383,15 +5462,15 @@ var init_output_sync = __esm({
|
|
|
5383
5462
|
stripFinalNewline: stripFinalNewline2,
|
|
5384
5463
|
fdNumber
|
|
5385
5464
|
});
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5465
|
+
logOutputSync({
|
|
5466
|
+
serializedResult,
|
|
5467
|
+
fdNumber,
|
|
5468
|
+
state,
|
|
5389
5469
|
verboseInfo,
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
}
|
|
5470
|
+
encoding,
|
|
5471
|
+
stdioItems,
|
|
5472
|
+
objectMode
|
|
5473
|
+
});
|
|
5395
5474
|
const returnedResult = buffer[fdNumber] ? finalResult : void 0;
|
|
5396
5475
|
try {
|
|
5397
5476
|
if (state.error === void 0) {
|
|
@@ -5424,6 +5503,22 @@ var init_output_sync = __esm({
|
|
|
5424
5503
|
}
|
|
5425
5504
|
return { serializedResult };
|
|
5426
5505
|
};
|
|
5506
|
+
logOutputSync = ({ serializedResult, fdNumber, state, verboseInfo, encoding, stdioItems, objectMode }) => {
|
|
5507
|
+
if (!shouldLogOutput({
|
|
5508
|
+
stdioItems,
|
|
5509
|
+
encoding,
|
|
5510
|
+
verboseInfo,
|
|
5511
|
+
fdNumber
|
|
5512
|
+
})) {
|
|
5513
|
+
return;
|
|
5514
|
+
}
|
|
5515
|
+
const linesArray = splitLinesSync(serializedResult, false, objectMode);
|
|
5516
|
+
try {
|
|
5517
|
+
logLinesSync(linesArray, fdNumber, verboseInfo);
|
|
5518
|
+
} catch (error) {
|
|
5519
|
+
state.error ??= error;
|
|
5520
|
+
}
|
|
5521
|
+
};
|
|
5427
5522
|
writeToFiles = (serializedResult, stdioItems, outputFiles) => {
|
|
5428
5523
|
for (const { path: path12 } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
|
|
5429
5524
|
const pathString = typeof path12 === "string" ? path12 : path12.toString();
|
|
@@ -5438,10 +5533,10 @@ var init_output_sync = __esm({
|
|
|
5438
5533
|
}
|
|
5439
5534
|
});
|
|
5440
5535
|
|
|
5441
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5536
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/all-sync.js
|
|
5442
5537
|
var getAllSync;
|
|
5443
5538
|
var init_all_sync = __esm({
|
|
5444
|
-
"../../node_modules/.pnpm/execa@9.
|
|
5539
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/all-sync.js"() {
|
|
5445
5540
|
"use strict";
|
|
5446
5541
|
init_uint_array();
|
|
5447
5542
|
init_strip_newline();
|
|
@@ -5469,10 +5564,10 @@ var init_all_sync = __esm({
|
|
|
5469
5564
|
}
|
|
5470
5565
|
});
|
|
5471
5566
|
|
|
5472
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5567
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/exit-async.js
|
|
5473
5568
|
var import_node_events7, waitForExit, waitForExitOrError, waitForSubprocessExit, waitForSuccessfulExit, isSubprocessErrorExit, isFailedExit;
|
|
5474
5569
|
var init_exit_async = __esm({
|
|
5475
|
-
"../../node_modules/.pnpm/execa@9.
|
|
5570
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/exit-async.js"() {
|
|
5476
5571
|
"use strict";
|
|
5477
5572
|
import_node_events7 = require("events");
|
|
5478
5573
|
init_final_error();
|
|
@@ -5510,10 +5605,10 @@ var init_exit_async = __esm({
|
|
|
5510
5605
|
}
|
|
5511
5606
|
});
|
|
5512
5607
|
|
|
5513
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5608
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/exit-sync.js
|
|
5514
5609
|
var getExitResultSync, getResultError;
|
|
5515
5610
|
var init_exit_sync = __esm({
|
|
5516
|
-
"../../node_modules/.pnpm/execa@9.
|
|
5611
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/exit-sync.js"() {
|
|
5517
5612
|
"use strict";
|
|
5518
5613
|
init_final_error();
|
|
5519
5614
|
init_max_buffer();
|
|
@@ -5539,10 +5634,10 @@ var init_exit_sync = __esm({
|
|
|
5539
5634
|
}
|
|
5540
5635
|
});
|
|
5541
5636
|
|
|
5542
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5637
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/main-sync.js
|
|
5543
5638
|
var import_node_child_process2, execaCoreSync, handleSyncArguments, normalizeSyncOptions, validateSyncOptions, throwInvalidSyncOption, spawnSubprocessSync, runSubprocessSync, normalizeSpawnSyncOptions, getSyncResult;
|
|
5544
5639
|
var init_main_sync = __esm({
|
|
5545
|
-
"../../node_modules/.pnpm/execa@9.
|
|
5640
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/main-sync.js"() {
|
|
5546
5641
|
"use strict";
|
|
5547
5642
|
import_node_child_process2 = require("child_process");
|
|
5548
5643
|
init_command();
|
|
@@ -5554,7 +5649,6 @@ var init_main_sync = __esm({
|
|
|
5554
5649
|
init_input_sync();
|
|
5555
5650
|
init_output_sync();
|
|
5556
5651
|
init_max_buffer();
|
|
5557
|
-
init_complete();
|
|
5558
5652
|
init_all_sync();
|
|
5559
5653
|
init_exit_sync();
|
|
5560
5654
|
execaCoreSync = (rawFile, rawArguments, rawOptions) => {
|
|
@@ -5573,25 +5667,20 @@ var init_main_sync = __esm({
|
|
|
5573
5667
|
};
|
|
5574
5668
|
handleSyncArguments = (rawFile, rawArguments, rawOptions) => {
|
|
5575
5669
|
const { command, escapedCommand, startTime, verboseInfo } = handleCommand(rawFile, rawArguments, rawOptions);
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
};
|
|
5591
|
-
} catch (error) {
|
|
5592
|
-
logEarlyResult(error, startTime, verboseInfo);
|
|
5593
|
-
throw error;
|
|
5594
|
-
}
|
|
5670
|
+
const syncOptions = normalizeSyncOptions(rawOptions);
|
|
5671
|
+
const { file, commandArguments, options } = normalizeOptions(rawFile, rawArguments, syncOptions);
|
|
5672
|
+
validateSyncOptions(options);
|
|
5673
|
+
const fileDescriptors = handleStdioSync(options, verboseInfo);
|
|
5674
|
+
return {
|
|
5675
|
+
file,
|
|
5676
|
+
commandArguments,
|
|
5677
|
+
command,
|
|
5678
|
+
escapedCommand,
|
|
5679
|
+
startTime,
|
|
5680
|
+
verboseInfo,
|
|
5681
|
+
options,
|
|
5682
|
+
fileDescriptors
|
|
5683
|
+
};
|
|
5595
5684
|
};
|
|
5596
5685
|
normalizeSyncOptions = (options) => options.node && !options.ipc ? { ...options, ipc: false } : options;
|
|
5597
5686
|
validateSyncOptions = ({ ipc, ipcInput, detached, cancelSignal }) => {
|
|
@@ -5695,10 +5784,10 @@ var init_main_sync = __esm({
|
|
|
5695
5784
|
}
|
|
5696
5785
|
});
|
|
5697
5786
|
|
|
5698
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5787
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/get-one.js
|
|
5699
5788
|
var import_node_events8, getOneMessage, getOneMessageAsync, getMessage, throwOnDisconnect2, throwOnStrictError;
|
|
5700
5789
|
var init_get_one = __esm({
|
|
5701
|
-
"../../node_modules/.pnpm/execa@9.
|
|
5790
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/get-one.js"() {
|
|
5702
5791
|
"use strict";
|
|
5703
5792
|
import_node_events8 = require("events");
|
|
5704
5793
|
init_validation();
|
|
@@ -5759,10 +5848,10 @@ var init_get_one = __esm({
|
|
|
5759
5848
|
}
|
|
5760
5849
|
});
|
|
5761
5850
|
|
|
5762
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5851
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/get-each.js
|
|
5763
5852
|
var import_node_events9, getEachMessage, loopOnMessages, stopOnDisconnect, abortOnStrictError, iterateOnMessages, throwIfStrictError;
|
|
5764
5853
|
var init_get_each = __esm({
|
|
5765
|
-
"../../node_modules/.pnpm/execa@9.
|
|
5854
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/get-each.js"() {
|
|
5766
5855
|
"use strict";
|
|
5767
5856
|
import_node_events9 = require("events");
|
|
5768
5857
|
init_validation();
|
|
@@ -5847,10 +5936,10 @@ var init_get_each = __esm({
|
|
|
5847
5936
|
}
|
|
5848
5937
|
});
|
|
5849
5938
|
|
|
5850
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5939
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/methods.js
|
|
5851
5940
|
var import_node_process10, addIpcMethods, getIpcExport, getIpcMethods;
|
|
5852
5941
|
var init_methods = __esm({
|
|
5853
|
-
"../../node_modules/.pnpm/execa@9.
|
|
5942
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/methods.js"() {
|
|
5854
5943
|
"use strict";
|
|
5855
5944
|
import_node_process10 = __toESM(require("process"), 1);
|
|
5856
5945
|
init_send();
|
|
@@ -5897,10 +5986,10 @@ var init_methods = __esm({
|
|
|
5897
5986
|
}
|
|
5898
5987
|
});
|
|
5899
5988
|
|
|
5900
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
5989
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/return/early-error.js
|
|
5901
5990
|
var import_node_child_process3, import_node_stream2, handleEarlyError, createDummyStreams, createDummyStream, readable, writable, duplex, handleDummyPromise;
|
|
5902
5991
|
var init_early_error = __esm({
|
|
5903
|
-
"../../node_modules/.pnpm/execa@9.
|
|
5992
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/return/early-error.js"() {
|
|
5904
5993
|
"use strict";
|
|
5905
5994
|
import_node_child_process3 = require("child_process");
|
|
5906
5995
|
import_node_stream2 = require("stream");
|
|
@@ -5955,10 +6044,10 @@ var init_early_error = __esm({
|
|
|
5955
6044
|
}
|
|
5956
6045
|
});
|
|
5957
6046
|
|
|
5958
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6047
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/handle-async.js
|
|
5959
6048
|
var import_node_fs6, import_node_buffer3, import_node_stream3, handleStdioAsync, forbiddenIfAsync, addProperties2, addPropertiesAsync;
|
|
5960
6049
|
var init_handle_async = __esm({
|
|
5961
|
-
"../../node_modules/.pnpm/execa@9.
|
|
6050
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/stdio/handle-async.js"() {
|
|
5962
6051
|
"use strict";
|
|
5963
6052
|
import_node_fs6 = require("fs");
|
|
5964
6053
|
import_node_buffer3 = require("buffer");
|
|
@@ -6232,10 +6321,10 @@ var init_merge_streams = __esm({
|
|
|
6232
6321
|
}
|
|
6233
6322
|
});
|
|
6234
6323
|
|
|
6235
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6324
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/pipeline.js
|
|
6236
6325
|
var import_promises7, pipeStreams, onSourceFinish, endDestinationStream, onDestinationFinish, abortSourceStream;
|
|
6237
6326
|
var init_pipeline = __esm({
|
|
6238
|
-
"../../node_modules/.pnpm/execa@9.
|
|
6327
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/pipeline.js"() {
|
|
6239
6328
|
"use strict";
|
|
6240
6329
|
import_promises7 = require("stream/promises");
|
|
6241
6330
|
init_standard_stream();
|
|
@@ -6277,10 +6366,10 @@ var init_pipeline = __esm({
|
|
|
6277
6366
|
}
|
|
6278
6367
|
});
|
|
6279
6368
|
|
|
6280
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6369
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/output-async.js
|
|
6281
6370
|
var pipeOutputAsync, pipeTransform, SUBPROCESS_STREAM_PROPERTIES, pipeStdioItem, setStandardStreamMaxListeners, MAX_LISTENERS_INCREMENT;
|
|
6282
6371
|
var init_output_async = __esm({
|
|
6283
|
-
"../../node_modules/.pnpm/execa@9.
|
|
6372
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/output-async.js"() {
|
|
6284
6373
|
"use strict";
|
|
6285
6374
|
init_merge_streams();
|
|
6286
6375
|
init_standard_stream();
|
|
@@ -6610,10 +6699,10 @@ var init_mjs = __esm({
|
|
|
6610
6699
|
}
|
|
6611
6700
|
});
|
|
6612
6701
|
|
|
6613
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6702
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/cleanup.js
|
|
6614
6703
|
var import_node_events11, cleanupOnExit;
|
|
6615
6704
|
var init_cleanup = __esm({
|
|
6616
|
-
"../../node_modules/.pnpm/execa@9.
|
|
6705
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/terminate/cleanup.js"() {
|
|
6617
6706
|
"use strict";
|
|
6618
6707
|
import_node_events11 = require("events");
|
|
6619
6708
|
init_mjs();
|
|
@@ -6631,10 +6720,10 @@ var init_cleanup = __esm({
|
|
|
6631
6720
|
}
|
|
6632
6721
|
});
|
|
6633
6722
|
|
|
6634
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6723
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/pipe/pipe-arguments.js
|
|
6635
6724
|
var normalizePipeArguments, getDestinationStream, getDestination, mapDestinationArguments, getSourceStream;
|
|
6636
6725
|
var init_pipe_arguments = __esm({
|
|
6637
|
-
"../../node_modules/.pnpm/execa@9.
|
|
6726
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/pipe/pipe-arguments.js"() {
|
|
6638
6727
|
"use strict";
|
|
6639
6728
|
init_parameters();
|
|
6640
6729
|
init_duration();
|
|
@@ -6713,10 +6802,10 @@ var init_pipe_arguments = __esm({
|
|
|
6713
6802
|
}
|
|
6714
6803
|
});
|
|
6715
6804
|
|
|
6716
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6805
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/pipe/throw.js
|
|
6717
6806
|
var handlePipeArgumentsError, getPipeArgumentsError, createNonCommandError, PIPE_COMMAND_MESSAGE;
|
|
6718
6807
|
var init_throw = __esm({
|
|
6719
|
-
"../../node_modules/.pnpm/execa@9.
|
|
6808
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/pipe/throw.js"() {
|
|
6720
6809
|
"use strict";
|
|
6721
6810
|
init_result();
|
|
6722
6811
|
init_pipeline();
|
|
@@ -6770,10 +6859,10 @@ var init_throw = __esm({
|
|
|
6770
6859
|
}
|
|
6771
6860
|
});
|
|
6772
6861
|
|
|
6773
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6862
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/pipe/sequence.js
|
|
6774
6863
|
var waitForBothSubprocesses;
|
|
6775
6864
|
var init_sequence = __esm({
|
|
6776
|
-
"../../node_modules/.pnpm/execa@9.
|
|
6865
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/pipe/sequence.js"() {
|
|
6777
6866
|
"use strict";
|
|
6778
6867
|
waitForBothSubprocesses = async (subprocessPromises) => {
|
|
6779
6868
|
const [
|
|
@@ -6794,10 +6883,10 @@ var init_sequence = __esm({
|
|
|
6794
6883
|
}
|
|
6795
6884
|
});
|
|
6796
6885
|
|
|
6797
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6886
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/pipe/streaming.js
|
|
6798
6887
|
var import_promises8, pipeSubprocessStream, pipeFirstSubprocessStream, pipeMoreSubprocessStream, cleanupMergedStreamsMap, MERGED_STREAMS, SOURCE_LISTENERS_PER_PIPE, DESTINATION_LISTENERS_PER_PIPE;
|
|
6799
6888
|
var init_streaming = __esm({
|
|
6800
|
-
"../../node_modules/.pnpm/execa@9.
|
|
6889
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/pipe/streaming.js"() {
|
|
6801
6890
|
"use strict";
|
|
6802
6891
|
import_promises8 = require("stream/promises");
|
|
6803
6892
|
init_merge_streams();
|
|
@@ -6834,10 +6923,10 @@ var init_streaming = __esm({
|
|
|
6834
6923
|
}
|
|
6835
6924
|
});
|
|
6836
6925
|
|
|
6837
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6926
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/pipe/abort.js
|
|
6838
6927
|
var import_node_util7, unpipeOnAbort, unpipeOnSignalAbort;
|
|
6839
6928
|
var init_abort = __esm({
|
|
6840
|
-
"../../node_modules/.pnpm/execa@9.
|
|
6929
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/pipe/abort.js"() {
|
|
6841
6930
|
"use strict";
|
|
6842
6931
|
import_node_util7 = require("util");
|
|
6843
6932
|
init_throw();
|
|
@@ -6856,10 +6945,10 @@ var init_abort = __esm({
|
|
|
6856
6945
|
}
|
|
6857
6946
|
});
|
|
6858
6947
|
|
|
6859
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
6948
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/pipe/setup.js
|
|
6860
6949
|
var pipeToSubprocess, handlePipePromise, getSubprocessPromises;
|
|
6861
6950
|
var init_setup = __esm({
|
|
6862
|
-
"../../node_modules/.pnpm/execa@9.
|
|
6951
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/pipe/setup.js"() {
|
|
6863
6952
|
"use strict";
|
|
6864
6953
|
init_is_plain_obj();
|
|
6865
6954
|
init_pipe_arguments();
|
|
@@ -6927,10 +7016,10 @@ var init_setup = __esm({
|
|
|
6927
7016
|
}
|
|
6928
7017
|
});
|
|
6929
7018
|
|
|
6930
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7019
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/iterate.js
|
|
6931
7020
|
var import_node_events12, import_node_stream5, iterateOnSubprocessStream, stopReadingOnExit, iterateForResult, stopReadingOnStreamEnd, iterateOnStream, DEFAULT_OBJECT_HIGH_WATER_MARK, HIGH_WATER_MARK, iterateOnData, getGenerators;
|
|
6932
7021
|
var init_iterate = __esm({
|
|
6933
|
-
"../../node_modules/.pnpm/execa@9.
|
|
7022
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/iterate.js"() {
|
|
6934
7023
|
"use strict";
|
|
6935
7024
|
import_node_events12 = require("events");
|
|
6936
7025
|
import_node_stream5 = require("stream");
|
|
@@ -7029,10 +7118,10 @@ var init_iterate = __esm({
|
|
|
7029
7118
|
}
|
|
7030
7119
|
});
|
|
7031
7120
|
|
|
7032
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7033
|
-
var import_promises9, getStreamOutput, resumeStream, getStreamContents2, getBufferedData, handleBufferedData;
|
|
7121
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/contents.js
|
|
7122
|
+
var import_promises9, getStreamOutput, logOutputAsync, resumeStream, getStreamContents2, getBufferedData, handleBufferedData;
|
|
7034
7123
|
var init_contents2 = __esm({
|
|
7035
|
-
"../../node_modules/.pnpm/execa@9.
|
|
7124
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/io/contents.js"() {
|
|
7036
7125
|
"use strict";
|
|
7037
7126
|
import_promises9 = require("timers/promises");
|
|
7038
7127
|
init_source();
|
|
@@ -7041,25 +7130,18 @@ var init_contents2 = __esm({
|
|
|
7041
7130
|
init_iterate();
|
|
7042
7131
|
init_max_buffer();
|
|
7043
7132
|
init_strip_newline();
|
|
7044
|
-
getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo
|
|
7045
|
-
|
|
7046
|
-
|
|
7133
|
+
getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline: stripFinalNewline2, verboseInfo, streamInfo }) => {
|
|
7134
|
+
const logPromise = logOutputAsync({
|
|
7135
|
+
stream,
|
|
7136
|
+
onStreamEnd,
|
|
7137
|
+
fdNumber,
|
|
7047
7138
|
encoding,
|
|
7139
|
+
allMixed,
|
|
7048
7140
|
verboseInfo,
|
|
7049
|
-
|
|
7050
|
-
})
|
|
7051
|
-
const linesIterable = iterateForResult({
|
|
7052
|
-
stream,
|
|
7053
|
-
onStreamEnd,
|
|
7054
|
-
lines: true,
|
|
7055
|
-
encoding,
|
|
7056
|
-
stripFinalNewline: true,
|
|
7057
|
-
allMixed
|
|
7058
|
-
});
|
|
7059
|
-
logLines(linesIterable, stream, verboseInfo);
|
|
7060
|
-
}
|
|
7141
|
+
streamInfo
|
|
7142
|
+
});
|
|
7061
7143
|
if (!buffer) {
|
|
7062
|
-
await resumeStream(stream);
|
|
7144
|
+
await Promise.all([resumeStream(stream), logPromise]);
|
|
7063
7145
|
return;
|
|
7064
7146
|
}
|
|
7065
7147
|
const stripFinalNewlineValue = getStripFinalNewline(stripFinalNewline2, fdNumber);
|
|
@@ -7071,14 +7153,37 @@ var init_contents2 = __esm({
|
|
|
7071
7153
|
stripFinalNewline: stripFinalNewlineValue,
|
|
7072
7154
|
allMixed
|
|
7073
7155
|
});
|
|
7074
|
-
|
|
7156
|
+
const [output] = await Promise.all([
|
|
7157
|
+
getStreamContents2({
|
|
7158
|
+
stream,
|
|
7159
|
+
iterable,
|
|
7160
|
+
fdNumber,
|
|
7161
|
+
encoding,
|
|
7162
|
+
maxBuffer,
|
|
7163
|
+
lines
|
|
7164
|
+
}),
|
|
7165
|
+
logPromise
|
|
7166
|
+
]);
|
|
7167
|
+
return output;
|
|
7168
|
+
};
|
|
7169
|
+
logOutputAsync = async ({ stream, onStreamEnd, fdNumber, encoding, allMixed, verboseInfo, streamInfo: { fileDescriptors } }) => {
|
|
7170
|
+
if (!shouldLogOutput({
|
|
7171
|
+
stdioItems: fileDescriptors[fdNumber]?.stdioItems,
|
|
7172
|
+
encoding,
|
|
7173
|
+
verboseInfo,
|
|
7174
|
+
fdNumber
|
|
7175
|
+
})) {
|
|
7176
|
+
return;
|
|
7177
|
+
}
|
|
7178
|
+
const linesIterable = iterateForResult({
|
|
7075
7179
|
stream,
|
|
7076
|
-
|
|
7077
|
-
|
|
7180
|
+
onStreamEnd,
|
|
7181
|
+
lines: true,
|
|
7078
7182
|
encoding,
|
|
7079
|
-
|
|
7080
|
-
|
|
7183
|
+
stripFinalNewline: true,
|
|
7184
|
+
allMixed
|
|
7081
7185
|
});
|
|
7186
|
+
await logLines(linesIterable, stream, fdNumber, verboseInfo);
|
|
7082
7187
|
};
|
|
7083
7188
|
resumeStream = async (stream) => {
|
|
7084
7189
|
await (0, import_promises9.setImmediate)();
|
|
@@ -7117,10 +7222,10 @@ var init_contents2 = __esm({
|
|
|
7117
7222
|
}
|
|
7118
7223
|
});
|
|
7119
7224
|
|
|
7120
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7225
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/wait-stream.js
|
|
7121
7226
|
var import_promises10, waitForStream, handleStdinDestroy, spyOnStdinDestroy, setStdinCleanedUp, handleStreamError, shouldIgnoreStreamError, isInputFileDescriptor, isStreamAbort, isStreamEpipe;
|
|
7122
7227
|
var init_wait_stream = __esm({
|
|
7123
|
-
"../../node_modules/.pnpm/execa@9.
|
|
7228
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/wait-stream.js"() {
|
|
7124
7229
|
"use strict";
|
|
7125
7230
|
import_promises10 = require("stream/promises");
|
|
7126
7231
|
waitForStream = async (stream, fdNumber, streamInfo, { isSameDirection, stopOnExit = false } = {}) => {
|
|
@@ -7176,10 +7281,10 @@ var init_wait_stream = __esm({
|
|
|
7176
7281
|
}
|
|
7177
7282
|
});
|
|
7178
7283
|
|
|
7179
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7284
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/stdio.js
|
|
7180
7285
|
var waitForStdioStreams, waitForSubprocessStream;
|
|
7181
7286
|
var init_stdio = __esm({
|
|
7182
|
-
"../../node_modules/.pnpm/execa@9.
|
|
7287
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/stdio.js"() {
|
|
7183
7288
|
"use strict";
|
|
7184
7289
|
init_contents2();
|
|
7185
7290
|
init_wait_stream();
|
|
@@ -7225,10 +7330,10 @@ var init_stdio = __esm({
|
|
|
7225
7330
|
}
|
|
7226
7331
|
});
|
|
7227
7332
|
|
|
7228
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7333
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/all-async.js
|
|
7229
7334
|
var makeAllStream, waitForAllStream, getAllStream, getAllMixed;
|
|
7230
7335
|
var init_all_async = __esm({
|
|
7231
|
-
"../../node_modules/.pnpm/execa@9.
|
|
7336
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/all-async.js"() {
|
|
7232
7337
|
"use strict";
|
|
7233
7338
|
init_merge_streams();
|
|
7234
7339
|
init_stdio();
|
|
@@ -7261,26 +7366,34 @@ var init_all_async = __esm({
|
|
|
7261
7366
|
}
|
|
7262
7367
|
});
|
|
7263
7368
|
|
|
7264
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7369
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/ipc.js
|
|
7265
7370
|
var shouldLogIpc, logIpcOutput;
|
|
7266
7371
|
var init_ipc = __esm({
|
|
7267
|
-
"../../node_modules/.pnpm/execa@9.
|
|
7372
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/verbose/ipc.js"() {
|
|
7268
7373
|
"use strict";
|
|
7269
7374
|
init_log();
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7375
|
+
init_values();
|
|
7376
|
+
shouldLogIpc = (verboseInfo) => isFullVerbose(verboseInfo, "ipc");
|
|
7377
|
+
logIpcOutput = (message, verboseInfo) => {
|
|
7378
|
+
const verboseMessage = serializeVerboseMessage(message);
|
|
7379
|
+
verboseLog({
|
|
7380
|
+
type: "ipc",
|
|
7381
|
+
verboseMessage,
|
|
7382
|
+
fdNumber: "ipc",
|
|
7383
|
+
verboseInfo
|
|
7384
|
+
});
|
|
7273
7385
|
};
|
|
7274
7386
|
}
|
|
7275
7387
|
});
|
|
7276
7388
|
|
|
7277
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7389
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/buffer-messages.js
|
|
7278
7390
|
var waitForIpcOutput, getBufferedIpcOutput;
|
|
7279
7391
|
var init_buffer_messages = __esm({
|
|
7280
|
-
"../../node_modules/.pnpm/execa@9.
|
|
7392
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/ipc/buffer-messages.js"() {
|
|
7281
7393
|
"use strict";
|
|
7282
7394
|
init_max_buffer();
|
|
7283
7395
|
init_ipc();
|
|
7396
|
+
init_specific();
|
|
7284
7397
|
init_get_each();
|
|
7285
7398
|
waitForIpcOutput = async ({
|
|
7286
7399
|
subprocess,
|
|
@@ -7294,8 +7407,8 @@ var init_buffer_messages = __esm({
|
|
|
7294
7407
|
return ipcOutput;
|
|
7295
7408
|
}
|
|
7296
7409
|
const isVerbose2 = shouldLogIpc(verboseInfo);
|
|
7297
|
-
const buffer = bufferArray
|
|
7298
|
-
const maxBuffer = maxBufferArray
|
|
7410
|
+
const buffer = getFdSpecificValue(bufferArray, "ipc");
|
|
7411
|
+
const maxBuffer = getFdSpecificValue(maxBufferArray, "ipc");
|
|
7299
7412
|
for await (const message of loopOnMessages({
|
|
7300
7413
|
anyProcess: subprocess,
|
|
7301
7414
|
channel: subprocess.channel,
|
|
@@ -7321,10 +7434,10 @@ var init_buffer_messages = __esm({
|
|
|
7321
7434
|
}
|
|
7322
7435
|
});
|
|
7323
7436
|
|
|
7324
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7437
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/wait-subprocess.js
|
|
7325
7438
|
var import_node_events13, waitForSubprocessResult, waitForOriginalStreams, waitForCustomStreamsEnd, throwOnSubprocessError;
|
|
7326
7439
|
var init_wait_subprocess = __esm({
|
|
7327
|
-
"../../node_modules/.pnpm/execa@9.
|
|
7440
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/resolve/wait-subprocess.js"() {
|
|
7328
7441
|
"use strict";
|
|
7329
7442
|
import_node_events13 = require("events");
|
|
7330
7443
|
init_is_stream();
|
|
@@ -7457,10 +7570,10 @@ var init_wait_subprocess = __esm({
|
|
|
7457
7570
|
}
|
|
7458
7571
|
});
|
|
7459
7572
|
|
|
7460
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7573
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/concurrent.js
|
|
7461
7574
|
var initializeConcurrentStreams, addConcurrentStream, waitForConcurrentStreams;
|
|
7462
7575
|
var init_concurrent = __esm({
|
|
7463
|
-
"../../node_modules/.pnpm/execa@9.
|
|
7576
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/concurrent.js"() {
|
|
7464
7577
|
"use strict";
|
|
7465
7578
|
init_deferred();
|
|
7466
7579
|
initializeConcurrentStreams = () => ({
|
|
@@ -7476,11 +7589,11 @@ var init_concurrent = __esm({
|
|
|
7476
7589
|
const promises = weakMap.get(stream);
|
|
7477
7590
|
const promise = createDeferred();
|
|
7478
7591
|
promises.push(promise);
|
|
7479
|
-
const
|
|
7480
|
-
return { resolve:
|
|
7592
|
+
const resolve18 = promise.resolve.bind(promise);
|
|
7593
|
+
return { resolve: resolve18, promises };
|
|
7481
7594
|
};
|
|
7482
|
-
waitForConcurrentStreams = async ({ resolve:
|
|
7483
|
-
|
|
7595
|
+
waitForConcurrentStreams = async ({ resolve: resolve18, promises }, subprocess) => {
|
|
7596
|
+
resolve18();
|
|
7484
7597
|
const [isSubprocessExit] = await Promise.race([
|
|
7485
7598
|
Promise.allSettled([true, subprocess]),
|
|
7486
7599
|
Promise.all([false, ...promises])
|
|
@@ -7490,10 +7603,10 @@ var init_concurrent = __esm({
|
|
|
7490
7603
|
}
|
|
7491
7604
|
});
|
|
7492
7605
|
|
|
7493
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7606
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/shared.js
|
|
7494
7607
|
var import_promises11, safeWaitForSubprocessStdin, safeWaitForSubprocessStdout, waitForSubprocessStdin, waitForSubprocessStdout, waitForSubprocess, destroyOtherStream;
|
|
7495
7608
|
var init_shared = __esm({
|
|
7496
|
-
"../../node_modules/.pnpm/execa@9.
|
|
7609
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/shared.js"() {
|
|
7497
7610
|
"use strict";
|
|
7498
7611
|
import_promises11 = require("stream/promises");
|
|
7499
7612
|
init_wait_stream();
|
|
@@ -7537,10 +7650,10 @@ var init_shared = __esm({
|
|
|
7537
7650
|
}
|
|
7538
7651
|
});
|
|
7539
7652
|
|
|
7540
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7653
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/readable.js
|
|
7541
7654
|
var import_node_stream6, import_node_util8, createReadable, getSubprocessStdout, getReadableOptions, getReadableMethods, onRead, onStdoutFinished, onReadableDestroy, destroyOtherReadable;
|
|
7542
7655
|
var init_readable = __esm({
|
|
7543
|
-
"../../node_modules/.pnpm/execa@9.
|
|
7656
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/readable.js"() {
|
|
7544
7657
|
"use strict";
|
|
7545
7658
|
import_node_stream6 = require("stream");
|
|
7546
7659
|
import_node_util8 = require("util");
|
|
@@ -7636,10 +7749,10 @@ var init_readable = __esm({
|
|
|
7636
7749
|
}
|
|
7637
7750
|
});
|
|
7638
7751
|
|
|
7639
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7752
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/writable.js
|
|
7640
7753
|
var import_node_stream7, import_node_util9, createWritable, getSubprocessStdin, getWritableMethods, onWrite, onWritableFinal, onStdinFinished, onWritableDestroy, destroyOtherWritable;
|
|
7641
7754
|
var init_writable = __esm({
|
|
7642
|
-
"../../node_modules/.pnpm/execa@9.
|
|
7755
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/writable.js"() {
|
|
7643
7756
|
"use strict";
|
|
7644
7757
|
import_node_stream7 = require("stream");
|
|
7645
7758
|
import_node_util9 = require("util");
|
|
@@ -7711,10 +7824,10 @@ var init_writable = __esm({
|
|
|
7711
7824
|
}
|
|
7712
7825
|
});
|
|
7713
7826
|
|
|
7714
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7827
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/duplex.js
|
|
7715
7828
|
var import_node_stream8, import_node_util10, createDuplex, onDuplexDestroy;
|
|
7716
7829
|
var init_duplex = __esm({
|
|
7717
|
-
"../../node_modules/.pnpm/execa@9.
|
|
7830
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/duplex.js"() {
|
|
7718
7831
|
"use strict";
|
|
7719
7832
|
import_node_stream8 = require("stream");
|
|
7720
7833
|
import_node_util10 = require("util");
|
|
@@ -7774,10 +7887,10 @@ var init_duplex = __esm({
|
|
|
7774
7887
|
}
|
|
7775
7888
|
});
|
|
7776
7889
|
|
|
7777
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7890
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/iterable.js
|
|
7778
7891
|
var createIterable, iterateOnStdoutData;
|
|
7779
7892
|
var init_iterable = __esm({
|
|
7780
|
-
"../../node_modules/.pnpm/execa@9.
|
|
7893
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/iterable.js"() {
|
|
7781
7894
|
"use strict";
|
|
7782
7895
|
init_encoding_option();
|
|
7783
7896
|
init_fd_options();
|
|
@@ -7812,10 +7925,10 @@ var init_iterable = __esm({
|
|
|
7812
7925
|
}
|
|
7813
7926
|
});
|
|
7814
7927
|
|
|
7815
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7928
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/add.js
|
|
7816
7929
|
var addConvertedStreams;
|
|
7817
7930
|
var init_add = __esm({
|
|
7818
|
-
"../../node_modules/.pnpm/execa@9.
|
|
7931
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/convert/add.js"() {
|
|
7819
7932
|
"use strict";
|
|
7820
7933
|
init_concurrent();
|
|
7821
7934
|
init_readable();
|
|
@@ -7833,10 +7946,10 @@ var init_add = __esm({
|
|
|
7833
7946
|
}
|
|
7834
7947
|
});
|
|
7835
7948
|
|
|
7836
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7949
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/promise.js
|
|
7837
7950
|
var mergePromise, nativePromisePrototype, descriptors;
|
|
7838
7951
|
var init_promise = __esm({
|
|
7839
|
-
"../../node_modules/.pnpm/execa@9.
|
|
7952
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/promise.js"() {
|
|
7840
7953
|
"use strict";
|
|
7841
7954
|
mergePromise = (subprocess, promise) => {
|
|
7842
7955
|
for (const [property, descriptor] of descriptors) {
|
|
@@ -7853,10 +7966,10 @@ var init_promise = __esm({
|
|
|
7853
7966
|
}
|
|
7854
7967
|
});
|
|
7855
7968
|
|
|
7856
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
7969
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/main-async.js
|
|
7857
7970
|
var import_node_events14, import_node_child_process4, execaCoreAsync, handleAsyncArguments, handleAsyncOptions, spawnSubprocessAsync, handlePromise, getAsyncResult;
|
|
7858
7971
|
var init_main_async = __esm({
|
|
7859
|
-
"../../node_modules/.pnpm/execa@9.
|
|
7972
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/main-async.js"() {
|
|
7860
7973
|
"use strict";
|
|
7861
7974
|
import_node_events14 = require("events");
|
|
7862
7975
|
import_node_child_process4 = require("child_process");
|
|
@@ -7874,7 +7987,6 @@ var init_main_async = __esm({
|
|
|
7874
7987
|
init_kill();
|
|
7875
7988
|
init_cleanup();
|
|
7876
7989
|
init_setup();
|
|
7877
|
-
init_complete();
|
|
7878
7990
|
init_all_async();
|
|
7879
7991
|
init_wait_subprocess();
|
|
7880
7992
|
init_add();
|
|
@@ -7904,24 +8016,19 @@ var init_main_async = __esm({
|
|
|
7904
8016
|
};
|
|
7905
8017
|
handleAsyncArguments = (rawFile, rawArguments, rawOptions) => {
|
|
7906
8018
|
const { command, escapedCommand, startTime, verboseInfo } = handleCommand(rawFile, rawArguments, rawOptions);
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
};
|
|
7921
|
-
} catch (error) {
|
|
7922
|
-
logEarlyResult(error, startTime, verboseInfo);
|
|
7923
|
-
throw error;
|
|
7924
|
-
}
|
|
8019
|
+
const { file, commandArguments, options: normalizedOptions } = normalizeOptions(rawFile, rawArguments, rawOptions);
|
|
8020
|
+
const options = handleAsyncOptions(normalizedOptions);
|
|
8021
|
+
const fileDescriptors = handleStdioAsync(options, verboseInfo);
|
|
8022
|
+
return {
|
|
8023
|
+
file,
|
|
8024
|
+
commandArguments,
|
|
8025
|
+
command,
|
|
8026
|
+
escapedCommand,
|
|
8027
|
+
startTime,
|
|
8028
|
+
verboseInfo,
|
|
8029
|
+
options,
|
|
8030
|
+
fileDescriptors
|
|
8031
|
+
};
|
|
7925
8032
|
};
|
|
7926
8033
|
handleAsyncOptions = ({ timeout, signal, ...options }) => {
|
|
7927
8034
|
if (signal !== void 0) {
|
|
@@ -8041,10 +8148,10 @@ var init_main_async = __esm({
|
|
|
8041
8148
|
}
|
|
8042
8149
|
});
|
|
8043
8150
|
|
|
8044
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
8151
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/bind.js
|
|
8045
8152
|
var mergeOptions, mergeOption, DEEP_OPTIONS;
|
|
8046
8153
|
var init_bind = __esm({
|
|
8047
|
-
"../../node_modules/.pnpm/execa@9.
|
|
8154
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/bind.js"() {
|
|
8048
8155
|
"use strict";
|
|
8049
8156
|
init_is_plain_obj();
|
|
8050
8157
|
init_specific();
|
|
@@ -8067,10 +8174,10 @@ var init_bind = __esm({
|
|
|
8067
8174
|
}
|
|
8068
8175
|
});
|
|
8069
8176
|
|
|
8070
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
8177
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/create.js
|
|
8071
8178
|
var createExeca, callBoundExeca, parseArguments;
|
|
8072
8179
|
var init_create = __esm({
|
|
8073
|
-
"../../node_modules/.pnpm/execa@9.
|
|
8180
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/create.js"() {
|
|
8074
8181
|
"use strict";
|
|
8075
8182
|
init_is_plain_obj();
|
|
8076
8183
|
init_parameters();
|
|
@@ -8125,10 +8232,10 @@ var init_create = __esm({
|
|
|
8125
8232
|
}
|
|
8126
8233
|
});
|
|
8127
8234
|
|
|
8128
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
8235
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/command.js
|
|
8129
8236
|
var mapCommandAsync, mapCommandSync, parseCommand, parseCommandString, SPACES_REGEXP;
|
|
8130
8237
|
var init_command2 = __esm({
|
|
8131
|
-
"../../node_modules/.pnpm/execa@9.
|
|
8238
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/command.js"() {
|
|
8132
8239
|
"use strict";
|
|
8133
8240
|
mapCommandAsync = ({ file, commandArguments }) => parseCommand(file, commandArguments);
|
|
8134
8241
|
mapCommandSync = ({ file, commandArguments }) => ({ ...parseCommand(file, commandArguments), isSync: true });
|
|
@@ -8162,10 +8269,10 @@ var init_command2 = __esm({
|
|
|
8162
8269
|
}
|
|
8163
8270
|
});
|
|
8164
8271
|
|
|
8165
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
8272
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/script.js
|
|
8166
8273
|
var setScriptSync, mapScriptAsync, mapScriptSync, getScriptOptions, getScriptStdinOption, deepScriptOptions;
|
|
8167
8274
|
var init_script = __esm({
|
|
8168
|
-
"../../node_modules/.pnpm/execa@9.
|
|
8275
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/lib/methods/script.js"() {
|
|
8169
8276
|
"use strict";
|
|
8170
8277
|
setScriptSync = (boundExeca, createNested, boundOptions) => {
|
|
8171
8278
|
boundExeca.sync = createNested(mapScriptSync, boundOptions);
|
|
@@ -8179,7 +8286,7 @@ var init_script = __esm({
|
|
|
8179
8286
|
}
|
|
8180
8287
|
});
|
|
8181
8288
|
|
|
8182
|
-
// ../../node_modules/.pnpm/execa@9.
|
|
8289
|
+
// ../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/index.js
|
|
8183
8290
|
var execa_exports = {};
|
|
8184
8291
|
__export(execa_exports, {
|
|
8185
8292
|
$: () => $,
|
|
@@ -8198,7 +8305,7 @@ __export(execa_exports, {
|
|
|
8198
8305
|
});
|
|
8199
8306
|
var execa, execaSync, execaCommand, execaCommandSync, execaNode, $, sendMessage2, getOneMessage2, getEachMessage2, getCancelSignal2;
|
|
8200
8307
|
var init_execa = __esm({
|
|
8201
|
-
"../../node_modules/.pnpm/execa@9.
|
|
8308
|
+
"../../node_modules/.pnpm/execa@9.3.0/node_modules/execa/index.js"() {
|
|
8202
8309
|
"use strict";
|
|
8203
8310
|
init_create();
|
|
8204
8311
|
init_command2();
|
|
@@ -8637,7 +8744,7 @@ var init_core2 = __esm({
|
|
|
8637
8744
|
|
|
8638
8745
|
// ../../node_modules/.pnpm/consola@3.2.3/node_modules/consola/dist/shared/consola.06ad8a64.mjs
|
|
8639
8746
|
function parseStack(stack) {
|
|
8640
|
-
const cwd = process.cwd() +
|
|
8747
|
+
const cwd = process.cwd() + import_node_path18.sep;
|
|
8641
8748
|
const lines = stack.split("\n").splice(1).map((l2) => l2.trim().replace("file://", "").replace(cwd, ""));
|
|
8642
8749
|
return lines;
|
|
8643
8750
|
}
|
|
@@ -8645,12 +8752,12 @@ function writeStream(data, stream) {
|
|
|
8645
8752
|
const write = stream.__write || stream.write;
|
|
8646
8753
|
return write.call(stream, data);
|
|
8647
8754
|
}
|
|
8648
|
-
var import_node_util11,
|
|
8755
|
+
var import_node_util11, import_node_path18, bracket, BasicReporter;
|
|
8649
8756
|
var init_consola_06ad8a64 = __esm({
|
|
8650
8757
|
"../../node_modules/.pnpm/consola@3.2.3/node_modules/consola/dist/shared/consola.06ad8a64.mjs"() {
|
|
8651
8758
|
"use strict";
|
|
8652
8759
|
import_node_util11 = require("util");
|
|
8653
|
-
|
|
8760
|
+
import_node_path18 = require("path");
|
|
8654
8761
|
bracket = (x) => x ? `[${x}]` : "";
|
|
8655
8762
|
BasicReporter = class {
|
|
8656
8763
|
formatStack(stack, opts) {
|
|
@@ -9053,7 +9160,7 @@ async function prompt(message, opts = {}) {
|
|
|
9053
9160
|
}
|
|
9054
9161
|
throw new Error(`Unknown prompt type: ${opts.type}`);
|
|
9055
9162
|
}
|
|
9056
|
-
var import_node_process11, import_node_readline, import_node_tty3, import_tty, import_node_util12,
|
|
9163
|
+
var import_node_process11, import_node_readline, import_node_tty3, import_tty, import_node_util12, import_node_path19, ESC, CSI, beep, cursor, scroll, erase, src, picocolors, tty4, isColorSupported2, formatter, replaceClose2, createColors2, picocolorsExports, l, m, G, K, Y, v, L, M, T, r, Z, H, q, p, J, b, W, Q, I, w, N, j, X, _, DD, uD, R, V, tD, h2, sD, iD, ED, oD, unicode, s, S_STEP_ACTIVE, S_STEP_CANCEL, S_STEP_ERROR, S_STEP_SUBMIT, S_BAR, S_BAR_END, S_RADIO_ACTIVE, S_RADIO_INACTIVE, S_CHECKBOX_ACTIVE, S_CHECKBOX_SELECTED, S_CHECKBOX_INACTIVE, symbol, text, confirm, select, multiselect;
|
|
9057
9164
|
var init_prompt = __esm({
|
|
9058
9165
|
"../../node_modules/.pnpm/consola@3.2.3/node_modules/consola/dist/chunks/prompt.mjs"() {
|
|
9059
9166
|
"use strict";
|
|
@@ -9066,7 +9173,7 @@ var init_prompt = __esm({
|
|
|
9066
9173
|
init_core2();
|
|
9067
9174
|
init_consola_06ad8a64();
|
|
9068
9175
|
import_node_util12 = require("util");
|
|
9069
|
-
|
|
9176
|
+
import_node_path19 = require("path");
|
|
9070
9177
|
ESC = "\x1B";
|
|
9071
9178
|
CSI = `${ESC}[`;
|
|
9072
9179
|
beep = "\x07";
|
|
@@ -10082,7 +10189,7 @@ __export(src_exports, {
|
|
|
10082
10189
|
module.exports = __toCommonJS(src_exports);
|
|
10083
10190
|
|
|
10084
10191
|
// src/core/utils/fs.ts
|
|
10085
|
-
var
|
|
10192
|
+
var import_fs_extra5 = __toESM(require("fs-extra"), 1);
|
|
10086
10193
|
var import_fast_glob2 = __toESM(require("fast-glob"), 1);
|
|
10087
10194
|
|
|
10088
10195
|
// src/core/utils/paths.ts
|
|
@@ -10967,6 +11074,25 @@ try {
|
|
|
10967
11074
|
};
|
|
10968
11075
|
}
|
|
10969
11076
|
|
|
11077
|
+
// src/core/builders/vite/plugins/resolveAppConfig.ts
|
|
11078
|
+
var import_fs_extra4 = require("fs-extra");
|
|
11079
|
+
var import_node_path13 = require("path");
|
|
11080
|
+
function resolveAppConfig(config) {
|
|
11081
|
+
const virtualModuleId = "virtual:app-config";
|
|
11082
|
+
const resolvedVirtualModuleId = "\0" + virtualModuleId;
|
|
11083
|
+
const appConfigFile = (0, import_node_path13.resolve)(config.srcDir, "app.config.ts");
|
|
11084
|
+
return {
|
|
11085
|
+
name: "wxt:resolve-app-config",
|
|
11086
|
+
async resolveId(id) {
|
|
11087
|
+
if (id !== virtualModuleId) return;
|
|
11088
|
+
return await (0, import_fs_extra4.exists)(appConfigFile) ? appConfigFile : resolvedVirtualModuleId;
|
|
11089
|
+
},
|
|
11090
|
+
load(id) {
|
|
11091
|
+
if (id === resolvedVirtualModuleId) return `export default {}`;
|
|
11092
|
+
}
|
|
11093
|
+
};
|
|
11094
|
+
}
|
|
11095
|
+
|
|
10970
11096
|
// src/core/utils/arrays.ts
|
|
10971
11097
|
function every(array, predicate) {
|
|
10972
11098
|
for (let i2 = 0; i2 < array.length; i2++)
|
|
@@ -11036,7 +11162,8 @@ async function createViteBuilder(wxtConfig, hooks, server) {
|
|
|
11036
11162
|
globals(wxtConfig),
|
|
11037
11163
|
excludeBrowserPolyfill(wxtConfig),
|
|
11038
11164
|
defineImportMeta(),
|
|
11039
|
-
wxtPluginLoader(wxtConfig)
|
|
11165
|
+
wxtPluginLoader(wxtConfig),
|
|
11166
|
+
resolveAppConfig(wxtConfig)
|
|
11040
11167
|
);
|
|
11041
11168
|
if (wxtConfig.analysis.enabled) {
|
|
11042
11169
|
config.plugins.push(bundleAnalysis(wxtConfig));
|
|
@@ -11188,7 +11315,10 @@ async function createViteBuilder(wxtConfig, hooks, server) {
|
|
|
11188
11315
|
const config = vite2.mergeConfig(baseConfig, envConfig);
|
|
11189
11316
|
const server2 = await vite2.createServer(config);
|
|
11190
11317
|
await server2.pluginContainer.buildStart({});
|
|
11191
|
-
const node = new import_server.ViteNodeServer(
|
|
11318
|
+
const node = new import_server.ViteNodeServer(
|
|
11319
|
+
// @ts-ignore: Some weird type error...
|
|
11320
|
+
server2
|
|
11321
|
+
);
|
|
11192
11322
|
(0, import_source_map.installSourcemapsSupport)({
|
|
11193
11323
|
getSourceMap: (source) => node.getSourceMap(source)
|
|
11194
11324
|
});
|
|
@@ -11292,7 +11422,7 @@ function getRollupEntry(entrypoint) {
|
|
|
11292
11422
|
// src/modules.ts
|
|
11293
11423
|
var vite = __toESM(require("vite"), 1);
|
|
11294
11424
|
var import_fast_glob = __toESM(require("fast-glob"), 1);
|
|
11295
|
-
var
|
|
11425
|
+
var import_node_path14 = require("path");
|
|
11296
11426
|
function defineWxtModule(module2) {
|
|
11297
11427
|
if (typeof module2 === "function") return { setup: module2 };
|
|
11298
11428
|
return module2;
|
|
@@ -11310,7 +11440,7 @@ function addViteConfig(wxt2, viteConfig) {
|
|
|
11310
11440
|
|
|
11311
11441
|
// src/builtin-modules/unimport.ts
|
|
11312
11442
|
var import_unimport = require("unimport");
|
|
11313
|
-
var
|
|
11443
|
+
var import_node_path15 = require("path");
|
|
11314
11444
|
var unimport_default = defineWxtModule({
|
|
11315
11445
|
name: "wxt:built-in:unimport",
|
|
11316
11446
|
setup(wxt2) {
|
|
@@ -11334,8 +11464,10 @@ var unimport_default = defineWxtModule({
|
|
|
11334
11464
|
wxt2.hooks.hook("prepare:types", async (_2, entries) => {
|
|
11335
11465
|
await unimport.init();
|
|
11336
11466
|
entries.push(await getImportsDeclarationEntry(unimport));
|
|
11337
|
-
if (
|
|
11338
|
-
entries.push(
|
|
11467
|
+
if (options.eslintrc.enabled === false) return;
|
|
11468
|
+
entries.push(
|
|
11469
|
+
await getEslintConfigEntry(unimport, options.eslintrc.enabled, options)
|
|
11470
|
+
);
|
|
11339
11471
|
});
|
|
11340
11472
|
addViteConfig(wxt2, () => ({
|
|
11341
11473
|
plugins: [vitePlugin(unimport)]
|
|
@@ -11355,7 +11487,7 @@ function vitePlugin(unimport) {
|
|
|
11355
11487
|
name: "wxt:unimport",
|
|
11356
11488
|
async transform(code, id) {
|
|
11357
11489
|
if (id.includes("node_modules")) return;
|
|
11358
|
-
if (!ENABLED_EXTENSIONS.has((0,
|
|
11490
|
+
if (!ENABLED_EXTENSIONS.has((0, import_node_path15.extname)(id))) return;
|
|
11359
11491
|
const injected = await unimport.injectImports(code, id);
|
|
11360
11492
|
return {
|
|
11361
11493
|
code: injected.code,
|
|
@@ -11376,15 +11508,33 @@ async function getImportsDeclarationEntry(unimport) {
|
|
|
11376
11508
|
tsReference: true
|
|
11377
11509
|
};
|
|
11378
11510
|
}
|
|
11379
|
-
async function
|
|
11380
|
-
const globals2 = {
|
|
11381
|
-
|
|
11382
|
-
|
|
11383
|
-
|
|
11384
|
-
|
|
11511
|
+
async function getEslintConfigEntry(unimport, version2, options) {
|
|
11512
|
+
const globals2 = (await unimport.getImports()).map((i2) => i2.as ?? i2.name).filter(Boolean).sort().reduce((globals3, name) => {
|
|
11513
|
+
globals3[name] = options.eslintrc.globalsPropValue;
|
|
11514
|
+
return globals3;
|
|
11515
|
+
}, {});
|
|
11516
|
+
if (version2 <= 8) return getEslint8ConfigEntry(options, globals2);
|
|
11517
|
+
else return getEslint9ConfigEntry(options, globals2);
|
|
11518
|
+
}
|
|
11519
|
+
function getEslint8ConfigEntry(options, globals2) {
|
|
11520
|
+
return {
|
|
11521
|
+
path: options.eslintrc.filePath,
|
|
11522
|
+
text: JSON.stringify({ globals: globals2 }, null, 2) + "\n"
|
|
11523
|
+
};
|
|
11524
|
+
}
|
|
11525
|
+
function getEslint9ConfigEntry(options, globals2) {
|
|
11385
11526
|
return {
|
|
11386
11527
|
path: options.eslintrc.filePath,
|
|
11387
|
-
text: JSON.stringify(
|
|
11528
|
+
text: `const globals = ${JSON.stringify(globals2, null, 2)}
|
|
11529
|
+
|
|
11530
|
+
export default {
|
|
11531
|
+
name: "wxt/auto-imports",
|
|
11532
|
+
languageOptions: {
|
|
11533
|
+
globals,
|
|
11534
|
+
sourceType: "module",
|
|
11535
|
+
},
|
|
11536
|
+
};
|
|
11537
|
+
`
|
|
11388
11538
|
};
|
|
11389
11539
|
}
|
|
11390
11540
|
|
|
@@ -11428,19 +11578,19 @@ async function registerWxt(command, inlineConfig = {}, getServer) {
|
|
|
11428
11578
|
|
|
11429
11579
|
// src/core/utils/fs.ts
|
|
11430
11580
|
async function writeFileIfDifferent(file, newContents) {
|
|
11431
|
-
const existingContents = await
|
|
11581
|
+
const existingContents = await import_fs_extra5.default.readFile(file, "utf-8").catch(() => void 0);
|
|
11432
11582
|
if (existingContents !== newContents) {
|
|
11433
|
-
await
|
|
11583
|
+
await import_fs_extra5.default.writeFile(file, newContents);
|
|
11434
11584
|
}
|
|
11435
11585
|
}
|
|
11436
11586
|
async function getPublicFiles() {
|
|
11437
|
-
if (!await
|
|
11587
|
+
if (!await import_fs_extra5.default.exists(wxt.config.publicDir)) return [];
|
|
11438
11588
|
const files = await (0, import_fast_glob2.default)("**/*", { cwd: wxt.config.publicDir });
|
|
11439
11589
|
return files.map(unnormalizePath);
|
|
11440
11590
|
}
|
|
11441
11591
|
|
|
11442
11592
|
// src/core/utils/building/build-entrypoints.ts
|
|
11443
|
-
var
|
|
11593
|
+
var import_fs_extra6 = __toESM(require("fs-extra"), 1);
|
|
11444
11594
|
var import_path2 = require("path");
|
|
11445
11595
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
11446
11596
|
async function buildEntrypoints(groups, spinner) {
|
|
@@ -11471,11 +11621,11 @@ async function copyPublicDirectory() {
|
|
|
11471
11621
|
const publicAssets = [];
|
|
11472
11622
|
for (const file of files) {
|
|
11473
11623
|
const absoluteDest = (0, import_path2.resolve)(wxt.config.outDir, file.relativeDest);
|
|
11474
|
-
await
|
|
11624
|
+
await import_fs_extra6.default.ensureDir((0, import_path2.dirname)(absoluteDest));
|
|
11475
11625
|
if ("absoluteSrc" in file) {
|
|
11476
|
-
await
|
|
11626
|
+
await import_fs_extra6.default.copyFile(file.absoluteSrc, absoluteDest);
|
|
11477
11627
|
} else {
|
|
11478
|
-
await
|
|
11628
|
+
await import_fs_extra6.default.writeFile(absoluteDest, file.contents, "utf8");
|
|
11479
11629
|
}
|
|
11480
11630
|
publicAssets.push({
|
|
11481
11631
|
type: "asset",
|
|
@@ -11579,15 +11729,15 @@ function findEffectedSteps(changedFile, currentOutput) {
|
|
|
11579
11729
|
|
|
11580
11730
|
// src/core/utils/building/find-entrypoints.ts
|
|
11581
11731
|
var import_path3 = require("path");
|
|
11582
|
-
var
|
|
11732
|
+
var import_fs_extra7 = __toESM(require("fs-extra"), 1);
|
|
11583
11733
|
var import_minimatch = require("minimatch");
|
|
11584
11734
|
var import_linkedom3 = require("linkedom");
|
|
11585
11735
|
var import_json5 = __toESM(require("json5"), 1);
|
|
11586
11736
|
var import_fast_glob3 = __toESM(require("fast-glob"), 1);
|
|
11587
11737
|
var import_picocolors2 = __toESM(require("picocolors"), 1);
|
|
11588
11738
|
async function findEntrypoints() {
|
|
11589
|
-
await
|
|
11590
|
-
await
|
|
11739
|
+
await import_fs_extra7.default.mkdir(wxt.config.wxtDir, { recursive: true });
|
|
11740
|
+
await import_fs_extra7.default.writeJson((0, import_path3.resolve)(wxt.config.wxtDir, "tsconfig.json"), {});
|
|
11591
11741
|
const relativePaths = await (0, import_fast_glob3.default)(Object.keys(PATH_GLOB_TO_TYPE_MAP), {
|
|
11592
11742
|
cwd: wxt.config.entrypointsDir
|
|
11593
11743
|
});
|
|
@@ -11896,7 +12046,7 @@ async function getSidepanelEntrypoint(info) {
|
|
|
11896
12046
|
};
|
|
11897
12047
|
}
|
|
11898
12048
|
async function getHtmlEntrypointOptions(info, keyMap, queries, parsers) {
|
|
11899
|
-
const content = await
|
|
12049
|
+
const content = await import_fs_extra7.default.readFile(info.inputPath, "utf-8");
|
|
11900
12050
|
const { document } = (0, import_linkedom3.parseHTML)(content);
|
|
11901
12051
|
const options = {};
|
|
11902
12052
|
const defaultQuery = (manifestKey) => document.querySelector(`meta[name='manifest.${manifestKey}']`)?.getAttribute("content");
|
|
@@ -11958,9 +12108,9 @@ var PATH_GLOB_TO_TYPE_MAP = {
|
|
|
11958
12108
|
var CONTENT_SCRIPT_OUT_DIR = "content-scripts";
|
|
11959
12109
|
|
|
11960
12110
|
// src/core/utils/building/generate-wxt-dir.ts
|
|
11961
|
-
var
|
|
11962
|
-
var
|
|
11963
|
-
var
|
|
12111
|
+
var import_fs_extra8 = __toESM(require("fs-extra"), 1);
|
|
12112
|
+
var import_node_path16 = require("path");
|
|
12113
|
+
var import_node_path17 = __toESM(require("path"), 1);
|
|
11964
12114
|
|
|
11965
12115
|
// src/core/utils/i18n.ts
|
|
11966
12116
|
var predefinedMessages = {
|
|
@@ -12001,7 +12151,7 @@ function parseI18nMessages(messagesJson) {
|
|
|
12001
12151
|
|
|
12002
12152
|
// src/core/utils/building/generate-wxt-dir.ts
|
|
12003
12153
|
async function generateTypesDir(entrypoints) {
|
|
12004
|
-
await
|
|
12154
|
+
await import_fs_extra8.default.ensureDir(wxt.config.typesDir);
|
|
12005
12155
|
const entries = [
|
|
12006
12156
|
// Hard-coded entries
|
|
12007
12157
|
{ module: "wxt/vite-builder-env" }
|
|
@@ -12018,11 +12168,11 @@ async function generateTypesDir(entrypoints) {
|
|
|
12018
12168
|
entries.push(getMainDeclarationEntry(entries));
|
|
12019
12169
|
const absoluteFileEntries = entries.filter((entry) => "path" in entry).map((entry) => ({
|
|
12020
12170
|
...entry,
|
|
12021
|
-
path: (0,
|
|
12171
|
+
path: (0, import_node_path16.resolve)(wxt.config.wxtDir, entry.path)
|
|
12022
12172
|
}));
|
|
12023
12173
|
await Promise.all(
|
|
12024
12174
|
absoluteFileEntries.map(async (file) => {
|
|
12025
|
-
await
|
|
12175
|
+
await import_fs_extra8.default.ensureDir((0, import_node_path16.dirname)(file.path));
|
|
12026
12176
|
await writeFileIfDifferent(file.path, file.text);
|
|
12027
12177
|
})
|
|
12028
12178
|
);
|
|
@@ -12077,13 +12227,13 @@ declare module "wxt/browser" {
|
|
|
12077
12227
|
`;
|
|
12078
12228
|
let messages;
|
|
12079
12229
|
if (defaultLocale) {
|
|
12080
|
-
const defaultLocalePath =
|
|
12230
|
+
const defaultLocalePath = import_node_path17.default.resolve(
|
|
12081
12231
|
wxt.config.publicDir,
|
|
12082
12232
|
"_locales",
|
|
12083
12233
|
defaultLocale,
|
|
12084
12234
|
"messages.json"
|
|
12085
12235
|
);
|
|
12086
|
-
const content = JSON.parse(await
|
|
12236
|
+
const content = JSON.parse(await import_fs_extra8.default.readFile(defaultLocalePath, "utf-8"));
|
|
12087
12237
|
messages = parseI18nMessages(content);
|
|
12088
12238
|
} else {
|
|
12089
12239
|
messages = parseI18nMessages({});
|
|
@@ -12130,8 +12280,8 @@ function getMainDeclarationEntry(references) {
|
|
|
12130
12280
|
if ("module" in ref) {
|
|
12131
12281
|
return lines.push(`/// <reference types="${ref.module}" />`);
|
|
12132
12282
|
} else if (ref.tsReference) {
|
|
12133
|
-
const absolutePath = (0,
|
|
12134
|
-
const relativePath = (0,
|
|
12283
|
+
const absolutePath = (0, import_node_path16.resolve)(wxt.config.wxtDir, ref.path);
|
|
12284
|
+
const relativePath = (0, import_node_path16.relative)(wxt.config.wxtDir, absolutePath);
|
|
12135
12285
|
lines.push(`/// <reference types="./${normalizePath(relativePath)}" />`);
|
|
12136
12286
|
}
|
|
12137
12287
|
});
|
|
@@ -12142,7 +12292,7 @@ function getMainDeclarationEntry(references) {
|
|
|
12142
12292
|
}
|
|
12143
12293
|
async function getTsConfigEntry() {
|
|
12144
12294
|
const dir = wxt.config.wxtDir;
|
|
12145
|
-
const getTsconfigPath = (path12) => normalizePath((0,
|
|
12295
|
+
const getTsconfigPath = (path12) => normalizePath((0, import_node_path16.relative)(dir, path12));
|
|
12146
12296
|
const paths = Object.entries(wxt.config.alias).flatMap(([alias, absolutePath]) => {
|
|
12147
12297
|
const aliasPath = getTsconfigPath(absolutePath);
|
|
12148
12298
|
return [
|
|
@@ -12182,20 +12332,20 @@ var import_c12 = require("c12");
|
|
|
12182
12332
|
var import_node_path21 = __toESM(require("path"), 1);
|
|
12183
12333
|
|
|
12184
12334
|
// src/core/utils/cache.ts
|
|
12185
|
-
var
|
|
12335
|
+
var import_fs_extra9 = __toESM(require("fs-extra"), 1);
|
|
12186
12336
|
var import_path4 = require("path");
|
|
12187
12337
|
function createFsCache(wxtDir) {
|
|
12188
12338
|
const getPath = (key) => (0, import_path4.resolve)(wxtDir, "cache", encodeURIComponent(key));
|
|
12189
12339
|
return {
|
|
12190
12340
|
async set(key, value) {
|
|
12191
12341
|
const path12 = getPath(key);
|
|
12192
|
-
await (0,
|
|
12342
|
+
await (0, import_fs_extra9.ensureDir)((0, import_path4.dirname)(path12));
|
|
12193
12343
|
await writeFileIfDifferent(path12, value);
|
|
12194
12344
|
},
|
|
12195
12345
|
async get(key) {
|
|
12196
12346
|
const path12 = getPath(key);
|
|
12197
12347
|
try {
|
|
12198
|
-
return await
|
|
12348
|
+
return await import_fs_extra9.default.readFile(path12, "utf-8");
|
|
12199
12349
|
} catch {
|
|
12200
12350
|
return void 0;
|
|
12201
12351
|
}
|
|
@@ -12211,36 +12361,29 @@ var import_node_process13 = require("process");
|
|
|
12211
12361
|
init_utils2();
|
|
12212
12362
|
var import_node_tty4 = require("tty");
|
|
12213
12363
|
var import_node_util13 = require("util");
|
|
12214
|
-
var
|
|
12364
|
+
var import_node_path20 = require("path");
|
|
12215
12365
|
|
|
12216
12366
|
// src/core/utils/building/resolve-config.ts
|
|
12217
12367
|
var import_defu = __toESM(require("defu"), 1);
|
|
12368
|
+
var import_fs_extra10 = __toESM(require("fs-extra"), 1);
|
|
12369
|
+
var import_fast_glob4 = __toESM(require("fast-glob"), 1);
|
|
12218
12370
|
|
|
12219
|
-
// src/core/utils/
|
|
12220
|
-
var
|
|
12221
|
-
|
|
12222
|
-
async function getPackageJson() {
|
|
12223
|
-
const file = (0, import_node_path20.resolve)(wxt.config.root, "package.json");
|
|
12371
|
+
// src/core/utils/eslint.ts
|
|
12372
|
+
var import_meta = {};
|
|
12373
|
+
async function getEslintVersion() {
|
|
12224
12374
|
try {
|
|
12225
|
-
|
|
12226
|
-
|
|
12227
|
-
wxt.logger.debug(
|
|
12228
|
-
`Failed to read package.json at: ${file}. Returning undefined.`
|
|
12375
|
+
const require2 = (await import("module")).default.createRequire(
|
|
12376
|
+
import_meta.url
|
|
12229
12377
|
);
|
|
12230
|
-
|
|
12378
|
+
const { ESLint } = require2("eslint");
|
|
12379
|
+
return ESLint.version?.split(".") ?? [];
|
|
12380
|
+
} catch (error) {
|
|
12381
|
+
return [];
|
|
12231
12382
|
}
|
|
12232
12383
|
}
|
|
12233
|
-
function isModuleInstalled(name) {
|
|
12234
|
-
return import(
|
|
12235
|
-
/* @vite-ignore */
|
|
12236
|
-
name
|
|
12237
|
-
).then(() => true).catch(() => false);
|
|
12238
|
-
}
|
|
12239
12384
|
|
|
12240
12385
|
// src/core/utils/building/resolve-config.ts
|
|
12241
|
-
var
|
|
12242
|
-
var import_fast_glob4 = __toESM(require("fast-glob"), 1);
|
|
12243
|
-
var import_meta = {};
|
|
12386
|
+
var import_meta2 = {};
|
|
12244
12387
|
async function resolveConfig(inlineConfig, command) {
|
|
12245
12388
|
let userConfig = {};
|
|
12246
12389
|
let userConfigMetadata;
|
|
@@ -12354,7 +12497,7 @@ async function resolveConfig(inlineConfig, command) {
|
|
|
12354
12497
|
srcDir,
|
|
12355
12498
|
typesDir,
|
|
12356
12499
|
wxtDir,
|
|
12357
|
-
zip: resolveZipConfig(root, mergedConfig),
|
|
12500
|
+
zip: resolveZipConfig(root, outBaseDir, mergedConfig),
|
|
12358
12501
|
transformManifest: mergedConfig.transformManifest,
|
|
12359
12502
|
analysis: resolveAnalysisConfig(root, mergedConfig),
|
|
12360
12503
|
userConfigMetadata: userConfigMetadata ?? {},
|
|
@@ -12399,7 +12542,7 @@ async function mergeInlineConfig(inlineConfig, userConfig) {
|
|
|
12399
12542
|
...builderConfig
|
|
12400
12543
|
};
|
|
12401
12544
|
}
|
|
12402
|
-
function resolveZipConfig(root, mergedConfig) {
|
|
12545
|
+
function resolveZipConfig(root, outBaseDir, mergedConfig) {
|
|
12403
12546
|
const downloadedPackagesDir = import_node_path21.default.resolve(root, ".wxt/local_modules");
|
|
12404
12547
|
return {
|
|
12405
12548
|
name: void 0,
|
|
@@ -12418,6 +12561,8 @@ function resolveZipConfig(root, mergedConfig) {
|
|
|
12418
12561
|
// Tests
|
|
12419
12562
|
"**/__tests__/**",
|
|
12420
12563
|
"**/*.+(test|spec).?(c|m)+(j|t)s?(x)",
|
|
12564
|
+
// Output directory
|
|
12565
|
+
`${import_node_path21.default.relative(root, outBaseDir)}/**`,
|
|
12421
12566
|
// From user
|
|
12422
12567
|
...mergedConfig.zip?.excludeSources ?? []
|
|
12423
12568
|
],
|
|
@@ -12444,16 +12589,6 @@ function resolveAnalysisConfig(root, mergedConfig) {
|
|
|
12444
12589
|
}
|
|
12445
12590
|
async function getUnimportOptions(wxtDir, srcDir, logger, config) {
|
|
12446
12591
|
if (config.imports === false) return false;
|
|
12447
|
-
const rawEslintEnabled = config.imports?.eslintrc?.enabled;
|
|
12448
|
-
let eslintEnabled;
|
|
12449
|
-
switch (rawEslintEnabled) {
|
|
12450
|
-
case void 0:
|
|
12451
|
-
case "auto":
|
|
12452
|
-
eslintEnabled = await isModuleInstalled("eslint");
|
|
12453
|
-
break;
|
|
12454
|
-
default:
|
|
12455
|
-
eslintEnabled = rawEslintEnabled;
|
|
12456
|
-
}
|
|
12457
12592
|
const defaultOptions = {
|
|
12458
12593
|
debugLog: logger.debug,
|
|
12459
12594
|
imports: [
|
|
@@ -12471,19 +12606,41 @@ async function getUnimportOptions(wxtDir, srcDir, logger, config) {
|
|
|
12471
12606
|
dirsScanOptions: {
|
|
12472
12607
|
cwd: srcDir
|
|
12473
12608
|
},
|
|
12474
|
-
eslintrc:
|
|
12475
|
-
enabled: eslintEnabled,
|
|
12476
|
-
filePath: import_node_path21.default.resolve(wxtDir, "eslintrc-auto-import.json"),
|
|
12477
|
-
globalsPropValue: true
|
|
12478
|
-
}
|
|
12609
|
+
eslintrc: await getUnimportEslintOptions(wxtDir, config.imports?.eslintrc)
|
|
12479
12610
|
};
|
|
12480
12611
|
return (0, import_defu.default)(
|
|
12481
12612
|
config.imports ?? {},
|
|
12482
12613
|
defaultOptions
|
|
12483
12614
|
);
|
|
12484
12615
|
}
|
|
12616
|
+
async function getUnimportEslintOptions(wxtDir, options) {
|
|
12617
|
+
const rawEslintEnabled = options?.enabled ?? "auto";
|
|
12618
|
+
let eslintEnabled;
|
|
12619
|
+
switch (rawEslintEnabled) {
|
|
12620
|
+
case "auto":
|
|
12621
|
+
const version2 = await getEslintVersion();
|
|
12622
|
+
let major = parseInt(version2[0]);
|
|
12623
|
+
if (major <= 8) eslintEnabled = 8;
|
|
12624
|
+
else if (major >= 9) eslintEnabled = 9;
|
|
12625
|
+
else eslintEnabled = 8;
|
|
12626
|
+
break;
|
|
12627
|
+
case true:
|
|
12628
|
+
eslintEnabled = 8;
|
|
12629
|
+
break;
|
|
12630
|
+
default:
|
|
12631
|
+
eslintEnabled = rawEslintEnabled;
|
|
12632
|
+
}
|
|
12633
|
+
return {
|
|
12634
|
+
enabled: eslintEnabled,
|
|
12635
|
+
filePath: import_node_path21.default.resolve(
|
|
12636
|
+
wxtDir,
|
|
12637
|
+
eslintEnabled === 9 ? "eslint-auto-imports.mjs" : "eslintrc-auto-import.json"
|
|
12638
|
+
),
|
|
12639
|
+
globalsPropValue: true
|
|
12640
|
+
};
|
|
12641
|
+
}
|
|
12485
12642
|
async function resolveWxtModuleDir() {
|
|
12486
|
-
const requireResolve = require?.resolve ?? (await import("module")).default.createRequire(
|
|
12643
|
+
const requireResolve = require?.resolve ?? (await import("module")).default.createRequire(import_meta2.url).resolve;
|
|
12487
12644
|
return import_node_path21.default.resolve(requireResolve("wxt"), "../..");
|
|
12488
12645
|
}
|
|
12489
12646
|
async function isDirMissing(dir) {
|
|
@@ -12606,7 +12763,7 @@ var import_fs_extra11 = __toESM(require("fs-extra"), 1);
|
|
|
12606
12763
|
var import_node_path22 = require("path");
|
|
12607
12764
|
var import_esbuild = require("esbuild");
|
|
12608
12765
|
var import_node_url3 = require("url");
|
|
12609
|
-
var
|
|
12766
|
+
var import_meta3 = {};
|
|
12610
12767
|
async function importEntrypointFile(path12) {
|
|
12611
12768
|
wxt.logger.debug("Loading file metadata:", path12);
|
|
12612
12769
|
const normalPath = normalizePath(path12);
|
|
@@ -12623,7 +12780,7 @@ async function importEntrypointFile(path12) {
|
|
|
12623
12780
|
["Text:", text2, "No imports:", textNoImports, "Code:", code].join("\n")
|
|
12624
12781
|
);
|
|
12625
12782
|
const jiti = (0, import_jiti.default)(
|
|
12626
|
-
typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(
|
|
12783
|
+
typeof __filename !== "undefined" ? __filename : (0, import_node_url3.fileURLToPath)(import_meta3.url),
|
|
12627
12784
|
{
|
|
12628
12785
|
cache: false,
|
|
12629
12786
|
debug: wxt.config.debug,
|
|
@@ -12632,6 +12789,13 @@ async function importEntrypointFile(path12) {
|
|
|
12632
12789
|
"webextension-polyfill": (0, import_node_path22.resolve)(
|
|
12633
12790
|
wxt.config.wxtModuleDir,
|
|
12634
12791
|
"dist/virtual/mock-browser.js"
|
|
12792
|
+
),
|
|
12793
|
+
// TODO: Resolve this virtual module to some file with
|
|
12794
|
+
// `export default {}` instead of this hack of using another file with
|
|
12795
|
+
// a default export.
|
|
12796
|
+
"virtual:app-config": (0, import_node_path22.resolve)(
|
|
12797
|
+
wxt.config.wxtModuleDir,
|
|
12798
|
+
"dist/virtual/mock-browser.js"
|
|
12635
12799
|
)
|
|
12636
12800
|
},
|
|
12637
12801
|
// Continue using node to load TS files even if `bun run --bun` is detected. Jiti does not
|
|
@@ -12691,7 +12855,7 @@ function getEsbuildOptions(opts) {
|
|
|
12691
12855
|
|
|
12692
12856
|
// src/core/utils/building/internal-build.ts
|
|
12693
12857
|
var import_picocolors5 = __toESM(require("picocolors"), 1);
|
|
12694
|
-
var
|
|
12858
|
+
var import_fs_extra15 = __toESM(require("fs-extra"), 1);
|
|
12695
12859
|
|
|
12696
12860
|
// src/core/utils/log/printBuildSummary.ts
|
|
12697
12861
|
var import_path5 = require("path");
|
|
@@ -12800,13 +12964,13 @@ function getChunkSortWeight(filename) {
|
|
|
12800
12964
|
var import_picocolors4 = __toESM(require("picocolors"), 1);
|
|
12801
12965
|
|
|
12802
12966
|
// package.json
|
|
12803
|
-
var version = "0.18.
|
|
12967
|
+
var version = "0.18.11";
|
|
12804
12968
|
|
|
12805
12969
|
// src/core/utils/building/internal-build.ts
|
|
12806
12970
|
var import_fast_glob5 = __toESM(require("fast-glob"), 1);
|
|
12807
12971
|
|
|
12808
12972
|
// src/core/utils/manifest.ts
|
|
12809
|
-
var
|
|
12973
|
+
var import_fs_extra14 = __toESM(require("fs-extra"), 1);
|
|
12810
12974
|
var import_path6 = require("path");
|
|
12811
12975
|
|
|
12812
12976
|
// src/core/utils/content-security-policy.ts
|
|
@@ -12911,11 +13075,26 @@ function getContentScriptJs(config, entrypoint) {
|
|
|
12911
13075
|
return [getEntrypointBundlePath(entrypoint, config.outDir, ".js")];
|
|
12912
13076
|
}
|
|
12913
13077
|
|
|
13078
|
+
// src/core/utils/package.ts
|
|
13079
|
+
var import_node_path24 = require("path");
|
|
13080
|
+
var import_fs_extra13 = __toESM(require("fs-extra"), 1);
|
|
13081
|
+
async function getPackageJson() {
|
|
13082
|
+
const file = (0, import_node_path24.resolve)(wxt.config.root, "package.json");
|
|
13083
|
+
try {
|
|
13084
|
+
return await import_fs_extra13.default.readJson(file);
|
|
13085
|
+
} catch (err) {
|
|
13086
|
+
wxt.logger.debug(
|
|
13087
|
+
`Failed to read package.json at: ${file}. Returning undefined.`
|
|
13088
|
+
);
|
|
13089
|
+
return {};
|
|
13090
|
+
}
|
|
13091
|
+
}
|
|
13092
|
+
|
|
12914
13093
|
// src/core/utils/manifest.ts
|
|
12915
13094
|
var import_defu2 = __toESM(require("defu"), 1);
|
|
12916
13095
|
async function writeManifest(manifest, output) {
|
|
12917
13096
|
const str = wxt.config.mode === "production" ? JSON.stringify(manifest) : JSON.stringify(manifest, null, 2);
|
|
12918
|
-
await
|
|
13097
|
+
await import_fs_extra14.default.ensureDir(wxt.config.outDir);
|
|
12919
13098
|
await writeFileIfDifferent((0, import_path6.resolve)(wxt.config.outDir, "manifest.json"), str);
|
|
12920
13099
|
output.publicAssets.unshift({
|
|
12921
13100
|
type: "asset",
|
|
@@ -13451,7 +13630,7 @@ async function rebuild(allEntrypoints, entrypointGroups, existingOutput = {
|
|
|
13451
13630
|
}
|
|
13452
13631
|
|
|
13453
13632
|
// src/core/utils/building/internal-build.ts
|
|
13454
|
-
var
|
|
13633
|
+
var import_node_path25 = require("path");
|
|
13455
13634
|
|
|
13456
13635
|
// src/core/utils/validation.ts
|
|
13457
13636
|
function validateEntrypoints(entrypoints) {
|
|
@@ -13523,8 +13702,8 @@ async function internalBuild() {
|
|
|
13523
13702
|
)}`
|
|
13524
13703
|
);
|
|
13525
13704
|
const startTime = Date.now();
|
|
13526
|
-
await
|
|
13527
|
-
await
|
|
13705
|
+
await import_fs_extra15.default.rm(wxt.config.outDir, { recursive: true, force: true });
|
|
13706
|
+
await import_fs_extra15.default.ensureDir(wxt.config.outDir);
|
|
13528
13707
|
const entrypoints = await findEntrypoints();
|
|
13529
13708
|
wxt.logger.debug("Detected entrypoints:", entrypoints);
|
|
13530
13709
|
const validationResults = validateEntrypoints(entrypoints);
|
|
@@ -13550,7 +13729,7 @@ async function internalBuild() {
|
|
|
13550
13729
|
}
|
|
13551
13730
|
if (wxt.config.analysis.enabled) {
|
|
13552
13731
|
await combineAnalysisStats();
|
|
13553
|
-
const statsPath = (0,
|
|
13732
|
+
const statsPath = (0, import_node_path25.relative)(wxt.config.root, wxt.config.analysis.outputFile);
|
|
13554
13733
|
wxt.logger.info(
|
|
13555
13734
|
`Analysis complete:
|
|
13556
13735
|
${import_picocolors5.default.gray("\u2514\u2500")} ${import_picocolors5.default.yellow(statsPath)}`
|
|
@@ -13579,7 +13758,7 @@ async function combineAnalysisStats() {
|
|
|
13579
13758
|
filename: wxt.config.analysis.outputFile
|
|
13580
13759
|
});
|
|
13581
13760
|
if (!wxt.config.analysis.keepArtifacts) {
|
|
13582
|
-
await Promise.all(absolutePaths.map((statsFile) =>
|
|
13761
|
+
await Promise.all(absolutePaths.map((statsFile) => import_fs_extra15.default.remove(statsFile)));
|
|
13583
13762
|
}
|
|
13584
13763
|
}
|
|
13585
13764
|
function printValidationResults({
|
|
@@ -13598,12 +13777,12 @@ function printValidationResults({
|
|
|
13598
13777
|
return map;
|
|
13599
13778
|
}, /* @__PURE__ */ new Map());
|
|
13600
13779
|
Array.from(entrypointErrors.entries()).forEach(([entrypoint, errors2]) => {
|
|
13601
|
-
|
|
13780
|
+
wxt.logger.log((0, import_node_path25.relative)(cwd, entrypoint.inputPath));
|
|
13602
13781
|
console.log();
|
|
13603
13782
|
errors2.forEach((err) => {
|
|
13604
13783
|
const type = err.type === "error" ? import_picocolors5.default.red("ERROR") : import_picocolors5.default.yellow("WARN");
|
|
13605
13784
|
const recieved = import_picocolors5.default.dim(`(recieved: ${JSON.stringify(err.value)})`);
|
|
13606
|
-
|
|
13785
|
+
wxt.logger.log(` - ${type} ${err.message} ${recieved}`);
|
|
13607
13786
|
});
|
|
13608
13787
|
console.log();
|
|
13609
13788
|
});
|
|
@@ -13616,36 +13795,41 @@ async function build(config) {
|
|
|
13616
13795
|
}
|
|
13617
13796
|
|
|
13618
13797
|
// src/core/clean.ts
|
|
13619
|
-
var
|
|
13798
|
+
var import_node_path26 = __toESM(require("path"), 1);
|
|
13620
13799
|
var import_fast_glob6 = __toESM(require("fast-glob"), 1);
|
|
13621
|
-
var
|
|
13800
|
+
var import_fs_extra16 = __toESM(require("fs-extra"), 1);
|
|
13622
13801
|
var import_picocolors6 = __toESM(require("picocolors"), 1);
|
|
13623
|
-
async function clean(
|
|
13624
|
-
|
|
13802
|
+
async function clean(config) {
|
|
13803
|
+
if (typeof config === "string") {
|
|
13804
|
+
config = { root: config };
|
|
13805
|
+
}
|
|
13806
|
+
await registerWxt("build", config);
|
|
13807
|
+
wxt.logger.info("Cleaning Project");
|
|
13808
|
+
const root = wxt.config.root;
|
|
13625
13809
|
const tempDirs = [
|
|
13626
13810
|
"node_modules/.vite",
|
|
13627
13811
|
"node_modules/.cache",
|
|
13628
13812
|
"**/.wxt",
|
|
13629
|
-
|
|
13813
|
+
`${import_node_path26.default.relative(root, wxt.config.outBaseDir)}/*`
|
|
13630
13814
|
];
|
|
13631
|
-
|
|
13815
|
+
wxt.logger.debug("Looking for:", tempDirs.map(import_picocolors6.default.cyan).join(", "));
|
|
13632
13816
|
const directories = await (0, import_fast_glob6.default)(tempDirs, {
|
|
13633
|
-
cwd:
|
|
13817
|
+
cwd: root,
|
|
13634
13818
|
absolute: true,
|
|
13635
13819
|
onlyDirectories: true,
|
|
13636
13820
|
deep: 2
|
|
13637
13821
|
});
|
|
13638
13822
|
if (directories.length === 0) {
|
|
13639
|
-
|
|
13823
|
+
wxt.logger.debug("No generated files found.");
|
|
13640
13824
|
return;
|
|
13641
13825
|
}
|
|
13642
|
-
|
|
13826
|
+
wxt.logger.debug(
|
|
13643
13827
|
"Found:",
|
|
13644
|
-
directories.map((dir) => import_picocolors6.default.cyan(
|
|
13828
|
+
directories.map((dir) => import_picocolors6.default.cyan(import_node_path26.default.relative(root, dir))).join(", ")
|
|
13645
13829
|
);
|
|
13646
13830
|
for (const directory of directories) {
|
|
13647
|
-
await
|
|
13648
|
-
|
|
13831
|
+
await import_fs_extra16.default.rm(directory, { force: true, recursive: true });
|
|
13832
|
+
wxt.logger.debug("Deleted " + import_picocolors6.default.cyan(import_node_path26.default.relative(root, directory)));
|
|
13649
13833
|
}
|
|
13650
13834
|
}
|
|
13651
13835
|
|
|
@@ -13660,12 +13844,12 @@ function defineRunnerConfig(config) {
|
|
|
13660
13844
|
}
|
|
13661
13845
|
|
|
13662
13846
|
// src/core/runners/wsl.ts
|
|
13663
|
-
var
|
|
13847
|
+
var import_node_path27 = require("path");
|
|
13664
13848
|
function createWslRunner() {
|
|
13665
13849
|
return {
|
|
13666
13850
|
async openBrowser() {
|
|
13667
13851
|
wxt.logger.warn(
|
|
13668
|
-
`Cannot open browser when using WSL. Load "${(0,
|
|
13852
|
+
`Cannot open browser when using WSL. Load "${(0, import_node_path27.relative)(
|
|
13669
13853
|
process.cwd(),
|
|
13670
13854
|
wxt.config.outDir
|
|
13671
13855
|
)}" as an unpacked extension manually`
|
|
@@ -13718,6 +13902,9 @@ function createWebExtRunner() {
|
|
|
13718
13902
|
...userConfig,
|
|
13719
13903
|
target: wxt.config.browser === "firefox" ? "firefox-desktop" : "chromium",
|
|
13720
13904
|
sourceDir: wxt.config.outDir,
|
|
13905
|
+
// Don't add a "Reload Manager" extension alongside dev extension, WXT
|
|
13906
|
+
// already handles reloads intenrally.
|
|
13907
|
+
noReloadManagerExtension: true,
|
|
13721
13908
|
// WXT handles reloads, so disable auto-reload behaviors in web-ext
|
|
13722
13909
|
noReload: true,
|
|
13723
13910
|
noInput: true
|
|
@@ -13752,12 +13939,12 @@ var DEFAULT_CHROMIUM_PREFS = {
|
|
|
13752
13939
|
};
|
|
13753
13940
|
|
|
13754
13941
|
// src/core/runners/safari.ts
|
|
13755
|
-
var
|
|
13942
|
+
var import_node_path28 = require("path");
|
|
13756
13943
|
function createSafariRunner() {
|
|
13757
13944
|
return {
|
|
13758
13945
|
async openBrowser() {
|
|
13759
13946
|
wxt.logger.warn(
|
|
13760
|
-
`Cannot Safari using web-ext. Load "${(0,
|
|
13947
|
+
`Cannot Safari using web-ext. Load "${(0, import_node_path28.relative)(
|
|
13761
13948
|
process.cwd(),
|
|
13762
13949
|
wxt.config.outDir
|
|
13763
13950
|
)}" as an unpacked extension manually`
|
|
@@ -13769,12 +13956,12 @@ function createSafariRunner() {
|
|
|
13769
13956
|
}
|
|
13770
13957
|
|
|
13771
13958
|
// src/core/runners/manual.ts
|
|
13772
|
-
var
|
|
13959
|
+
var import_node_path29 = require("path");
|
|
13773
13960
|
function createManualRunner() {
|
|
13774
13961
|
return {
|
|
13775
13962
|
async openBrowser() {
|
|
13776
13963
|
wxt.logger.info(
|
|
13777
|
-
`Load "${(0,
|
|
13964
|
+
`Load "${(0, import_node_path29.relative)(
|
|
13778
13965
|
process.cwd(),
|
|
13779
13966
|
wxt.config.outDir
|
|
13780
13967
|
)}" as an unpacked extension manually`
|
|
@@ -13802,7 +13989,7 @@ async function createExtensionRunner() {
|
|
|
13802
13989
|
// src/core/create-server.ts
|
|
13803
13990
|
var import_async_mutex = require("async-mutex");
|
|
13804
13991
|
var import_picocolors7 = __toESM(require("picocolors"), 1);
|
|
13805
|
-
var
|
|
13992
|
+
var import_node_path30 = require("path");
|
|
13806
13993
|
async function createServer(inlineConfig) {
|
|
13807
13994
|
await registerWxt("serve", inlineConfig, async (config) => {
|
|
13808
13995
|
const { port, hostname } = config.dev.server;
|
|
@@ -13904,7 +14091,7 @@ function createFileReloader(server) {
|
|
|
13904
14091
|
return;
|
|
13905
14092
|
}
|
|
13906
14093
|
wxt.logger.info(
|
|
13907
|
-
`Changed: ${Array.from(new Set(fileChanges)).map((file) => import_picocolors7.default.dim((0,
|
|
14094
|
+
`Changed: ${Array.from(new Set(fileChanges)).map((file) => import_picocolors7.default.dim((0, import_node_path30.relative)(wxt.config.root, file))).join(", ")}`
|
|
13908
14095
|
);
|
|
13909
14096
|
const allEntrypoints = await findEntrypoints();
|
|
13910
14097
|
try {
|
|
@@ -13918,19 +14105,19 @@ function createFileReloader(server) {
|
|
|
13918
14105
|
switch (changes.type) {
|
|
13919
14106
|
case "extension-reload":
|
|
13920
14107
|
server.reloadExtension();
|
|
13921
|
-
|
|
14108
|
+
wxt.logger.success(`Reloaded extension`);
|
|
13922
14109
|
break;
|
|
13923
14110
|
case "html-reload":
|
|
13924
14111
|
const { reloadedNames } = reloadHtmlPages(
|
|
13925
14112
|
changes.rebuildGroups,
|
|
13926
14113
|
server
|
|
13927
14114
|
);
|
|
13928
|
-
|
|
14115
|
+
wxt.logger.success(`Reloaded: ${getFilenameList(reloadedNames)}`);
|
|
13929
14116
|
break;
|
|
13930
14117
|
case "content-script-reload":
|
|
13931
14118
|
reloadContentScripts(changes.changedSteps, server);
|
|
13932
14119
|
const rebuiltNames = changes.rebuildGroups.flat().map((entry) => entry.name);
|
|
13933
|
-
|
|
14120
|
+
wxt.logger.success(`Reloaded: ${getFilenameList(rebuiltNames)}`);
|
|
13934
14121
|
break;
|
|
13935
14122
|
}
|
|
13936
14123
|
} catch (err) {
|
|
@@ -13992,8 +14179,8 @@ function getExternalOutputDependencies(server) {
|
|
|
13992
14179
|
// src/core/initialize.ts
|
|
13993
14180
|
var import_prompts = __toESM(require("prompts"), 1);
|
|
13994
14181
|
var import_giget = require("giget");
|
|
13995
|
-
var
|
|
13996
|
-
var
|
|
14182
|
+
var import_fs_extra17 = __toESM(require("fs-extra"), 1);
|
|
14183
|
+
var import_node_path31 = __toESM(require("path"), 1);
|
|
13997
14184
|
var import_picocolors8 = __toESM(require("picocolors"), 1);
|
|
13998
14185
|
async function initialize(options) {
|
|
13999
14186
|
consola.info("Initalizing new project");
|
|
@@ -14040,18 +14227,18 @@ async function initialize(options) {
|
|
|
14040
14227
|
input.directory ??= options.directory;
|
|
14041
14228
|
input.template ??= defaultTemplate;
|
|
14042
14229
|
input.packageManager ??= options.packageManager;
|
|
14043
|
-
const isExists = await
|
|
14230
|
+
const isExists = await import_fs_extra17.default.pathExists(input.directory);
|
|
14044
14231
|
if (isExists) {
|
|
14045
|
-
const isEmpty = (await
|
|
14232
|
+
const isEmpty = (await import_fs_extra17.default.readdir(input.directory)).length === 0;
|
|
14046
14233
|
if (!isEmpty) {
|
|
14047
14234
|
consola.error(
|
|
14048
|
-
`The directory ${
|
|
14235
|
+
`The directory ${import_node_path31.default.resolve(input.directory)} is not empty. Aborted.`
|
|
14049
14236
|
);
|
|
14050
14237
|
process.exit(1);
|
|
14051
14238
|
}
|
|
14052
14239
|
}
|
|
14053
14240
|
await cloneProject(input);
|
|
14054
|
-
const cdPath =
|
|
14241
|
+
const cdPath = import_node_path31.default.relative(process.cwd(), import_node_path31.default.resolve(input.directory));
|
|
14055
14242
|
console.log();
|
|
14056
14243
|
consola.log(
|
|
14057
14244
|
`\u2728 WXT project created with the ${TEMPLATE_COLORS[input.template.name]?.(input.template.name) ?? input.template.name} template.`
|
|
@@ -14093,9 +14280,9 @@ async function cloneProject({
|
|
|
14093
14280
|
dir: directory,
|
|
14094
14281
|
force: true
|
|
14095
14282
|
});
|
|
14096
|
-
await
|
|
14097
|
-
|
|
14098
|
-
|
|
14283
|
+
await import_fs_extra17.default.move(
|
|
14284
|
+
import_node_path31.default.join(directory, "_gitignore"),
|
|
14285
|
+
import_node_path31.default.join(directory, ".gitignore")
|
|
14099
14286
|
).catch(
|
|
14100
14287
|
(err) => consola.warn("Failed to move _gitignore to .gitignore:", err)
|
|
14101
14288
|
);
|
|
@@ -14127,8 +14314,8 @@ async function prepare(config) {
|
|
|
14127
14314
|
}
|
|
14128
14315
|
|
|
14129
14316
|
// src/core/zip.ts
|
|
14130
|
-
var
|
|
14131
|
-
var
|
|
14317
|
+
var import_node_path32 = __toESM(require("path"), 1);
|
|
14318
|
+
var import_fs_extra18 = __toESM(require("fs-extra"), 1);
|
|
14132
14319
|
var import_minimatch2 = require("minimatch");
|
|
14133
14320
|
var import_jszip = __toESM(require("jszip"), 1);
|
|
14134
14321
|
var import_fast_glob7 = __toESM(require("fast-glob"), 1);
|
|
@@ -14139,21 +14326,21 @@ async function zip(config) {
|
|
|
14139
14326
|
wxt.logger.info("Zipping extension...");
|
|
14140
14327
|
const zipFiles = [];
|
|
14141
14328
|
const projectName = wxt.config.zip.name ?? kebabCaseAlphanumeric(
|
|
14142
|
-
(await getPackageJson())?.name ||
|
|
14329
|
+
(await getPackageJson())?.name || import_node_path32.default.dirname(process.cwd())
|
|
14143
14330
|
);
|
|
14144
14331
|
const applyTemplate = (template) => template.replaceAll("{{name}}", projectName).replaceAll("{{browser}}", wxt.config.browser).replaceAll(
|
|
14145
14332
|
"{{version}}",
|
|
14146
14333
|
output.manifest.version_name ?? output.manifest.version
|
|
14147
14334
|
).replaceAll("{{mode}}", wxt.config.mode).replaceAll("{{manifestVersion}}", `mv${wxt.config.manifestVersion}`);
|
|
14148
|
-
await
|
|
14335
|
+
await import_fs_extra18.default.ensureDir(wxt.config.outBaseDir);
|
|
14149
14336
|
const outZipFilename = applyTemplate(wxt.config.zip.artifactTemplate);
|
|
14150
|
-
const outZipPath =
|
|
14337
|
+
const outZipPath = import_node_path32.default.resolve(wxt.config.outBaseDir, outZipFilename);
|
|
14151
14338
|
await zipDir(wxt.config.outDir, outZipPath);
|
|
14152
14339
|
zipFiles.push(outZipPath);
|
|
14153
14340
|
if (wxt.config.browser === "firefox") {
|
|
14154
14341
|
const { overrides, files: downloadedPackages } = await downloadPrivatePackages();
|
|
14155
14342
|
const sourcesZipFilename = applyTemplate(wxt.config.zip.sourcesTemplate);
|
|
14156
|
-
const sourcesZipPath =
|
|
14343
|
+
const sourcesZipPath = import_node_path32.default.resolve(
|
|
14157
14344
|
wxt.config.outBaseDir,
|
|
14158
14345
|
sourcesZipFilename
|
|
14159
14346
|
);
|
|
@@ -14192,31 +14379,32 @@ async function zipDir(directory, outputPath, options) {
|
|
|
14192
14379
|
const filesToZip = [
|
|
14193
14380
|
...files,
|
|
14194
14381
|
...(options?.additionalFiles ?? []).map(
|
|
14195
|
-
(file) =>
|
|
14382
|
+
(file) => import_node_path32.default.relative(directory, file)
|
|
14196
14383
|
)
|
|
14197
14384
|
];
|
|
14198
14385
|
for (const file of filesToZip) {
|
|
14199
|
-
const absolutePath =
|
|
14386
|
+
const absolutePath = import_node_path32.default.resolve(directory, file);
|
|
14200
14387
|
if (file.endsWith(".json")) {
|
|
14201
|
-
const content = await
|
|
14388
|
+
const content = await import_fs_extra18.default.readFile(absolutePath, "utf-8");
|
|
14202
14389
|
archive.file(
|
|
14203
14390
|
file,
|
|
14204
14391
|
await options?.transform?.(absolutePath, file, content) || content
|
|
14205
14392
|
);
|
|
14206
14393
|
} else {
|
|
14207
|
-
const content = await
|
|
14394
|
+
const content = await import_fs_extra18.default.readFile(absolutePath);
|
|
14208
14395
|
archive.file(file, content);
|
|
14209
14396
|
}
|
|
14210
14397
|
}
|
|
14211
14398
|
await options?.additionalWork?.(archive);
|
|
14212
|
-
|
|
14213
|
-
|
|
14214
|
-
|
|
14215
|
-
compression: "
|
|
14216
|
-
|
|
14217
|
-
|
|
14218
|
-
|
|
14219
|
-
|
|
14399
|
+
await new Promise(
|
|
14400
|
+
(resolve18, reject) => archive.generateNodeStream({
|
|
14401
|
+
type: "nodebuffer",
|
|
14402
|
+
...wxt.config.zip.compressionLevel === 0 ? { compression: "STORE" } : {
|
|
14403
|
+
compression: "DEFLATE",
|
|
14404
|
+
compressionOptions: { level: wxt.config.zip.compressionLevel }
|
|
14405
|
+
}
|
|
14406
|
+
}).pipe(import_fs_extra18.default.createWriteStream(outputPath)).on("error", reject).on("close", resolve18)
|
|
14407
|
+
);
|
|
14220
14408
|
}
|
|
14221
14409
|
async function downloadPrivatePackages() {
|
|
14222
14410
|
const overrides = {};
|
|
@@ -14245,14 +14433,14 @@ async function downloadPrivatePackages() {
|
|
|
14245
14433
|
}
|
|
14246
14434
|
function addOverridesToPackageJson(absolutePackageJsonPath, content, overrides) {
|
|
14247
14435
|
if (Object.keys(overrides).length === 0) return content;
|
|
14248
|
-
const packageJsonDir =
|
|
14436
|
+
const packageJsonDir = import_node_path32.default.dirname(absolutePackageJsonPath);
|
|
14249
14437
|
const oldPackage = JSON.parse(content);
|
|
14250
14438
|
const newPackage = {
|
|
14251
14439
|
...oldPackage,
|
|
14252
14440
|
[wxt.pm.overridesKey]: { ...oldPackage[wxt.pm.overridesKey] }
|
|
14253
14441
|
};
|
|
14254
14442
|
Object.entries(overrides).forEach(([key, absolutePath]) => {
|
|
14255
|
-
newPackage[wxt.pm.overridesKey][key] = "file://./" + normalizePath(
|
|
14443
|
+
newPackage[wxt.pm.overridesKey][key] = "file://./" + normalizePath(import_node_path32.default.relative(packageJsonDir, absolutePath));
|
|
14256
14444
|
});
|
|
14257
14445
|
return JSON.stringify(newPackage, null, 2);
|
|
14258
14446
|
}
|