@pipelab/cli 2.0.0-beta.25 → 2.0.0-beta.26
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.
|
@@ -8,7 +8,7 @@ import fs$1, { mkdir, readdir, stat, writeFile } from "node:fs/promises";
|
|
|
8
8
|
import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
|
|
9
9
|
import { StringDecoder } from "node:string_decoder";
|
|
10
10
|
import { aborted, callbackify, debuglog, inspect, promisify, stripVTControlCharacters } from "node:util";
|
|
11
|
-
import
|
|
11
|
+
import process$1, { execArgv, execPath, hrtime, platform as platform$1 } from "node:process";
|
|
12
12
|
import tty from "node:tty";
|
|
13
13
|
import { scheduler, setImmediate as setImmediate$1, setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
14
14
|
import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:events";
|
|
@@ -180,9 +180,9 @@ const getSubprocessResult = ({ stdout }) => {
|
|
|
180
180
|
//#region ../../packages/core-node/node_modules/execa/lib/utils/standard-stream.js
|
|
181
181
|
const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
|
|
182
182
|
const STANDARD_STREAMS = [
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
183
|
+
process$1.stdin,
|
|
184
|
+
process$1.stdout,
|
|
185
|
+
process$1.stderr
|
|
186
186
|
];
|
|
187
187
|
const STANDARD_STREAMS_ALIASES = [
|
|
188
188
|
"stdin",
|
|
@@ -303,9 +303,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
|
|
|
303
303
|
//#endregion
|
|
304
304
|
//#region ../../node_modules/figures/node_modules/is-unicode-supported/index.js
|
|
305
305
|
function isUnicodeSupported() {
|
|
306
|
-
const { env } =
|
|
306
|
+
const { env } = process$1;
|
|
307
307
|
const { TERM, TERM_PROGRAM } = env;
|
|
308
|
-
if (
|
|
308
|
+
if (process$1.platform !== "win32") return TERM !== "linux";
|
|
309
309
|
return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
310
310
|
}
|
|
311
311
|
//#endregion
|
|
@@ -1201,7 +1201,7 @@ function traversePathUp(startPath) {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
//#endregion
|
|
1203
1203
|
//#region ../../node_modules/npm-run-path/index.js
|
|
1204
|
-
const npmRunPath = ({ cwd =
|
|
1204
|
+
const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
|
|
1205
1205
|
const cwdPath = path.resolve(toPath(cwd));
|
|
1206
1206
|
const result = [];
|
|
1207
1207
|
const pathParts = pathOption.split(path.delimiter);
|
|
@@ -1219,7 +1219,7 @@ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
|
|
|
1219
1219
|
const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
|
|
1220
1220
|
if (!pathParts.includes(pathPart)) result.push(pathPart);
|
|
1221
1221
|
};
|
|
1222
|
-
const npmRunPathEnv = ({ env =
|
|
1222
|
+
const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
|
|
1223
1223
|
env = { ...env };
|
|
1224
1224
|
const pathName = pathKey({ env });
|
|
1225
1225
|
options.path = env[pathName];
|
|
@@ -2326,7 +2326,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
|
|
|
2326
2326
|
};
|
|
2327
2327
|
const getDefaultCwd = () => {
|
|
2328
2328
|
try {
|
|
2329
|
-
return
|
|
2329
|
+
return process$1.cwd();
|
|
2330
2330
|
} catch (error) {
|
|
2331
2331
|
error.message = `The current directory does not exist.\n${error.message}`;
|
|
2332
2332
|
throw error;
|
|
@@ -2361,7 +2361,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
|
2361
2361
|
options.killSignal = normalizeKillSignal(options.killSignal);
|
|
2362
2362
|
options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
|
|
2363
2363
|
options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
|
|
2364
|
-
if (
|
|
2364
|
+
if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
|
|
2365
2365
|
return {
|
|
2366
2366
|
file,
|
|
2367
2367
|
commandArguments,
|
|
@@ -2388,7 +2388,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
|
|
|
2388
2388
|
});
|
|
2389
2389
|
const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
|
|
2390
2390
|
const env = extendEnv ? {
|
|
2391
|
-
...
|
|
2391
|
+
...process$1.env,
|
|
2392
2392
|
...envOption
|
|
2393
2393
|
} : envOption;
|
|
2394
2394
|
if (preferLocal || node) return npmRunPathEnv({
|
|
@@ -3355,12 +3355,12 @@ const guessStreamDirection = {
|
|
|
3355
3355
|
}
|
|
3356
3356
|
};
|
|
3357
3357
|
const getStandardStreamDirection = (value) => {
|
|
3358
|
-
if ([0,
|
|
3358
|
+
if ([0, process$1.stdin].includes(value)) return "input";
|
|
3359
3359
|
if ([
|
|
3360
3360
|
1,
|
|
3361
3361
|
2,
|
|
3362
|
-
|
|
3363
|
-
|
|
3362
|
+
process$1.stdout,
|
|
3363
|
+
process$1.stderr
|
|
3364
3364
|
].includes(value)) return "output";
|
|
3365
3365
|
};
|
|
3366
3366
|
const DEFAULT_DIRECTION = "output";
|
|
@@ -4400,9 +4400,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
|
|
|
4400
4400
|
Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
|
|
4401
4401
|
};
|
|
4402
4402
|
const getIpcExport = () => {
|
|
4403
|
-
const anyProcess =
|
|
4403
|
+
const anyProcess = process$1;
|
|
4404
4404
|
const isSubprocess = true;
|
|
4405
|
-
const ipc =
|
|
4405
|
+
const ipc = process$1.channel !== void 0;
|
|
4406
4406
|
return {
|
|
4407
4407
|
...getIpcMethods(anyProcess, isSubprocess, ipc),
|
|
4408
4408
|
getCancelSignal: getCancelSignal$1.bind(void 0, {
|
|
@@ -4872,7 +4872,7 @@ var SignalExitFallback = class extends SignalExitBase {
|
|
|
4872
4872
|
};
|
|
4873
4873
|
var SignalExit = class extends SignalExitBase {
|
|
4874
4874
|
/* c8 ignore start */
|
|
4875
|
-
#hupSig = process$
|
|
4875
|
+
#hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
4876
4876
|
/* c8 ignore stop */
|
|
4877
4877
|
#emitter = new Emitter();
|
|
4878
4878
|
#process;
|
|
@@ -4967,8 +4967,8 @@ var SignalExit = class extends SignalExitBase {
|
|
|
4967
4967
|
} else return og.call(this.#process, ev, ...args);
|
|
4968
4968
|
}
|
|
4969
4969
|
};
|
|
4970
|
-
const process$
|
|
4971
|
-
const { onExit, load, unload } = signalExitWrap(processOk(process$
|
|
4970
|
+
const process$2 = globalThis.process;
|
|
4971
|
+
const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
4972
4972
|
//#endregion
|
|
4973
4973
|
//#region ../../packages/core-node/node_modules/execa/lib/terminate/cleanup.js
|
|
4974
4974
|
const cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
|
package/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { a as __require, n as __esmMin, s as __toESM, t as __commonJSMin } from "./chunk-M2dkpuaD.mjs";
|
|
3
3
|
import { a as WebSocketError, c as transformUrl, d as SubscriptionRequiredError, f as usePlugins, i as savedFileMigrator, l as isSupabaseAvailable, n as connectionsMigrator, o as isWebSocketRequestMessage, r as fileRepoMigrations, s as isRequired, t as appSettingsMigrator, u as supabase, v as processGraph, w as useLogger } from "./src-PqA91tjF.mjs";
|
|
4
4
|
import "./dist-BC_B45iu.mjs";
|
|
5
|
-
import { a as setupPipelineConfigFileByName, c as setupSettingsConfigFile, d as extractTarGz, f as extractZip, g as execa, h as require_balanced_match, i as setupConnectionsConfigFile, l as downloadFile, m as require_commonjs$8, n as deletePipelineConfigFileByPath, o as setupPipelineConfigFileByPath, p as getFolderSize, s as setupProjectsConfigFile, t as deletePipelineConfigFileByName } from "./config-
|
|
5
|
+
import { a as setupPipelineConfigFileByName, c as setupSettingsConfigFile, d as extractTarGz, f as extractZip, g as execa, h as require_balanced_match, i as setupConnectionsConfigFile, l as downloadFile, m as require_commonjs$8, n as deletePipelineConfigFileByPath, o as setupPipelineConfigFileByPath, p as getFolderSize, s as setupProjectsConfigFile, t as deletePipelineConfigFileByName } from "./config-Crzou2fs.mjs";
|
|
6
6
|
import path, { delimiter, dirname, isAbsolute, join, normalize, resolve, sep } from "node:path";
|
|
7
7
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
8
8
|
import { homedir, platform, release } from "node:os";
|
|
@@ -14,12 +14,12 @@ import { webcrypto } from "node:crypto";
|
|
|
14
14
|
import { dirname as dirname$1, isAbsolute as isAbsolute$1, posix, relative, sep as sep$1 } from "path";
|
|
15
15
|
import { execFile } from "node:child_process";
|
|
16
16
|
import { promisify, stripVTControlCharacters, styleText } from "node:util";
|
|
17
|
-
import
|
|
17
|
+
import process$1, { platform as platform$1, stdin, stdout } from "node:process";
|
|
18
18
|
import { ReadStream } from "node:tty";
|
|
19
19
|
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
20
20
|
import dns from "node:dns/promises";
|
|
21
21
|
import * as _ from "node:readline";
|
|
22
|
-
import P
|
|
22
|
+
import P, { createInterface } from "node:readline";
|
|
23
23
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
24
24
|
//#region ../../node_modules/tsdown/esm-shims.js
|
|
25
25
|
var getFilename, getDirname, __dirname$1;
|
|
@@ -14144,17 +14144,17 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14144
14144
|
//#endregion
|
|
14145
14145
|
//#region ../../node_modules/npm-install-checks/lib/current-env.js
|
|
14146
14146
|
var require_current_env = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14147
|
-
const process$
|
|
14147
|
+
const process$3 = __require("node:process");
|
|
14148
14148
|
const nodeOs = __require("node:os");
|
|
14149
14149
|
const fs$19 = __require("node:fs");
|
|
14150
14150
|
function isMusl(file) {
|
|
14151
14151
|
return file.includes("libc.musl-") || file.includes("ld-musl-");
|
|
14152
14152
|
}
|
|
14153
14153
|
function os() {
|
|
14154
|
-
return process$
|
|
14154
|
+
return process$3.platform;
|
|
14155
14155
|
}
|
|
14156
14156
|
function cpu() {
|
|
14157
|
-
return process$
|
|
14157
|
+
return process$3.arch;
|
|
14158
14158
|
}
|
|
14159
14159
|
const LDD_PATH = "/usr/bin/ldd";
|
|
14160
14160
|
function getFamilyFromFilesystem() {
|
|
@@ -14168,10 +14168,10 @@ var require_current_env = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14168
14168
|
}
|
|
14169
14169
|
}
|
|
14170
14170
|
function getFamilyFromReport() {
|
|
14171
|
-
const originalExclude = process$
|
|
14172
|
-
process$
|
|
14173
|
-
const report = process$
|
|
14174
|
-
process$
|
|
14171
|
+
const originalExclude = process$3.report.excludeNetwork;
|
|
14172
|
+
process$3.report.excludeNetwork = true;
|
|
14173
|
+
const report = process$3.report.getReport();
|
|
14174
|
+
process$3.report.excludeNetwork = originalExclude;
|
|
14175
14175
|
if (report.header?.glibcVersionRuntime) family = "glibc";
|
|
14176
14176
|
else if (Array.isArray(report.sharedObjects) && report.sharedObjects.some(isMusl)) family = "musl";
|
|
14177
14177
|
else family = null;
|
|
@@ -14201,7 +14201,7 @@ var require_current_env = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14201
14201
|
},
|
|
14202
14202
|
runtime: {
|
|
14203
14203
|
name: "node",
|
|
14204
|
-
version: env.nodeVersion || process$
|
|
14204
|
+
version: env.nodeVersion || process$3.version
|
|
14205
14205
|
}
|
|
14206
14206
|
};
|
|
14207
14207
|
}
|
|
@@ -67563,7 +67563,7 @@ const builtInPlugins = async (options) => {
|
|
|
67563
67563
|
console.log(`[Plugins] Environment preparation took ${Date.now() - envStart}ms`);
|
|
67564
67564
|
const { usePlugins } = await import("./src-BiFlFfFL.mjs");
|
|
67565
67565
|
const { registerPlugins } = usePlugins();
|
|
67566
|
-
const { webSocketServer } = await import("./src-
|
|
67566
|
+
const { webSocketServer } = await import("./src-C5nYOcma.mjs");
|
|
67567
67567
|
webSocketServer.broadcast("startup:progress", { type: "ready" });
|
|
67568
67568
|
(async () => {
|
|
67569
67569
|
const totalStart = Date.now();
|
|
@@ -67583,7 +67583,7 @@ const builtInPlugins = async (options) => {
|
|
|
67583
67583
|
"@pipelab/plugin-netlify"
|
|
67584
67584
|
]) pluginsToLoad.set(name, "latest");
|
|
67585
67585
|
try {
|
|
67586
|
-
const { setupSettingsConfigFile } = await import("./config-
|
|
67586
|
+
const { setupSettingsConfigFile } = await import("./config-DWSqA648.mjs");
|
|
67587
67587
|
const settingsPlugins = (await (await setupSettingsConfigFile(options.context)).getConfig())?.plugins || [];
|
|
67588
67588
|
for (const plugin of settingsPlugins) if (plugin.name) if (plugin.enabled) {
|
|
67589
67589
|
if (!pluginsToLoad.has(plugin.name)) pluginsToLoad.set(plugin.name, "latest");
|
|
@@ -69316,7 +69316,7 @@ async function runPipelineCommand(file, options, version) {
|
|
|
69316
69316
|
}
|
|
69317
69317
|
//#endregion
|
|
69318
69318
|
//#region package.json
|
|
69319
|
-
var version$2 = "2.0.0-beta.
|
|
69319
|
+
var version$2 = "2.0.0-beta.26";
|
|
69320
69320
|
//#endregion
|
|
69321
69321
|
//#region src/paths.ts
|
|
69322
69322
|
const getDefaultUserDataPath = () => {
|
|
@@ -70082,7 +70082,7 @@ let p = class {
|
|
|
70082
70082
|
this.state = "cancel", this.close();
|
|
70083
70083
|
}, { once: !0 });
|
|
70084
70084
|
}
|
|
70085
|
-
this.rl = P
|
|
70085
|
+
this.rl = P.createInterface({
|
|
70086
70086
|
input: this.input,
|
|
70087
70087
|
tabSize: 2,
|
|
70088
70088
|
prompt: "",
|
|
@@ -70279,7 +70279,7 @@ var nt = class extends p {
|
|
|
70279
70279
|
//#endregion
|
|
70280
70280
|
//#region ../../node_modules/@clack/prompts/dist/index.mjs
|
|
70281
70281
|
function Ze() {
|
|
70282
|
-
return
|
|
70282
|
+
return process$1.platform !== "win32" ? process$1.env.TERM !== "linux" : !!process$1.env.CI || !!process$1.env.WT_SESSION || !!process$1.env.TERMINUS_SUBLIME || process$1.env.ConEmuTask === "{cmd::Cmder}" || process$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1.env.TERM_PROGRAM === "vscode" || process$1.env.TERM === "xterm-256color" || process$1.env.TERM === "alacritty" || process$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
70283
70283
|
}
|
|
70284
70284
|
const ee = Ze(), ae = () => process.env.CI === "true", w = (e, i) => ee ? e : i, _e = w("◆", "*"), oe = w("■", "x"), ue = w("▲", "x"), F = w("◇", "o"), le = w("┌", "T"), d = w("│", "|"), E = w("└", "—");
|
|
70285
70285
|
w("┐", "T");
|
|
@@ -70503,7 +70503,7 @@ ${r ? styleText("cyan", E) : ""}
|
|
|
70503
70503
|
`), n = u.reduce((a, l) => Math.max(fastStringWidth(l), a), 0);
|
|
70504
70504
|
return wrapAnsi(e, i - (u.map(s).reduce((a, l) => Math.max(fastStringWidth(l), a), 0) - n), r);
|
|
70505
70505
|
}, wt = (e = "", i = "", s) => {
|
|
70506
|
-
const r = s?.output ??
|
|
70506
|
+
const r = s?.output ?? process$1.stdout, u$9 = s?.withGuide ?? u.withGuide, n = s?.format ?? ft, o = [
|
|
70507
70507
|
"",
|
|
70508
70508
|
...vt(e, O$1(r) - 6, n).split(`
|
|
70509
70509
|
`).map(n),
|
|
@@ -75460,7 +75460,7 @@ var require_command = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
75460
75460
|
const childProcess = __require("node:child_process");
|
|
75461
75461
|
const path$1 = __require("node:path");
|
|
75462
75462
|
const fs$2 = __require("node:fs");
|
|
75463
|
-
const process$
|
|
75463
|
+
const process$2 = __require("node:process");
|
|
75464
75464
|
const { Argument, humanReadableArgName } = require_argument();
|
|
75465
75465
|
const { CommanderError } = require_error();
|
|
75466
75466
|
const { Help } = require_help();
|
|
@@ -75511,10 +75511,10 @@ var require_command = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
75511
75511
|
this._showHelpAfterError = false;
|
|
75512
75512
|
this._showSuggestionAfterError = true;
|
|
75513
75513
|
this._outputConfiguration = {
|
|
75514
|
-
writeOut: (str) => process$
|
|
75515
|
-
writeErr: (str) => process$
|
|
75516
|
-
getOutHelpWidth: () => process$
|
|
75517
|
-
getErrHelpWidth: () => process$
|
|
75514
|
+
writeOut: (str) => process$2.stdout.write(str),
|
|
75515
|
+
writeErr: (str) => process$2.stderr.write(str),
|
|
75516
|
+
getOutHelpWidth: () => process$2.stdout.isTTY ? process$2.stdout.columns : void 0,
|
|
75517
|
+
getErrHelpWidth: () => process$2.stderr.isTTY ? process$2.stderr.columns : void 0,
|
|
75518
75518
|
outputError: (str, write) => write(str)
|
|
75519
75519
|
};
|
|
75520
75520
|
this._hidden = false;
|
|
@@ -75868,7 +75868,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
75868
75868
|
*/
|
|
75869
75869
|
_exit(exitCode, code, message) {
|
|
75870
75870
|
if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code, message));
|
|
75871
|
-
process$
|
|
75871
|
+
process$2.exit(exitCode);
|
|
75872
75872
|
}
|
|
75873
75873
|
/**
|
|
75874
75874
|
* Register callback `fn` for the command.
|
|
@@ -76207,11 +76207,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
76207
76207
|
if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
|
|
76208
76208
|
parseOptions = parseOptions || {};
|
|
76209
76209
|
if (argv === void 0 && parseOptions.from === void 0) {
|
|
76210
|
-
if (process$
|
|
76211
|
-
const execArgv = process$
|
|
76210
|
+
if (process$2.versions?.electron) parseOptions.from = "electron";
|
|
76211
|
+
const execArgv = process$2.execArgv ?? [];
|
|
76212
76212
|
if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
|
|
76213
76213
|
}
|
|
76214
|
-
if (argv === void 0) argv = process$
|
|
76214
|
+
if (argv === void 0) argv = process$2.argv;
|
|
76215
76215
|
this.rawArgs = argv.slice();
|
|
76216
76216
|
let userArgs;
|
|
76217
76217
|
switch (parseOptions.from) {
|
|
@@ -76221,7 +76221,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
76221
76221
|
userArgs = argv.slice(2);
|
|
76222
76222
|
break;
|
|
76223
76223
|
case "electron":
|
|
76224
|
-
if (process$
|
|
76224
|
+
if (process$2.defaultApp) {
|
|
76225
76225
|
this._scriptPath = argv[1];
|
|
76226
76226
|
userArgs = argv.slice(2);
|
|
76227
76227
|
} else userArgs = argv.slice(1);
|
|
@@ -76335,15 +76335,15 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
76335
76335
|
}
|
|
76336
76336
|
launchWithNode = sourceExt.includes(path$1.extname(executableFile));
|
|
76337
76337
|
let proc;
|
|
76338
|
-
if (process$
|
|
76338
|
+
if (process$2.platform !== "win32") if (launchWithNode) {
|
|
76339
76339
|
args.unshift(executableFile);
|
|
76340
|
-
args = incrementNodeInspectorPort(process$
|
|
76341
|
-
proc = childProcess.spawn(process$
|
|
76340
|
+
args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
|
|
76341
|
+
proc = childProcess.spawn(process$2.argv[0], args, { stdio: "inherit" });
|
|
76342
76342
|
} else proc = childProcess.spawn(executableFile, args, { stdio: "inherit" });
|
|
76343
76343
|
else {
|
|
76344
76344
|
args.unshift(executableFile);
|
|
76345
|
-
args = incrementNodeInspectorPort(process$
|
|
76346
|
-
proc = childProcess.spawn(process$
|
|
76345
|
+
args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
|
|
76346
|
+
proc = childProcess.spawn(process$2.execPath, args, { stdio: "inherit" });
|
|
76347
76347
|
}
|
|
76348
76348
|
if (!proc.killed) [
|
|
76349
76349
|
"SIGUSR1",
|
|
@@ -76352,14 +76352,14 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
76352
76352
|
"SIGINT",
|
|
76353
76353
|
"SIGHUP"
|
|
76354
76354
|
].forEach((signal) => {
|
|
76355
|
-
process$
|
|
76355
|
+
process$2.on(signal, () => {
|
|
76356
76356
|
if (proc.killed === false && proc.exitCode === null) proc.kill(signal);
|
|
76357
76357
|
});
|
|
76358
76358
|
});
|
|
76359
76359
|
const exitCallback = this._exitCallback;
|
|
76360
76360
|
proc.on("close", (code) => {
|
|
76361
76361
|
code = code ?? 1;
|
|
76362
|
-
if (!exitCallback) process$
|
|
76362
|
+
if (!exitCallback) process$2.exit(code);
|
|
76363
76363
|
else exitCallback(new CommanderError(code, "commander.executeSubCommandAsync", "(close)"));
|
|
76364
76364
|
});
|
|
76365
76365
|
proc.on("error", (err) => {
|
|
@@ -76371,7 +76371,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
76371
76371
|
- ${executableDirMessage}`;
|
|
76372
76372
|
throw new Error(executableMissing);
|
|
76373
76373
|
} else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
|
|
76374
|
-
if (!exitCallback) process$
|
|
76374
|
+
if (!exitCallback) process$2.exit(1);
|
|
76375
76375
|
else {
|
|
76376
76376
|
const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
|
|
76377
76377
|
wrappedError.nestedError = err;
|
|
@@ -76777,13 +76777,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
76777
76777
|
*/
|
|
76778
76778
|
_parseOptionsEnv() {
|
|
76779
76779
|
this.options.forEach((option) => {
|
|
76780
|
-
if (option.envVar && option.envVar in process$
|
|
76780
|
+
if (option.envVar && option.envVar in process$2.env) {
|
|
76781
76781
|
const optionKey = option.attributeName();
|
|
76782
76782
|
if (this.getOptionValue(optionKey) === void 0 || [
|
|
76783
76783
|
"default",
|
|
76784
76784
|
"config",
|
|
76785
76785
|
"env"
|
|
76786
|
-
].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$
|
|
76786
|
+
].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$2.env[option.envVar]);
|
|
76787
76787
|
else this.emit(`optionEnv:${option.name()}`);
|
|
76788
76788
|
}
|
|
76789
76789
|
});
|
|
@@ -77162,7 +77162,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
77162
77162
|
*/
|
|
77163
77163
|
help(contextOptions) {
|
|
77164
77164
|
this.outputHelp(contextOptions);
|
|
77165
|
-
let exitCode = process$
|
|
77165
|
+
let exitCode = process$2.exitCode || 0;
|
|
77166
77166
|
if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
|
|
77167
77167
|
this._exit(exitCode, "commander.help", "(outputHelp)");
|
|
77168
77168
|
}
|
package/package.json
CHANGED