@carbon/upgrade 10.17.0-rc.0 → 10.17.0
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/cli.js +2159 -394
- package/package.json +8 -6
- package/transforms/ARCHITECTURE.md +47 -0
- package/transforms/__testfixtures__/icons-react-size-prop-object-key.input.js +16 -0
- package/transforms/__testfixtures__/icons-react-size-prop-object-key.output.js +16 -0
- package/transforms/__testfixtures__/icons-react-size-prop-rename.input.js +44 -0
- package/transforms/__testfixtures__/icons-react-size-prop-rename.output.js +44 -0
- package/transforms/__testfixtures__/icons-react-size-prop-with-prop.input.js +19 -0
- package/transforms/__testfixtures__/icons-react-size-prop-with-prop.output.js +22 -0
- package/transforms/__testfixtures__/size-prop-update.input.js +143 -0
- package/transforms/__testfixtures__/size-prop-update.output.js +143 -0
- package/transforms/__testfixtures__/small-to-size-prop.input.js +11 -0
- package/transforms/__testfixtures__/small-to-size-prop.output.js +11 -0
- package/transforms/__testfixtures__/sort-prop-types.input.js +7 -0
- package/transforms/__testfixtures__/sort-prop-types.output.js +7 -0
- package/transforms/__testfixtures__/sort-prop-types2.input.js +7 -0
- package/transforms/__testfixtures__/sort-prop-types2.output.js +7 -0
- package/transforms/__testfixtures__/update-carbon-components-react-import-to-scoped.input.js +8 -0
- package/transforms/__testfixtures__/update-carbon-components-react-import-to-scoped.output.js +8 -0
- package/transforms/__tests__/icons-react-size-prop.js +64 -0
- package/transforms/__tests__/size-prop-update-test.js +12 -0
- package/transforms/__tests__/small-to-size-test.js +12 -0
- package/transforms/__tests__/sort-prop-types-test.js +13 -0
- package/transforms/__tests__/update-carbon-components-react-import-to-scoped.js +12 -0
- package/transforms/icons-react-size-prop.js +324 -0
- package/transforms/size-prop-update.js +140 -0
- package/transforms/small-to-size-prop.js +56 -0
- package/transforms/sort-prop-types.js +88 -0
- package/transforms/update-carbon-components-react-import-to-scoped.js +33 -0
package/cli.js
CHANGED
|
@@ -918,15 +918,15 @@ var require_route = __commonJS({
|
|
|
918
918
|
};
|
|
919
919
|
}
|
|
920
920
|
function wrapConversion(toModel, graph) {
|
|
921
|
-
const
|
|
921
|
+
const path4 = [graph[toModel].parent, toModel];
|
|
922
922
|
let fn = conversions[graph[toModel].parent][toModel];
|
|
923
923
|
let cur = graph[toModel].parent;
|
|
924
924
|
while (graph[cur].parent) {
|
|
925
|
-
|
|
925
|
+
path4.unshift(graph[cur].parent);
|
|
926
926
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
927
927
|
cur = graph[cur].parent;
|
|
928
928
|
}
|
|
929
|
-
fn.conversion =
|
|
929
|
+
fn.conversion = path4;
|
|
930
930
|
return fn;
|
|
931
931
|
}
|
|
932
932
|
module2.exports = function(fromModel) {
|
|
@@ -2438,7 +2438,7 @@ var require_windows = __commonJS({
|
|
|
2438
2438
|
module2.exports = isexe;
|
|
2439
2439
|
isexe.sync = sync;
|
|
2440
2440
|
var fs2 = require("fs");
|
|
2441
|
-
function checkPathExt(
|
|
2441
|
+
function checkPathExt(path4, options) {
|
|
2442
2442
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
2443
2443
|
if (!pathext) {
|
|
2444
2444
|
return true;
|
|
@@ -2449,25 +2449,25 @@ var require_windows = __commonJS({
|
|
|
2449
2449
|
}
|
|
2450
2450
|
for (var i = 0; i < pathext.length; i++) {
|
|
2451
2451
|
var p = pathext[i].toLowerCase();
|
|
2452
|
-
if (p &&
|
|
2452
|
+
if (p && path4.substr(-p.length).toLowerCase() === p) {
|
|
2453
2453
|
return true;
|
|
2454
2454
|
}
|
|
2455
2455
|
}
|
|
2456
2456
|
return false;
|
|
2457
2457
|
}
|
|
2458
|
-
function checkStat(stat,
|
|
2458
|
+
function checkStat(stat, path4, options) {
|
|
2459
2459
|
if (!stat.isSymbolicLink() && !stat.isFile()) {
|
|
2460
2460
|
return false;
|
|
2461
2461
|
}
|
|
2462
|
-
return checkPathExt(
|
|
2462
|
+
return checkPathExt(path4, options);
|
|
2463
2463
|
}
|
|
2464
|
-
function isexe(
|
|
2465
|
-
fs2.stat(
|
|
2466
|
-
cb(er, er ? false : checkStat(stat,
|
|
2464
|
+
function isexe(path4, options, cb) {
|
|
2465
|
+
fs2.stat(path4, function(er, stat) {
|
|
2466
|
+
cb(er, er ? false : checkStat(stat, path4, options));
|
|
2467
2467
|
});
|
|
2468
2468
|
}
|
|
2469
|
-
function sync(
|
|
2470
|
-
return checkStat(fs2.statSync(
|
|
2469
|
+
function sync(path4, options) {
|
|
2470
|
+
return checkStat(fs2.statSync(path4), path4, options);
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
2473
2473
|
});
|
|
@@ -2478,13 +2478,13 @@ var require_mode = __commonJS({
|
|
|
2478
2478
|
module2.exports = isexe;
|
|
2479
2479
|
isexe.sync = sync;
|
|
2480
2480
|
var fs2 = require("fs");
|
|
2481
|
-
function isexe(
|
|
2482
|
-
fs2.stat(
|
|
2481
|
+
function isexe(path4, options, cb) {
|
|
2482
|
+
fs2.stat(path4, function(er, stat) {
|
|
2483
2483
|
cb(er, er ? false : checkStat(stat, options));
|
|
2484
2484
|
});
|
|
2485
2485
|
}
|
|
2486
|
-
function sync(
|
|
2487
|
-
return checkStat(fs2.statSync(
|
|
2486
|
+
function sync(path4, options) {
|
|
2487
|
+
return checkStat(fs2.statSync(path4), options);
|
|
2488
2488
|
}
|
|
2489
2489
|
function checkStat(stat, options) {
|
|
2490
2490
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -2517,7 +2517,7 @@ var require_isexe = __commonJS({
|
|
|
2517
2517
|
}
|
|
2518
2518
|
module2.exports = isexe;
|
|
2519
2519
|
isexe.sync = sync;
|
|
2520
|
-
function isexe(
|
|
2520
|
+
function isexe(path4, options, cb) {
|
|
2521
2521
|
if (typeof options === "function") {
|
|
2522
2522
|
cb = options;
|
|
2523
2523
|
options = {};
|
|
@@ -2527,7 +2527,7 @@ var require_isexe = __commonJS({
|
|
|
2527
2527
|
throw new TypeError("callback not provided");
|
|
2528
2528
|
}
|
|
2529
2529
|
return new Promise(function(resolve, reject) {
|
|
2530
|
-
isexe(
|
|
2530
|
+
isexe(path4, options || {}, function(er, is) {
|
|
2531
2531
|
if (er) {
|
|
2532
2532
|
reject(er);
|
|
2533
2533
|
} else {
|
|
@@ -2536,7 +2536,7 @@ var require_isexe = __commonJS({
|
|
|
2536
2536
|
});
|
|
2537
2537
|
});
|
|
2538
2538
|
}
|
|
2539
|
-
core(
|
|
2539
|
+
core(path4, options || {}, function(er, is) {
|
|
2540
2540
|
if (er) {
|
|
2541
2541
|
if (er.code === "EACCES" || options && options.ignoreErrors) {
|
|
2542
2542
|
er = null;
|
|
@@ -2546,9 +2546,9 @@ var require_isexe = __commonJS({
|
|
|
2546
2546
|
cb(er, is);
|
|
2547
2547
|
});
|
|
2548
2548
|
}
|
|
2549
|
-
function sync(
|
|
2549
|
+
function sync(path4, options) {
|
|
2550
2550
|
try {
|
|
2551
|
-
return core.sync(
|
|
2551
|
+
return core.sync(path4, options || {});
|
|
2552
2552
|
} catch (er) {
|
|
2553
2553
|
if (options && options.ignoreErrors || er.code === "EACCES") {
|
|
2554
2554
|
return false;
|
|
@@ -2566,7 +2566,7 @@ var require_which = __commonJS({
|
|
|
2566
2566
|
module2.exports = which;
|
|
2567
2567
|
which.sync = whichSync;
|
|
2568
2568
|
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
2569
|
-
var
|
|
2569
|
+
var path4 = require("path");
|
|
2570
2570
|
var COLON = isWindows ? ";" : ":";
|
|
2571
2571
|
var isexe = require_isexe();
|
|
2572
2572
|
function getNotFoundError(cmd) {
|
|
@@ -2615,7 +2615,7 @@ var require_which = __commonJS({
|
|
|
2615
2615
|
var pathPart = pathEnv[i];
|
|
2616
2616
|
if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
|
|
2617
2617
|
pathPart = pathPart.slice(1, -1);
|
|
2618
|
-
var p =
|
|
2618
|
+
var p = path4.join(pathPart, cmd);
|
|
2619
2619
|
if (!pathPart && /^\.[\\\/]/.test(cmd)) {
|
|
2620
2620
|
p = cmd.slice(0, 2) + p;
|
|
2621
2621
|
}
|
|
@@ -2647,7 +2647,7 @@ var require_which = __commonJS({
|
|
|
2647
2647
|
var pathPart = pathEnv[i];
|
|
2648
2648
|
if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
|
|
2649
2649
|
pathPart = pathPart.slice(1, -1);
|
|
2650
|
-
var p =
|
|
2650
|
+
var p = path4.join(pathPart, cmd);
|
|
2651
2651
|
if (!pathPart && /^\.[\\\/]/.test(cmd)) {
|
|
2652
2652
|
p = cmd.slice(0, 2) + p;
|
|
2653
2653
|
}
|
|
@@ -2679,7 +2679,7 @@ var require_which = __commonJS({
|
|
|
2679
2679
|
var require_resolveCommand = __commonJS({
|
|
2680
2680
|
"../../node_modules/cross-spawn-async/lib/resolveCommand.js"(exports, module2) {
|
|
2681
2681
|
"use strict";
|
|
2682
|
-
var
|
|
2682
|
+
var path4 = require("path");
|
|
2683
2683
|
var which = require_which();
|
|
2684
2684
|
var LRU = require_lru_cache();
|
|
2685
2685
|
var commandCache = new LRU({ max: 50, maxAge: 30 * 1e3 });
|
|
@@ -2687,7 +2687,7 @@ var require_resolveCommand = __commonJS({
|
|
|
2687
2687
|
function resolveCommand(command, noExtension) {
|
|
2688
2688
|
var resolved;
|
|
2689
2689
|
if (hasSepInPathRegExp.test(command)) {
|
|
2690
|
-
command =
|
|
2690
|
+
command = path4.resolve(command);
|
|
2691
2691
|
}
|
|
2692
2692
|
noExtension = !!noExtension;
|
|
2693
2693
|
resolved = commandCache.get(command + "!" + noExtension);
|
|
@@ -2695,7 +2695,7 @@ var require_resolveCommand = __commonJS({
|
|
|
2695
2695
|
return commandCache.get(command);
|
|
2696
2696
|
}
|
|
2697
2697
|
try {
|
|
2698
|
-
resolved = !noExtension ? which.sync(command) : which.sync(command, { pathExt:
|
|
2698
|
+
resolved = !noExtension ? which.sync(command) : which.sync(command, { pathExt: path4.delimiter + (process.env.PATHEXT || "") });
|
|
2699
2699
|
} catch (e) {
|
|
2700
2700
|
}
|
|
2701
2701
|
commandCache.set(command + "!" + noExtension, resolved);
|
|
@@ -2964,20 +2964,20 @@ var require_path_key = __commonJS({
|
|
|
2964
2964
|
var require_npm_run_path = __commonJS({
|
|
2965
2965
|
"../../node_modules/is-git-clean/node_modules/npm-run-path/index.js"(exports, module2) {
|
|
2966
2966
|
"use strict";
|
|
2967
|
-
var
|
|
2967
|
+
var path4 = require("path");
|
|
2968
2968
|
var pathKey = require_path_key();
|
|
2969
2969
|
module2.exports = function(opts) {
|
|
2970
2970
|
opts = opts || {};
|
|
2971
2971
|
var prev;
|
|
2972
|
-
var pth =
|
|
2972
|
+
var pth = path4.resolve(opts.cwd || ".");
|
|
2973
2973
|
var ret = [];
|
|
2974
2974
|
while (prev !== pth) {
|
|
2975
|
-
ret.push(
|
|
2975
|
+
ret.push(path4.join(pth, "node_modules/.bin"));
|
|
2976
2976
|
prev = pth;
|
|
2977
|
-
pth =
|
|
2977
|
+
pth = path4.resolve(pth, "..");
|
|
2978
2978
|
}
|
|
2979
|
-
ret.push(
|
|
2980
|
-
return ret.concat(opts.path || process.env[pathKey()]).join(
|
|
2979
|
+
ret.push(path4.dirname(process.execPath));
|
|
2980
|
+
return ret.concat(opts.path || process.env[pathKey()]).join(path4.delimiter);
|
|
2981
2981
|
};
|
|
2982
2982
|
}
|
|
2983
2983
|
});
|
|
@@ -3372,9 +3372,9 @@ var require_minimatch = __commonJS({
|
|
|
3372
3372
|
"../../node_modules/minimatch/minimatch.js"(exports, module2) {
|
|
3373
3373
|
module2.exports = minimatch;
|
|
3374
3374
|
minimatch.Minimatch = Minimatch;
|
|
3375
|
-
var
|
|
3375
|
+
var path4 = { sep: "/" };
|
|
3376
3376
|
try {
|
|
3377
|
-
|
|
3377
|
+
path4 = require("path");
|
|
3378
3378
|
} catch (er) {
|
|
3379
3379
|
}
|
|
3380
3380
|
var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
@@ -3457,8 +3457,8 @@ var require_minimatch = __commonJS({
|
|
|
3457
3457
|
if (!options)
|
|
3458
3458
|
options = {};
|
|
3459
3459
|
pattern = pattern.trim();
|
|
3460
|
-
if (
|
|
3461
|
-
pattern = pattern.split(
|
|
3460
|
+
if (path4.sep !== "/") {
|
|
3461
|
+
pattern = pattern.split(path4.sep).join("/");
|
|
3462
3462
|
}
|
|
3463
3463
|
this.options = options;
|
|
3464
3464
|
this.set = [];
|
|
@@ -3825,8 +3825,8 @@ var require_minimatch = __commonJS({
|
|
|
3825
3825
|
if (f === "/" && partial)
|
|
3826
3826
|
return true;
|
|
3827
3827
|
var options = this.options;
|
|
3828
|
-
if (
|
|
3829
|
-
f = f.split(
|
|
3828
|
+
if (path4.sep !== "/") {
|
|
3829
|
+
f = f.split(path4.sep).join("/");
|
|
3830
3830
|
}
|
|
3831
3831
|
f = f.split(slashSplit);
|
|
3832
3832
|
this.debug(this.pattern, "split", f);
|
|
@@ -4054,7 +4054,7 @@ var require_is_git_clean = __commonJS({
|
|
|
4054
4054
|
"use strict";
|
|
4055
4055
|
var child = require("child_process");
|
|
4056
4056
|
var isObj = require_is_obj();
|
|
4057
|
-
var
|
|
4057
|
+
var execa2 = require_execa();
|
|
4058
4058
|
var multimatch = require_multimatch();
|
|
4059
4059
|
var TEN_MEBIBYTE = 1024 * 1024 * 10;
|
|
4060
4060
|
var porcelainRegex = /([AMRDC]|\?\?)\s/g;
|
|
@@ -4075,7 +4075,7 @@ var require_is_git_clean = __commonJS({
|
|
|
4075
4075
|
};
|
|
4076
4076
|
}
|
|
4077
4077
|
module2.exports = normalizeArgs(function(dir, options) {
|
|
4078
|
-
return
|
|
4078
|
+
return execa2("git", ["status", "--porcelain"], {
|
|
4079
4079
|
cwd: dir || process.cwd(),
|
|
4080
4080
|
preferLocal: false
|
|
4081
4081
|
}).then(function(result) {
|
|
@@ -6552,11 +6552,11 @@ var require_baseGet = __commonJS({
|
|
|
6552
6552
|
"../../node_modules/lodash/_baseGet.js"(exports, module2) {
|
|
6553
6553
|
var castPath = require_castPath();
|
|
6554
6554
|
var toKey = require_toKey();
|
|
6555
|
-
function baseGet(object,
|
|
6556
|
-
|
|
6557
|
-
var index = 0, length =
|
|
6555
|
+
function baseGet(object, path4) {
|
|
6556
|
+
path4 = castPath(path4, object);
|
|
6557
|
+
var index = 0, length = path4.length;
|
|
6558
6558
|
while (object != null && index < length) {
|
|
6559
|
-
object = object[toKey(
|
|
6559
|
+
object = object[toKey(path4[index++])];
|
|
6560
6560
|
}
|
|
6561
6561
|
return index && index == length ? object : void 0;
|
|
6562
6562
|
}
|
|
@@ -6593,8 +6593,8 @@ var require_parent = __commonJS({
|
|
|
6593
6593
|
"../../node_modules/lodash/_parent.js"(exports, module2) {
|
|
6594
6594
|
var baseGet = require_baseGet();
|
|
6595
6595
|
var baseSlice = require_baseSlice();
|
|
6596
|
-
function parent(object,
|
|
6597
|
-
return
|
|
6596
|
+
function parent(object, path4) {
|
|
6597
|
+
return path4.length < 2 ? object : baseGet(object, baseSlice(path4, 0, -1));
|
|
6598
6598
|
}
|
|
6599
6599
|
module2.exports = parent;
|
|
6600
6600
|
}
|
|
@@ -6607,10 +6607,10 @@ var require_baseUnset = __commonJS({
|
|
|
6607
6607
|
var last = require_last();
|
|
6608
6608
|
var parent = require_parent();
|
|
6609
6609
|
var toKey = require_toKey();
|
|
6610
|
-
function baseUnset(object,
|
|
6611
|
-
|
|
6612
|
-
object = parent(object,
|
|
6613
|
-
return object == null || delete object[toKey(last(
|
|
6610
|
+
function baseUnset(object, path4) {
|
|
6611
|
+
path4 = castPath(path4, object);
|
|
6612
|
+
object = parent(object, path4);
|
|
6613
|
+
return object == null || delete object[toKey(last(path4))];
|
|
6614
6614
|
}
|
|
6615
6615
|
module2.exports = baseUnset;
|
|
6616
6616
|
}
|
|
@@ -6740,10 +6740,10 @@ var require_omit = __commonJS({
|
|
|
6740
6740
|
return result;
|
|
6741
6741
|
}
|
|
6742
6742
|
var isDeep = false;
|
|
6743
|
-
paths = arrayMap(paths, function(
|
|
6744
|
-
|
|
6745
|
-
isDeep || (isDeep =
|
|
6746
|
-
return
|
|
6743
|
+
paths = arrayMap(paths, function(path4) {
|
|
6744
|
+
path4 = castPath(path4, object);
|
|
6745
|
+
isDeep || (isDeep = path4.length > 1);
|
|
6746
|
+
return path4;
|
|
6747
6747
|
});
|
|
6748
6748
|
copyObject(object, getAllKeysIn(object), result);
|
|
6749
6749
|
if (isDeep) {
|
|
@@ -7171,14 +7171,14 @@ var require_baseSet = __commonJS({
|
|
|
7171
7171
|
var isIndex = require_isIndex();
|
|
7172
7172
|
var isObject = require_isObject();
|
|
7173
7173
|
var toKey = require_toKey();
|
|
7174
|
-
function baseSet(object,
|
|
7174
|
+
function baseSet(object, path4, value, customizer) {
|
|
7175
7175
|
if (!isObject(object)) {
|
|
7176
7176
|
return object;
|
|
7177
7177
|
}
|
|
7178
|
-
|
|
7179
|
-
var index = -1, length =
|
|
7178
|
+
path4 = castPath(path4, object);
|
|
7179
|
+
var index = -1, length = path4.length, lastIndex = length - 1, nested = object;
|
|
7180
7180
|
while (nested != null && ++index < length) {
|
|
7181
|
-
var key = toKey(
|
|
7181
|
+
var key = toKey(path4[index]), newValue = value;
|
|
7182
7182
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
7183
7183
|
return object;
|
|
7184
7184
|
}
|
|
@@ -7186,7 +7186,7 @@ var require_baseSet = __commonJS({
|
|
|
7186
7186
|
var objValue = nested[key];
|
|
7187
7187
|
newValue = customizer ? customizer(objValue, key, nested) : void 0;
|
|
7188
7188
|
if (newValue === void 0) {
|
|
7189
|
-
newValue = isObject(objValue) ? objValue : isIndex(
|
|
7189
|
+
newValue = isObject(objValue) ? objValue : isIndex(path4[index + 1]) ? [] : {};
|
|
7190
7190
|
}
|
|
7191
7191
|
}
|
|
7192
7192
|
assignValue(nested, key, newValue);
|
|
@@ -7202,8 +7202,8 @@ var require_baseSet = __commonJS({
|
|
|
7202
7202
|
var require_set = __commonJS({
|
|
7203
7203
|
"../../node_modules/lodash/set.js"(exports, module2) {
|
|
7204
7204
|
var baseSet = require_baseSet();
|
|
7205
|
-
function set(object,
|
|
7206
|
-
return object == null ? object : baseSet(object,
|
|
7205
|
+
function set(object, path4, value) {
|
|
7206
|
+
return object == null ? object : baseSet(object, path4, value);
|
|
7207
7207
|
}
|
|
7208
7208
|
module2.exports = set;
|
|
7209
7209
|
}
|
|
@@ -19774,8 +19774,8 @@ var require_baseMatches = __commonJS({
|
|
|
19774
19774
|
var require_get = __commonJS({
|
|
19775
19775
|
"../../node_modules/lodash/get.js"(exports, module2) {
|
|
19776
19776
|
var baseGet = require_baseGet();
|
|
19777
|
-
function get(object,
|
|
19778
|
-
var result = object == null ? void 0 : baseGet(object,
|
|
19777
|
+
function get(object, path4, defaultValue) {
|
|
19778
|
+
var result = object == null ? void 0 : baseGet(object, path4);
|
|
19779
19779
|
return result === void 0 ? defaultValue : result;
|
|
19780
19780
|
}
|
|
19781
19781
|
module2.exports = get;
|
|
@@ -19801,11 +19801,11 @@ var require_hasPath = __commonJS({
|
|
|
19801
19801
|
var isIndex = require_isIndex();
|
|
19802
19802
|
var isLength = require_isLength();
|
|
19803
19803
|
var toKey = require_toKey();
|
|
19804
|
-
function hasPath(object,
|
|
19805
|
-
|
|
19806
|
-
var index = -1, length =
|
|
19804
|
+
function hasPath(object, path4, hasFunc) {
|
|
19805
|
+
path4 = castPath(path4, object);
|
|
19806
|
+
var index = -1, length = path4.length, result = false;
|
|
19807
19807
|
while (++index < length) {
|
|
19808
|
-
var key = toKey(
|
|
19808
|
+
var key = toKey(path4[index]);
|
|
19809
19809
|
if (!(result = object != null && hasFunc(object, key))) {
|
|
19810
19810
|
break;
|
|
19811
19811
|
}
|
|
@@ -19826,8 +19826,8 @@ var require_hasIn = __commonJS({
|
|
|
19826
19826
|
"../../node_modules/lodash/hasIn.js"(exports, module2) {
|
|
19827
19827
|
var baseHasIn = require_baseHasIn();
|
|
19828
19828
|
var hasPath = require_hasPath();
|
|
19829
|
-
function hasIn(object,
|
|
19830
|
-
return object != null && hasPath(object,
|
|
19829
|
+
function hasIn(object, path4) {
|
|
19830
|
+
return object != null && hasPath(object, path4, baseHasIn);
|
|
19831
19831
|
}
|
|
19832
19832
|
module2.exports = hasIn;
|
|
19833
19833
|
}
|
|
@@ -19845,13 +19845,13 @@ var require_baseMatchesProperty = __commonJS({
|
|
|
19845
19845
|
var toKey = require_toKey();
|
|
19846
19846
|
var COMPARE_PARTIAL_FLAG = 1;
|
|
19847
19847
|
var COMPARE_UNORDERED_FLAG = 2;
|
|
19848
|
-
function baseMatchesProperty(
|
|
19849
|
-
if (isKey(
|
|
19850
|
-
return matchesStrictComparable(toKey(
|
|
19848
|
+
function baseMatchesProperty(path4, srcValue) {
|
|
19849
|
+
if (isKey(path4) && isStrictComparable(srcValue)) {
|
|
19850
|
+
return matchesStrictComparable(toKey(path4), srcValue);
|
|
19851
19851
|
}
|
|
19852
19852
|
return function(object) {
|
|
19853
|
-
var objValue = get(object,
|
|
19854
|
-
return objValue === void 0 && objValue === srcValue ? hasIn(object,
|
|
19853
|
+
var objValue = get(object, path4);
|
|
19854
|
+
return objValue === void 0 && objValue === srcValue ? hasIn(object, path4) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
19855
19855
|
};
|
|
19856
19856
|
}
|
|
19857
19857
|
module2.exports = baseMatchesProperty;
|
|
@@ -19874,9 +19874,9 @@ var require_baseProperty = __commonJS({
|
|
|
19874
19874
|
var require_basePropertyDeep = __commonJS({
|
|
19875
19875
|
"../../node_modules/lodash/_basePropertyDeep.js"(exports, module2) {
|
|
19876
19876
|
var baseGet = require_baseGet();
|
|
19877
|
-
function basePropertyDeep(
|
|
19877
|
+
function basePropertyDeep(path4) {
|
|
19878
19878
|
return function(object) {
|
|
19879
|
-
return baseGet(object,
|
|
19879
|
+
return baseGet(object, path4);
|
|
19880
19880
|
};
|
|
19881
19881
|
}
|
|
19882
19882
|
module2.exports = basePropertyDeep;
|
|
@@ -19890,8 +19890,8 @@ var require_property = __commonJS({
|
|
|
19890
19890
|
var basePropertyDeep = require_basePropertyDeep();
|
|
19891
19891
|
var isKey = require_isKey();
|
|
19892
19892
|
var toKey = require_toKey();
|
|
19893
|
-
function property(
|
|
19894
|
-
return isKey(
|
|
19893
|
+
function property(path4) {
|
|
19894
|
+
return isKey(path4) ? baseProperty(toKey(path4)) : basePropertyDeep(path4);
|
|
19895
19895
|
}
|
|
19896
19896
|
module2.exports = property;
|
|
19897
19897
|
}
|
|
@@ -20124,124 +20124,155 @@ var require_signals = __commonJS({
|
|
|
20124
20124
|
// ../../node_modules/signal-exit/index.js
|
|
20125
20125
|
var require_signal_exit = __commonJS({
|
|
20126
20126
|
"../../node_modules/signal-exit/index.js"(exports, module2) {
|
|
20127
|
-
var
|
|
20128
|
-
var
|
|
20129
|
-
|
|
20130
|
-
|
|
20131
|
-
if (
|
|
20132
|
-
|
|
20133
|
-
|
|
20134
|
-
var emitter;
|
|
20135
|
-
if (process.__signal_exit_emitter__) {
|
|
20136
|
-
emitter = process.__signal_exit_emitter__;
|
|
20127
|
+
var process2 = global.process;
|
|
20128
|
+
var processOk = function(process3) {
|
|
20129
|
+
return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
|
|
20130
|
+
};
|
|
20131
|
+
if (!processOk(process2)) {
|
|
20132
|
+
module2.exports = function() {
|
|
20133
|
+
};
|
|
20137
20134
|
} else {
|
|
20138
|
-
|
|
20139
|
-
|
|
20140
|
-
|
|
20141
|
-
|
|
20142
|
-
|
|
20143
|
-
|
|
20144
|
-
|
|
20145
|
-
|
|
20146
|
-
|
|
20147
|
-
|
|
20148
|
-
|
|
20149
|
-
|
|
20135
|
+
assert = require("assert");
|
|
20136
|
+
signals = require_signals();
|
|
20137
|
+
isWin = /^win/i.test(process2.platform);
|
|
20138
|
+
EE = require("events");
|
|
20139
|
+
if (typeof EE !== "function") {
|
|
20140
|
+
EE = EE.EventEmitter;
|
|
20141
|
+
}
|
|
20142
|
+
if (process2.__signal_exit_emitter__) {
|
|
20143
|
+
emitter = process2.__signal_exit_emitter__;
|
|
20144
|
+
} else {
|
|
20145
|
+
emitter = process2.__signal_exit_emitter__ = new EE();
|
|
20146
|
+
emitter.count = 0;
|
|
20147
|
+
emitter.emitted = {};
|
|
20150
20148
|
}
|
|
20151
|
-
|
|
20152
|
-
|
|
20153
|
-
|
|
20149
|
+
if (!emitter.infinite) {
|
|
20150
|
+
emitter.setMaxListeners(Infinity);
|
|
20151
|
+
emitter.infinite = true;
|
|
20154
20152
|
}
|
|
20155
|
-
|
|
20156
|
-
|
|
20157
|
-
|
|
20158
|
-
|
|
20153
|
+
module2.exports = function(cb, opts) {
|
|
20154
|
+
if (!processOk(global.process)) {
|
|
20155
|
+
return;
|
|
20156
|
+
}
|
|
20157
|
+
assert.equal(typeof cb, "function", "a callback must be provided for exit handler");
|
|
20158
|
+
if (loaded === false) {
|
|
20159
|
+
load();
|
|
20159
20160
|
}
|
|
20161
|
+
var ev = "exit";
|
|
20162
|
+
if (opts && opts.alwaysLast) {
|
|
20163
|
+
ev = "afterexit";
|
|
20164
|
+
}
|
|
20165
|
+
var remove = function() {
|
|
20166
|
+
emitter.removeListener(ev, cb);
|
|
20167
|
+
if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
|
|
20168
|
+
unload();
|
|
20169
|
+
}
|
|
20170
|
+
};
|
|
20171
|
+
emitter.on(ev, cb);
|
|
20172
|
+
return remove;
|
|
20160
20173
|
};
|
|
20161
|
-
|
|
20162
|
-
|
|
20163
|
-
|
|
20164
|
-
module2.exports.unload = unload;
|
|
20165
|
-
function unload() {
|
|
20166
|
-
if (!loaded) {
|
|
20167
|
-
return;
|
|
20168
|
-
}
|
|
20169
|
-
loaded = false;
|
|
20170
|
-
signals.forEach(function(sig) {
|
|
20171
|
-
try {
|
|
20172
|
-
process.removeListener(sig, sigListeners[sig]);
|
|
20173
|
-
} catch (er) {
|
|
20174
|
+
unload = function unload2() {
|
|
20175
|
+
if (!loaded || !processOk(global.process)) {
|
|
20176
|
+
return;
|
|
20174
20177
|
}
|
|
20178
|
+
loaded = false;
|
|
20179
|
+
signals.forEach(function(sig) {
|
|
20180
|
+
try {
|
|
20181
|
+
process2.removeListener(sig, sigListeners[sig]);
|
|
20182
|
+
} catch (er) {
|
|
20183
|
+
}
|
|
20184
|
+
});
|
|
20185
|
+
process2.emit = originalProcessEmit;
|
|
20186
|
+
process2.reallyExit = originalProcessReallyExit;
|
|
20187
|
+
emitter.count -= 1;
|
|
20188
|
+
};
|
|
20189
|
+
module2.exports.unload = unload;
|
|
20190
|
+
emit = function emit2(event, code, signal) {
|
|
20191
|
+
if (emitter.emitted[event]) {
|
|
20192
|
+
return;
|
|
20193
|
+
}
|
|
20194
|
+
emitter.emitted[event] = true;
|
|
20195
|
+
emitter.emit(event, code, signal);
|
|
20196
|
+
};
|
|
20197
|
+
sigListeners = {};
|
|
20198
|
+
signals.forEach(function(sig) {
|
|
20199
|
+
sigListeners[sig] = function listener() {
|
|
20200
|
+
if (!processOk(global.process)) {
|
|
20201
|
+
return;
|
|
20202
|
+
}
|
|
20203
|
+
var listeners = process2.listeners(sig);
|
|
20204
|
+
if (listeners.length === emitter.count) {
|
|
20205
|
+
unload();
|
|
20206
|
+
emit("exit", null, sig);
|
|
20207
|
+
emit("afterexit", null, sig);
|
|
20208
|
+
if (isWin && sig === "SIGHUP") {
|
|
20209
|
+
sig = "SIGINT";
|
|
20210
|
+
}
|
|
20211
|
+
process2.kill(process2.pid, sig);
|
|
20212
|
+
}
|
|
20213
|
+
};
|
|
20175
20214
|
});
|
|
20176
|
-
|
|
20177
|
-
|
|
20178
|
-
|
|
20179
|
-
|
|
20180
|
-
|
|
20181
|
-
|
|
20182
|
-
|
|
20183
|
-
|
|
20184
|
-
|
|
20185
|
-
|
|
20186
|
-
|
|
20187
|
-
|
|
20188
|
-
|
|
20189
|
-
|
|
20190
|
-
|
|
20191
|
-
|
|
20192
|
-
unload();
|
|
20193
|
-
emit("exit", null, sig);
|
|
20194
|
-
emit("afterexit", null, sig);
|
|
20195
|
-
if (isWin && sig === "SIGHUP") {
|
|
20196
|
-
sig = "SIGINT";
|
|
20215
|
+
module2.exports.signals = function() {
|
|
20216
|
+
return signals;
|
|
20217
|
+
};
|
|
20218
|
+
loaded = false;
|
|
20219
|
+
load = function load2() {
|
|
20220
|
+
if (loaded || !processOk(global.process)) {
|
|
20221
|
+
return;
|
|
20222
|
+
}
|
|
20223
|
+
loaded = true;
|
|
20224
|
+
emitter.count += 1;
|
|
20225
|
+
signals = signals.filter(function(sig) {
|
|
20226
|
+
try {
|
|
20227
|
+
process2.on(sig, sigListeners[sig]);
|
|
20228
|
+
return true;
|
|
20229
|
+
} catch (er) {
|
|
20230
|
+
return false;
|
|
20197
20231
|
}
|
|
20198
|
-
|
|
20232
|
+
});
|
|
20233
|
+
process2.emit = processEmit;
|
|
20234
|
+
process2.reallyExit = processReallyExit;
|
|
20235
|
+
};
|
|
20236
|
+
module2.exports.load = load;
|
|
20237
|
+
originalProcessReallyExit = process2.reallyExit;
|
|
20238
|
+
processReallyExit = function processReallyExit2(code) {
|
|
20239
|
+
if (!processOk(global.process)) {
|
|
20240
|
+
return;
|
|
20199
20241
|
}
|
|
20242
|
+
process2.exitCode = code || 0;
|
|
20243
|
+
emit("exit", process2.exitCode, null);
|
|
20244
|
+
emit("afterexit", process2.exitCode, null);
|
|
20245
|
+
originalProcessReallyExit.call(process2, process2.exitCode);
|
|
20200
20246
|
};
|
|
20201
|
-
|
|
20202
|
-
|
|
20203
|
-
|
|
20204
|
-
|
|
20205
|
-
|
|
20206
|
-
|
|
20207
|
-
|
|
20208
|
-
|
|
20209
|
-
|
|
20210
|
-
|
|
20211
|
-
|
|
20212
|
-
|
|
20213
|
-
signals = signals.filter(function(sig) {
|
|
20214
|
-
try {
|
|
20215
|
-
process.on(sig, sigListeners[sig]);
|
|
20216
|
-
return true;
|
|
20217
|
-
} catch (er) {
|
|
20218
|
-
return false;
|
|
20247
|
+
originalProcessEmit = process2.emit;
|
|
20248
|
+
processEmit = function processEmit2(ev, arg) {
|
|
20249
|
+
if (ev === "exit" && processOk(global.process)) {
|
|
20250
|
+
if (arg !== void 0) {
|
|
20251
|
+
process2.exitCode = arg;
|
|
20252
|
+
}
|
|
20253
|
+
var ret = originalProcessEmit.apply(this, arguments);
|
|
20254
|
+
emit("exit", process2.exitCode, null);
|
|
20255
|
+
emit("afterexit", process2.exitCode, null);
|
|
20256
|
+
return ret;
|
|
20257
|
+
} else {
|
|
20258
|
+
return originalProcessEmit.apply(this, arguments);
|
|
20219
20259
|
}
|
|
20220
|
-
}
|
|
20221
|
-
process.emit = processEmit;
|
|
20222
|
-
process.reallyExit = processReallyExit;
|
|
20223
|
-
}
|
|
20224
|
-
var originalProcessReallyExit = process.reallyExit;
|
|
20225
|
-
function processReallyExit(code) {
|
|
20226
|
-
process.exitCode = code || 0;
|
|
20227
|
-
emit("exit", process.exitCode, null);
|
|
20228
|
-
emit("afterexit", process.exitCode, null);
|
|
20229
|
-
originalProcessReallyExit.call(process, process.exitCode);
|
|
20230
|
-
}
|
|
20231
|
-
var originalProcessEmit = process.emit;
|
|
20232
|
-
function processEmit(ev, arg) {
|
|
20233
|
-
if (ev === "exit") {
|
|
20234
|
-
if (arg !== void 0) {
|
|
20235
|
-
process.exitCode = arg;
|
|
20236
|
-
}
|
|
20237
|
-
var ret = originalProcessEmit.apply(this, arguments);
|
|
20238
|
-
emit("exit", process.exitCode, null);
|
|
20239
|
-
emit("afterexit", process.exitCode, null);
|
|
20240
|
-
return ret;
|
|
20241
|
-
} else {
|
|
20242
|
-
return originalProcessEmit.apply(this, arguments);
|
|
20243
|
-
}
|
|
20260
|
+
};
|
|
20244
20261
|
}
|
|
20262
|
+
var assert;
|
|
20263
|
+
var signals;
|
|
20264
|
+
var isWin;
|
|
20265
|
+
var EE;
|
|
20266
|
+
var emitter;
|
|
20267
|
+
var unload;
|
|
20268
|
+
var emit;
|
|
20269
|
+
var sigListeners;
|
|
20270
|
+
var loaded;
|
|
20271
|
+
var load;
|
|
20272
|
+
var originalProcessReallyExit;
|
|
20273
|
+
var processReallyExit;
|
|
20274
|
+
var originalProcessEmit;
|
|
20275
|
+
var processEmit;
|
|
20245
20276
|
}
|
|
20246
20277
|
});
|
|
20247
20278
|
|
|
@@ -36329,16 +36360,16 @@ var require_os_tmpdir = __commonJS({
|
|
|
36329
36360
|
var isWindows = process.platform === "win32";
|
|
36330
36361
|
var trailingSlashRe = isWindows ? /[^:]\\$/ : /.\/$/;
|
|
36331
36362
|
module2.exports = function() {
|
|
36332
|
-
var
|
|
36363
|
+
var path4;
|
|
36333
36364
|
if (isWindows) {
|
|
36334
|
-
|
|
36365
|
+
path4 = process.env.TEMP || process.env.TMP || (process.env.SystemRoot || process.env.windir) + "\\temp";
|
|
36335
36366
|
} else {
|
|
36336
|
-
|
|
36367
|
+
path4 = process.env.TMPDIR || process.env.TMP || process.env.TEMP || "/tmp";
|
|
36337
36368
|
}
|
|
36338
|
-
if (trailingSlashRe.test(
|
|
36339
|
-
|
|
36369
|
+
if (trailingSlashRe.test(path4)) {
|
|
36370
|
+
path4 = path4.slice(0, -1);
|
|
36340
36371
|
}
|
|
36341
|
-
return
|
|
36372
|
+
return path4;
|
|
36342
36373
|
};
|
|
36343
36374
|
}
|
|
36344
36375
|
});
|
|
@@ -36347,7 +36378,7 @@ var require_os_tmpdir = __commonJS({
|
|
|
36347
36378
|
var require_tmp = __commonJS({
|
|
36348
36379
|
"../../node_modules/tmp/lib/tmp.js"(exports, module2) {
|
|
36349
36380
|
var fs2 = require("fs");
|
|
36350
|
-
var
|
|
36381
|
+
var path4 = require("path");
|
|
36351
36382
|
var crypto = require("crypto");
|
|
36352
36383
|
var osTmpDir = require_os_tmpdir();
|
|
36353
36384
|
var _c = process.binding("constants");
|
|
@@ -36389,7 +36420,7 @@ var require_tmp = __commonJS({
|
|
|
36389
36420
|
}
|
|
36390
36421
|
function _generateTmpName(opts) {
|
|
36391
36422
|
if (opts.name) {
|
|
36392
|
-
return
|
|
36423
|
+
return path4.join(opts.dir || tmpDir, opts.name);
|
|
36393
36424
|
}
|
|
36394
36425
|
if (opts.template) {
|
|
36395
36426
|
return opts.template.replace(TEMPLATE_PATTERN, _randomChars(6));
|
|
@@ -36400,7 +36431,7 @@ var require_tmp = __commonJS({
|
|
|
36400
36431
|
_randomChars(12),
|
|
36401
36432
|
opts.postfix || ""
|
|
36402
36433
|
].join("");
|
|
36403
|
-
return
|
|
36434
|
+
return path4.join(opts.dir || tmpDir, name2);
|
|
36404
36435
|
}
|
|
36405
36436
|
function tmpName(options, callback) {
|
|
36406
36437
|
var args = _parseArguments(options, callback), opts = args[0], cb = args[1], tries = opts.name ? 1 : opts.tries || DEFAULT_TRIES;
|
|
@@ -36488,7 +36519,7 @@ var require_tmp = __commonJS({
|
|
|
36488
36519
|
do {
|
|
36489
36520
|
var dir2 = dirs.pop(), deferred = false, files2 = fs2.readdirSync(dir2);
|
|
36490
36521
|
for (var i = 0, length = files2.length; i < length; i++) {
|
|
36491
|
-
var file2 =
|
|
36522
|
+
var file2 = path4.join(dir2, files2[i]), stat = fs2.lstatSync(file2);
|
|
36492
36523
|
if (stat.isDirectory()) {
|
|
36493
36524
|
if (!deferred) {
|
|
36494
36525
|
deferred = true;
|
|
@@ -37052,18 +37083,18 @@ var require_editor = __commonJS({
|
|
|
37052
37083
|
var require_inquirer = __commonJS({
|
|
37053
37084
|
"node_modules/inquirer/lib/inquirer.js"(exports, module2) {
|
|
37054
37085
|
"use strict";
|
|
37055
|
-
var
|
|
37056
|
-
|
|
37057
|
-
|
|
37058
|
-
|
|
37086
|
+
var inquirer3 = module2.exports;
|
|
37087
|
+
inquirer3.prompts = {};
|
|
37088
|
+
inquirer3.Separator = require_separator();
|
|
37089
|
+
inquirer3.ui = {
|
|
37059
37090
|
BottomBar: require_bottom_bar(),
|
|
37060
37091
|
Prompt: require_prompt()
|
|
37061
37092
|
};
|
|
37062
|
-
|
|
37093
|
+
inquirer3.createPromptModule = function(opt) {
|
|
37063
37094
|
const promptModule = function(questions, answers) {
|
|
37064
37095
|
let ui;
|
|
37065
37096
|
try {
|
|
37066
|
-
ui = new
|
|
37097
|
+
ui = new inquirer3.ui.Prompt(promptModule.prompts, opt);
|
|
37067
37098
|
} catch (error) {
|
|
37068
37099
|
return Promise.reject(error);
|
|
37069
37100
|
}
|
|
@@ -37090,12 +37121,12 @@ var require_inquirer = __commonJS({
|
|
|
37090
37121
|
promptModule.restoreDefaultPrompts();
|
|
37091
37122
|
return promptModule;
|
|
37092
37123
|
};
|
|
37093
|
-
|
|
37094
|
-
|
|
37095
|
-
|
|
37124
|
+
inquirer3.prompt = inquirer3.createPromptModule();
|
|
37125
|
+
inquirer3.registerPrompt = function(name2, prompt) {
|
|
37126
|
+
inquirer3.prompt.registerPrompt(name2, prompt);
|
|
37096
37127
|
};
|
|
37097
|
-
|
|
37098
|
-
|
|
37128
|
+
inquirer3.restoreDefaultPrompts = function() {
|
|
37129
|
+
inquirer3.prompt.restoreDefaultPrompts();
|
|
37099
37130
|
};
|
|
37100
37131
|
}
|
|
37101
37132
|
});
|
|
@@ -39450,7 +39481,7 @@ var require_polyfills = __commonJS({
|
|
|
39450
39481
|
fs2.fstatSync = statFixSync(fs2.fstatSync);
|
|
39451
39482
|
fs2.lstatSync = statFixSync(fs2.lstatSync);
|
|
39452
39483
|
if (!fs2.lchmod) {
|
|
39453
|
-
fs2.lchmod = function(
|
|
39484
|
+
fs2.lchmod = function(path4, mode, cb) {
|
|
39454
39485
|
if (cb)
|
|
39455
39486
|
process.nextTick(cb);
|
|
39456
39487
|
};
|
|
@@ -39458,7 +39489,7 @@ var require_polyfills = __commonJS({
|
|
|
39458
39489
|
};
|
|
39459
39490
|
}
|
|
39460
39491
|
if (!fs2.lchown) {
|
|
39461
|
-
fs2.lchown = function(
|
|
39492
|
+
fs2.lchown = function(path4, uid, gid, cb) {
|
|
39462
39493
|
if (cb)
|
|
39463
39494
|
process.nextTick(cb);
|
|
39464
39495
|
};
|
|
@@ -39526,8 +39557,8 @@ var require_polyfills = __commonJS({
|
|
|
39526
39557
|
};
|
|
39527
39558
|
}(fs2.readSync);
|
|
39528
39559
|
function patchLchmod(fs3) {
|
|
39529
|
-
fs3.lchmod = function(
|
|
39530
|
-
fs3.open(
|
|
39560
|
+
fs3.lchmod = function(path4, mode, callback) {
|
|
39561
|
+
fs3.open(path4, constants.O_WRONLY | constants.O_SYMLINK, mode, function(err, fd) {
|
|
39531
39562
|
if (err) {
|
|
39532
39563
|
if (callback)
|
|
39533
39564
|
callback(err);
|
|
@@ -39541,8 +39572,8 @@ var require_polyfills = __commonJS({
|
|
|
39541
39572
|
});
|
|
39542
39573
|
});
|
|
39543
39574
|
};
|
|
39544
|
-
fs3.lchmodSync = function(
|
|
39545
|
-
var fd = fs3.openSync(
|
|
39575
|
+
fs3.lchmodSync = function(path4, mode) {
|
|
39576
|
+
var fd = fs3.openSync(path4, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
39546
39577
|
var threw = true;
|
|
39547
39578
|
var ret;
|
|
39548
39579
|
try {
|
|
@@ -39563,8 +39594,8 @@ var require_polyfills = __commonJS({
|
|
|
39563
39594
|
}
|
|
39564
39595
|
function patchLutimes(fs3) {
|
|
39565
39596
|
if (constants.hasOwnProperty("O_SYMLINK")) {
|
|
39566
|
-
fs3.lutimes = function(
|
|
39567
|
-
fs3.open(
|
|
39597
|
+
fs3.lutimes = function(path4, at, mt, cb) {
|
|
39598
|
+
fs3.open(path4, constants.O_SYMLINK, function(er, fd) {
|
|
39568
39599
|
if (er) {
|
|
39569
39600
|
if (cb)
|
|
39570
39601
|
cb(er);
|
|
@@ -39578,8 +39609,8 @@ var require_polyfills = __commonJS({
|
|
|
39578
39609
|
});
|
|
39579
39610
|
});
|
|
39580
39611
|
};
|
|
39581
|
-
fs3.lutimesSync = function(
|
|
39582
|
-
var fd = fs3.openSync(
|
|
39612
|
+
fs3.lutimesSync = function(path4, at, mt) {
|
|
39613
|
+
var fd = fs3.openSync(path4, constants.O_SYMLINK);
|
|
39583
39614
|
var ret;
|
|
39584
39615
|
var threw = true;
|
|
39585
39616
|
try {
|
|
@@ -39713,12 +39744,12 @@ var require_legacy_streams = __commonJS({
|
|
|
39713
39744
|
ReadStream,
|
|
39714
39745
|
WriteStream
|
|
39715
39746
|
};
|
|
39716
|
-
function ReadStream(
|
|
39747
|
+
function ReadStream(path4, options) {
|
|
39717
39748
|
if (!(this instanceof ReadStream))
|
|
39718
|
-
return new ReadStream(
|
|
39749
|
+
return new ReadStream(path4, options);
|
|
39719
39750
|
Stream.call(this);
|
|
39720
39751
|
var self2 = this;
|
|
39721
|
-
this.path =
|
|
39752
|
+
this.path = path4;
|
|
39722
39753
|
this.fd = null;
|
|
39723
39754
|
this.readable = true;
|
|
39724
39755
|
this.paused = false;
|
|
@@ -39764,11 +39795,11 @@ var require_legacy_streams = __commonJS({
|
|
|
39764
39795
|
self2._read();
|
|
39765
39796
|
});
|
|
39766
39797
|
}
|
|
39767
|
-
function WriteStream(
|
|
39798
|
+
function WriteStream(path4, options) {
|
|
39768
39799
|
if (!(this instanceof WriteStream))
|
|
39769
|
-
return new WriteStream(
|
|
39800
|
+
return new WriteStream(path4, options);
|
|
39770
39801
|
Stream.call(this);
|
|
39771
|
-
this.path =
|
|
39802
|
+
this.path = path4;
|
|
39772
39803
|
this.fd = null;
|
|
39773
39804
|
this.writable = true;
|
|
39774
39805
|
this.flags = "w";
|
|
@@ -39911,14 +39942,14 @@ var require_graceful_fs = __commonJS({
|
|
|
39911
39942
|
fs3.createWriteStream = createWriteStream;
|
|
39912
39943
|
var fs$readFile = fs3.readFile;
|
|
39913
39944
|
fs3.readFile = readFile;
|
|
39914
|
-
function readFile(
|
|
39945
|
+
function readFile(path4, options, cb) {
|
|
39915
39946
|
if (typeof options === "function")
|
|
39916
39947
|
cb = options, options = null;
|
|
39917
|
-
return go$readFile(
|
|
39918
|
-
function go$readFile(
|
|
39919
|
-
return fs$readFile(
|
|
39948
|
+
return go$readFile(path4, options, cb);
|
|
39949
|
+
function go$readFile(path5, options2, cb2) {
|
|
39950
|
+
return fs$readFile(path5, options2, function(err) {
|
|
39920
39951
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
39921
|
-
enqueue([go$readFile, [
|
|
39952
|
+
enqueue([go$readFile, [path5, options2, cb2]]);
|
|
39922
39953
|
else {
|
|
39923
39954
|
if (typeof cb2 === "function")
|
|
39924
39955
|
cb2.apply(this, arguments);
|
|
@@ -39929,14 +39960,14 @@ var require_graceful_fs = __commonJS({
|
|
|
39929
39960
|
}
|
|
39930
39961
|
var fs$writeFile = fs3.writeFile;
|
|
39931
39962
|
fs3.writeFile = writeFile;
|
|
39932
|
-
function writeFile(
|
|
39963
|
+
function writeFile(path4, data, options, cb) {
|
|
39933
39964
|
if (typeof options === "function")
|
|
39934
39965
|
cb = options, options = null;
|
|
39935
|
-
return go$writeFile(
|
|
39936
|
-
function go$writeFile(
|
|
39937
|
-
return fs$writeFile(
|
|
39966
|
+
return go$writeFile(path4, data, options, cb);
|
|
39967
|
+
function go$writeFile(path5, data2, options2, cb2) {
|
|
39968
|
+
return fs$writeFile(path5, data2, options2, function(err) {
|
|
39938
39969
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
39939
|
-
enqueue([go$writeFile, [
|
|
39970
|
+
enqueue([go$writeFile, [path5, data2, options2, cb2]]);
|
|
39940
39971
|
else {
|
|
39941
39972
|
if (typeof cb2 === "function")
|
|
39942
39973
|
cb2.apply(this, arguments);
|
|
@@ -39948,14 +39979,14 @@ var require_graceful_fs = __commonJS({
|
|
|
39948
39979
|
var fs$appendFile = fs3.appendFile;
|
|
39949
39980
|
if (fs$appendFile)
|
|
39950
39981
|
fs3.appendFile = appendFile;
|
|
39951
|
-
function appendFile(
|
|
39982
|
+
function appendFile(path4, data, options, cb) {
|
|
39952
39983
|
if (typeof options === "function")
|
|
39953
39984
|
cb = options, options = null;
|
|
39954
|
-
return go$appendFile(
|
|
39955
|
-
function go$appendFile(
|
|
39956
|
-
return fs$appendFile(
|
|
39985
|
+
return go$appendFile(path4, data, options, cb);
|
|
39986
|
+
function go$appendFile(path5, data2, options2, cb2) {
|
|
39987
|
+
return fs$appendFile(path5, data2, options2, function(err) {
|
|
39957
39988
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
39958
|
-
enqueue([go$appendFile, [
|
|
39989
|
+
enqueue([go$appendFile, [path5, data2, options2, cb2]]);
|
|
39959
39990
|
else {
|
|
39960
39991
|
if (typeof cb2 === "function")
|
|
39961
39992
|
cb2.apply(this, arguments);
|
|
@@ -39984,8 +40015,8 @@ var require_graceful_fs = __commonJS({
|
|
|
39984
40015
|
}
|
|
39985
40016
|
var fs$readdir = fs3.readdir;
|
|
39986
40017
|
fs3.readdir = readdir;
|
|
39987
|
-
function readdir(
|
|
39988
|
-
var args = [
|
|
40018
|
+
function readdir(path4, options, cb) {
|
|
40019
|
+
var args = [path4];
|
|
39989
40020
|
if (typeof options !== "function") {
|
|
39990
40021
|
args.push(options);
|
|
39991
40022
|
} else {
|
|
@@ -40065,7 +40096,7 @@ var require_graceful_fs = __commonJS({
|
|
|
40065
40096
|
enumerable: true,
|
|
40066
40097
|
configurable: true
|
|
40067
40098
|
});
|
|
40068
|
-
function ReadStream(
|
|
40099
|
+
function ReadStream(path4, options) {
|
|
40069
40100
|
if (this instanceof ReadStream)
|
|
40070
40101
|
return fs$ReadStream.apply(this, arguments), this;
|
|
40071
40102
|
else
|
|
@@ -40085,7 +40116,7 @@ var require_graceful_fs = __commonJS({
|
|
|
40085
40116
|
}
|
|
40086
40117
|
});
|
|
40087
40118
|
}
|
|
40088
|
-
function WriteStream(
|
|
40119
|
+
function WriteStream(path4, options) {
|
|
40089
40120
|
if (this instanceof WriteStream)
|
|
40090
40121
|
return fs$WriteStream.apply(this, arguments), this;
|
|
40091
40122
|
else
|
|
@@ -40103,22 +40134,22 @@ var require_graceful_fs = __commonJS({
|
|
|
40103
40134
|
}
|
|
40104
40135
|
});
|
|
40105
40136
|
}
|
|
40106
|
-
function createReadStream(
|
|
40107
|
-
return new fs3.ReadStream(
|
|
40137
|
+
function createReadStream(path4, options) {
|
|
40138
|
+
return new fs3.ReadStream(path4, options);
|
|
40108
40139
|
}
|
|
40109
|
-
function createWriteStream(
|
|
40110
|
-
return new fs3.WriteStream(
|
|
40140
|
+
function createWriteStream(path4, options) {
|
|
40141
|
+
return new fs3.WriteStream(path4, options);
|
|
40111
40142
|
}
|
|
40112
40143
|
var fs$open = fs3.open;
|
|
40113
40144
|
fs3.open = open;
|
|
40114
|
-
function open(
|
|
40145
|
+
function open(path4, flags, mode, cb) {
|
|
40115
40146
|
if (typeof mode === "function")
|
|
40116
40147
|
cb = mode, mode = null;
|
|
40117
|
-
return go$open(
|
|
40118
|
-
function go$open(
|
|
40119
|
-
return fs$open(
|
|
40148
|
+
return go$open(path4, flags, mode, cb);
|
|
40149
|
+
function go$open(path5, flags2, mode2, cb2) {
|
|
40150
|
+
return fs$open(path5, flags2, mode2, function(err, fd) {
|
|
40120
40151
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
40121
|
-
enqueue([go$open, [
|
|
40152
|
+
enqueue([go$open, [path5, flags2, mode2, cb2]]);
|
|
40122
40153
|
else {
|
|
40123
40154
|
if (typeof cb2 === "function")
|
|
40124
40155
|
cb2.apply(this, arguments);
|
|
@@ -40245,10 +40276,10 @@ var require_fs = __commonJS({
|
|
|
40245
40276
|
var require_utils2 = __commonJS({
|
|
40246
40277
|
"../../node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module2) {
|
|
40247
40278
|
"use strict";
|
|
40248
|
-
var
|
|
40279
|
+
var path4 = require("path");
|
|
40249
40280
|
module2.exports.checkPath = function checkPath(pth) {
|
|
40250
40281
|
if (process.platform === "win32") {
|
|
40251
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
40282
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path4.parse(pth).root, ""));
|
|
40252
40283
|
if (pathHasInvalidWinCharacters) {
|
|
40253
40284
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
40254
40285
|
error.code = "EINVAL";
|
|
@@ -40311,8 +40342,8 @@ var require_utimes = __commonJS({
|
|
|
40311
40342
|
"../../node_modules/fs-extra/lib/util/utimes.js"(exports, module2) {
|
|
40312
40343
|
"use strict";
|
|
40313
40344
|
var fs2 = require_graceful_fs();
|
|
40314
|
-
function utimesMillis(
|
|
40315
|
-
fs2.open(
|
|
40345
|
+
function utimesMillis(path4, atime, mtime, callback) {
|
|
40346
|
+
fs2.open(path4, "r+", (err, fd) => {
|
|
40316
40347
|
if (err)
|
|
40317
40348
|
return callback(err);
|
|
40318
40349
|
fs2.futimes(fd, atime, mtime, (futimesErr) => {
|
|
@@ -40323,8 +40354,8 @@ var require_utimes = __commonJS({
|
|
|
40323
40354
|
});
|
|
40324
40355
|
});
|
|
40325
40356
|
}
|
|
40326
|
-
function utimesMillisSync(
|
|
40327
|
-
const fd = fs2.openSync(
|
|
40357
|
+
function utimesMillisSync(path4, atime, mtime) {
|
|
40358
|
+
const fd = fs2.openSync(path4, "r+");
|
|
40328
40359
|
fs2.futimesSync(fd, atime, mtime);
|
|
40329
40360
|
return fs2.closeSync(fd);
|
|
40330
40361
|
}
|
|
@@ -40340,7 +40371,7 @@ var require_stat = __commonJS({
|
|
|
40340
40371
|
"../../node_modules/fs-extra/lib/util/stat.js"(exports, module2) {
|
|
40341
40372
|
"use strict";
|
|
40342
40373
|
var fs2 = require_fs();
|
|
40343
|
-
var
|
|
40374
|
+
var path4 = require("path");
|
|
40344
40375
|
var util = require("util");
|
|
40345
40376
|
function getStats(src, dest, opts) {
|
|
40346
40377
|
const statFunc = opts.dereference ? (file) => fs2.stat(file, { bigint: true }) : (file) => fs2.lstat(file, { bigint: true });
|
|
@@ -40373,8 +40404,8 @@ var require_stat = __commonJS({
|
|
|
40373
40404
|
const { srcStat, destStat } = stats;
|
|
40374
40405
|
if (destStat) {
|
|
40375
40406
|
if (areIdentical(srcStat, destStat)) {
|
|
40376
|
-
const srcBaseName =
|
|
40377
|
-
const destBaseName =
|
|
40407
|
+
const srcBaseName = path4.basename(src);
|
|
40408
|
+
const destBaseName = path4.basename(dest);
|
|
40378
40409
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
40379
40410
|
return cb(null, { srcStat, destStat, isChangingCase: true });
|
|
40380
40411
|
}
|
|
@@ -40397,8 +40428,8 @@ var require_stat = __commonJS({
|
|
|
40397
40428
|
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
40398
40429
|
if (destStat) {
|
|
40399
40430
|
if (areIdentical(srcStat, destStat)) {
|
|
40400
|
-
const srcBaseName =
|
|
40401
|
-
const destBaseName =
|
|
40431
|
+
const srcBaseName = path4.basename(src);
|
|
40432
|
+
const destBaseName = path4.basename(dest);
|
|
40402
40433
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
40403
40434
|
return { srcStat, destStat, isChangingCase: true };
|
|
40404
40435
|
}
|
|
@@ -40417,9 +40448,9 @@ var require_stat = __commonJS({
|
|
|
40417
40448
|
return { srcStat, destStat };
|
|
40418
40449
|
}
|
|
40419
40450
|
function checkParentPaths(src, srcStat, dest, funcName, cb) {
|
|
40420
|
-
const srcParent =
|
|
40421
|
-
const destParent =
|
|
40422
|
-
if (destParent === srcParent || destParent ===
|
|
40451
|
+
const srcParent = path4.resolve(path4.dirname(src));
|
|
40452
|
+
const destParent = path4.resolve(path4.dirname(dest));
|
|
40453
|
+
if (destParent === srcParent || destParent === path4.parse(destParent).root)
|
|
40423
40454
|
return cb();
|
|
40424
40455
|
fs2.stat(destParent, { bigint: true }, (err, destStat) => {
|
|
40425
40456
|
if (err) {
|
|
@@ -40434,9 +40465,9 @@ var require_stat = __commonJS({
|
|
|
40434
40465
|
});
|
|
40435
40466
|
}
|
|
40436
40467
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
40437
|
-
const srcParent =
|
|
40438
|
-
const destParent =
|
|
40439
|
-
if (destParent === srcParent || destParent ===
|
|
40468
|
+
const srcParent = path4.resolve(path4.dirname(src));
|
|
40469
|
+
const destParent = path4.resolve(path4.dirname(dest));
|
|
40470
|
+
if (destParent === srcParent || destParent === path4.parse(destParent).root)
|
|
40440
40471
|
return;
|
|
40441
40472
|
let destStat;
|
|
40442
40473
|
try {
|
|
@@ -40455,8 +40486,8 @@ var require_stat = __commonJS({
|
|
|
40455
40486
|
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
40456
40487
|
}
|
|
40457
40488
|
function isSrcSubdir(src, dest) {
|
|
40458
|
-
const srcArr =
|
|
40459
|
-
const destArr =
|
|
40489
|
+
const srcArr = path4.resolve(src).split(path4.sep).filter((i) => i);
|
|
40490
|
+
const destArr = path4.resolve(dest).split(path4.sep).filter((i) => i);
|
|
40460
40491
|
return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
|
|
40461
40492
|
}
|
|
40462
40493
|
function errMsg(src, dest, funcName) {
|
|
@@ -40478,7 +40509,7 @@ var require_copy_sync = __commonJS({
|
|
|
40478
40509
|
"../../node_modules/fs-extra/lib/copy-sync/copy-sync.js"(exports, module2) {
|
|
40479
40510
|
"use strict";
|
|
40480
40511
|
var fs2 = require_graceful_fs();
|
|
40481
|
-
var
|
|
40512
|
+
var path4 = require("path");
|
|
40482
40513
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
40483
40514
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
40484
40515
|
var stat = require_stat();
|
|
@@ -40501,7 +40532,7 @@ var require_copy_sync = __commonJS({
|
|
|
40501
40532
|
function handleFilterAndCopy(destStat, src, dest, opts) {
|
|
40502
40533
|
if (opts.filter && !opts.filter(src, dest))
|
|
40503
40534
|
return;
|
|
40504
|
-
const destParent =
|
|
40535
|
+
const destParent = path4.dirname(dest);
|
|
40505
40536
|
if (!fs2.existsSync(destParent))
|
|
40506
40537
|
mkdirsSync(destParent);
|
|
40507
40538
|
return getStats(destStat, src, dest, opts);
|
|
@@ -40577,15 +40608,15 @@ var require_copy_sync = __commonJS({
|
|
|
40577
40608
|
fs2.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
|
|
40578
40609
|
}
|
|
40579
40610
|
function copyDirItem(item, src, dest, opts) {
|
|
40580
|
-
const srcItem =
|
|
40581
|
-
const destItem =
|
|
40611
|
+
const srcItem = path4.join(src, item);
|
|
40612
|
+
const destItem = path4.join(dest, item);
|
|
40582
40613
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
40583
40614
|
return startCopy(destStat, srcItem, destItem, opts);
|
|
40584
40615
|
}
|
|
40585
40616
|
function onLink(destStat, src, dest, opts) {
|
|
40586
40617
|
let resolvedSrc = fs2.readlinkSync(src);
|
|
40587
40618
|
if (opts.dereference) {
|
|
40588
|
-
resolvedSrc =
|
|
40619
|
+
resolvedSrc = path4.resolve(process.cwd(), resolvedSrc);
|
|
40589
40620
|
}
|
|
40590
40621
|
if (!destStat) {
|
|
40591
40622
|
return fs2.symlinkSync(resolvedSrc, dest);
|
|
@@ -40599,7 +40630,7 @@ var require_copy_sync = __commonJS({
|
|
|
40599
40630
|
throw err;
|
|
40600
40631
|
}
|
|
40601
40632
|
if (opts.dereference) {
|
|
40602
|
-
resolvedDest =
|
|
40633
|
+
resolvedDest = path4.resolve(process.cwd(), resolvedDest);
|
|
40603
40634
|
}
|
|
40604
40635
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
40605
40636
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -40634,8 +40665,8 @@ var require_path_exists = __commonJS({
|
|
|
40634
40665
|
"use strict";
|
|
40635
40666
|
var u = require_universalify().fromPromise;
|
|
40636
40667
|
var fs2 = require_fs();
|
|
40637
|
-
function pathExists(
|
|
40638
|
-
return fs2.access(
|
|
40668
|
+
function pathExists(path4) {
|
|
40669
|
+
return fs2.access(path4).then(() => true).catch(() => false);
|
|
40639
40670
|
}
|
|
40640
40671
|
module2.exports = {
|
|
40641
40672
|
pathExists: u(pathExists),
|
|
@@ -40649,7 +40680,7 @@ var require_copy = __commonJS({
|
|
|
40649
40680
|
"../../node_modules/fs-extra/lib/copy/copy.js"(exports, module2) {
|
|
40650
40681
|
"use strict";
|
|
40651
40682
|
var fs2 = require_graceful_fs();
|
|
40652
|
-
var
|
|
40683
|
+
var path4 = require("path");
|
|
40653
40684
|
var mkdirs = require_mkdirs().mkdirs;
|
|
40654
40685
|
var pathExists = require_path_exists().pathExists;
|
|
40655
40686
|
var utimesMillis = require_utimes().utimesMillis;
|
|
@@ -40685,7 +40716,7 @@ var require_copy = __commonJS({
|
|
|
40685
40716
|
});
|
|
40686
40717
|
}
|
|
40687
40718
|
function checkParentDir(destStat, src, dest, opts, cb) {
|
|
40688
|
-
const destParent =
|
|
40719
|
+
const destParent = path4.dirname(dest);
|
|
40689
40720
|
pathExists(destParent, (err, dirExists) => {
|
|
40690
40721
|
if (err)
|
|
40691
40722
|
return cb(err);
|
|
@@ -40817,8 +40848,8 @@ var require_copy = __commonJS({
|
|
|
40817
40848
|
return copyDirItem(items, item, src, dest, opts, cb);
|
|
40818
40849
|
}
|
|
40819
40850
|
function copyDirItem(items, item, src, dest, opts, cb) {
|
|
40820
|
-
const srcItem =
|
|
40821
|
-
const destItem =
|
|
40851
|
+
const srcItem = path4.join(src, item);
|
|
40852
|
+
const destItem = path4.join(dest, item);
|
|
40822
40853
|
stat.checkPaths(srcItem, destItem, "copy", opts, (err, stats) => {
|
|
40823
40854
|
if (err)
|
|
40824
40855
|
return cb(err);
|
|
@@ -40835,7 +40866,7 @@ var require_copy = __commonJS({
|
|
|
40835
40866
|
if (err)
|
|
40836
40867
|
return cb(err);
|
|
40837
40868
|
if (opts.dereference) {
|
|
40838
|
-
resolvedSrc =
|
|
40869
|
+
resolvedSrc = path4.resolve(process.cwd(), resolvedSrc);
|
|
40839
40870
|
}
|
|
40840
40871
|
if (!destStat) {
|
|
40841
40872
|
return fs2.symlink(resolvedSrc, dest, cb);
|
|
@@ -40847,7 +40878,7 @@ var require_copy = __commonJS({
|
|
|
40847
40878
|
return cb(err2);
|
|
40848
40879
|
}
|
|
40849
40880
|
if (opts.dereference) {
|
|
40850
|
-
resolvedDest =
|
|
40881
|
+
resolvedDest = path4.resolve(process.cwd(), resolvedDest);
|
|
40851
40882
|
}
|
|
40852
40883
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
40853
40884
|
return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
|
|
@@ -40887,7 +40918,7 @@ var require_rimraf = __commonJS({
|
|
|
40887
40918
|
"../../node_modules/fs-extra/lib/remove/rimraf.js"(exports, module2) {
|
|
40888
40919
|
"use strict";
|
|
40889
40920
|
var fs2 = require_graceful_fs();
|
|
40890
|
-
var
|
|
40921
|
+
var path4 = require("path");
|
|
40891
40922
|
var assert = require("assert");
|
|
40892
40923
|
var isWindows = process.platform === "win32";
|
|
40893
40924
|
function defaults(options) {
|
|
@@ -41035,7 +41066,7 @@ var require_rimraf = __commonJS({
|
|
|
41035
41066
|
if (n === 0)
|
|
41036
41067
|
return options.rmdir(p, cb);
|
|
41037
41068
|
files2.forEach((f) => {
|
|
41038
|
-
rimraf(
|
|
41069
|
+
rimraf(path4.join(p, f), options, (er2) => {
|
|
41039
41070
|
if (errState) {
|
|
41040
41071
|
return;
|
|
41041
41072
|
}
|
|
@@ -41101,7 +41132,7 @@ var require_rimraf = __commonJS({
|
|
|
41101
41132
|
function rmkidsSync(p, options) {
|
|
41102
41133
|
assert(p);
|
|
41103
41134
|
assert(options);
|
|
41104
|
-
options.readdirSync(p).forEach((f) => rimrafSync(
|
|
41135
|
+
options.readdirSync(p).forEach((f) => rimrafSync(path4.join(p, f), options));
|
|
41105
41136
|
if (isWindows) {
|
|
41106
41137
|
const startTime = Date.now();
|
|
41107
41138
|
do {
|
|
@@ -41128,15 +41159,15 @@ var require_remove = __commonJS({
|
|
|
41128
41159
|
var fs2 = require_graceful_fs();
|
|
41129
41160
|
var u = require_universalify().fromCallback;
|
|
41130
41161
|
var rimraf = require_rimraf();
|
|
41131
|
-
function remove(
|
|
41162
|
+
function remove(path4, callback) {
|
|
41132
41163
|
if (fs2.rm)
|
|
41133
|
-
return fs2.rm(
|
|
41134
|
-
rimraf(
|
|
41164
|
+
return fs2.rm(path4, { recursive: true, force: true }, callback);
|
|
41165
|
+
rimraf(path4, callback);
|
|
41135
41166
|
}
|
|
41136
|
-
function removeSync(
|
|
41167
|
+
function removeSync(path4) {
|
|
41137
41168
|
if (fs2.rmSync)
|
|
41138
|
-
return fs2.rmSync(
|
|
41139
|
-
rimraf.sync(
|
|
41169
|
+
return fs2.rmSync(path4, { recursive: true, force: true });
|
|
41170
|
+
rimraf.sync(path4);
|
|
41140
41171
|
}
|
|
41141
41172
|
module2.exports = {
|
|
41142
41173
|
remove: u(remove),
|
|
@@ -41151,7 +41182,7 @@ var require_empty2 = __commonJS({
|
|
|
41151
41182
|
"use strict";
|
|
41152
41183
|
var u = require_universalify().fromPromise;
|
|
41153
41184
|
var fs2 = require_fs();
|
|
41154
|
-
var
|
|
41185
|
+
var path4 = require("path");
|
|
41155
41186
|
var mkdir = require_mkdirs();
|
|
41156
41187
|
var remove = require_remove();
|
|
41157
41188
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
@@ -41161,7 +41192,7 @@ var require_empty2 = __commonJS({
|
|
|
41161
41192
|
} catch {
|
|
41162
41193
|
return mkdir.mkdirs(dir);
|
|
41163
41194
|
}
|
|
41164
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
41195
|
+
return Promise.all(items.map((item) => remove.remove(path4.join(dir, item))));
|
|
41165
41196
|
});
|
|
41166
41197
|
function emptyDirSync(dir) {
|
|
41167
41198
|
let items;
|
|
@@ -41171,7 +41202,7 @@ var require_empty2 = __commonJS({
|
|
|
41171
41202
|
return mkdir.mkdirsSync(dir);
|
|
41172
41203
|
}
|
|
41173
41204
|
items.forEach((item) => {
|
|
41174
|
-
item =
|
|
41205
|
+
item = path4.join(dir, item);
|
|
41175
41206
|
remove.removeSync(item);
|
|
41176
41207
|
});
|
|
41177
41208
|
}
|
|
@@ -41189,7 +41220,7 @@ var require_file = __commonJS({
|
|
|
41189
41220
|
"../../node_modules/fs-extra/lib/ensure/file.js"(exports, module2) {
|
|
41190
41221
|
"use strict";
|
|
41191
41222
|
var u = require_universalify().fromCallback;
|
|
41192
|
-
var
|
|
41223
|
+
var path4 = require("path");
|
|
41193
41224
|
var fs2 = require_graceful_fs();
|
|
41194
41225
|
var mkdir = require_mkdirs();
|
|
41195
41226
|
function createFile(file, callback) {
|
|
@@ -41203,7 +41234,7 @@ var require_file = __commonJS({
|
|
|
41203
41234
|
fs2.stat(file, (err, stats) => {
|
|
41204
41235
|
if (!err && stats.isFile())
|
|
41205
41236
|
return callback();
|
|
41206
|
-
const dir =
|
|
41237
|
+
const dir = path4.dirname(file);
|
|
41207
41238
|
fs2.stat(dir, (err2, stats2) => {
|
|
41208
41239
|
if (err2) {
|
|
41209
41240
|
if (err2.code === "ENOENT") {
|
|
@@ -41234,7 +41265,7 @@ var require_file = __commonJS({
|
|
|
41234
41265
|
}
|
|
41235
41266
|
if (stats && stats.isFile())
|
|
41236
41267
|
return;
|
|
41237
|
-
const dir =
|
|
41268
|
+
const dir = path4.dirname(file);
|
|
41238
41269
|
try {
|
|
41239
41270
|
if (!fs2.statSync(dir).isDirectory()) {
|
|
41240
41271
|
fs2.readdirSync(dir);
|
|
@@ -41259,7 +41290,7 @@ var require_link = __commonJS({
|
|
|
41259
41290
|
"../../node_modules/fs-extra/lib/ensure/link.js"(exports, module2) {
|
|
41260
41291
|
"use strict";
|
|
41261
41292
|
var u = require_universalify().fromCallback;
|
|
41262
|
-
var
|
|
41293
|
+
var path4 = require("path");
|
|
41263
41294
|
var fs2 = require_graceful_fs();
|
|
41264
41295
|
var mkdir = require_mkdirs();
|
|
41265
41296
|
var pathExists = require_path_exists().pathExists;
|
|
@@ -41280,7 +41311,7 @@ var require_link = __commonJS({
|
|
|
41280
41311
|
}
|
|
41281
41312
|
if (dstStat && areIdentical(srcStat, dstStat))
|
|
41282
41313
|
return callback(null);
|
|
41283
|
-
const dir =
|
|
41314
|
+
const dir = path4.dirname(dstpath);
|
|
41284
41315
|
pathExists(dir, (err2, dirExists) => {
|
|
41285
41316
|
if (err2)
|
|
41286
41317
|
return callback(err2);
|
|
@@ -41309,7 +41340,7 @@ var require_link = __commonJS({
|
|
|
41309
41340
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
41310
41341
|
throw err;
|
|
41311
41342
|
}
|
|
41312
|
-
const dir =
|
|
41343
|
+
const dir = path4.dirname(dstpath);
|
|
41313
41344
|
const dirExists = fs2.existsSync(dir);
|
|
41314
41345
|
if (dirExists)
|
|
41315
41346
|
return fs2.linkSync(srcpath, dstpath);
|
|
@@ -41327,11 +41358,11 @@ var require_link = __commonJS({
|
|
|
41327
41358
|
var require_symlink_paths = __commonJS({
|
|
41328
41359
|
"../../node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) {
|
|
41329
41360
|
"use strict";
|
|
41330
|
-
var
|
|
41361
|
+
var path4 = require("path");
|
|
41331
41362
|
var fs2 = require_graceful_fs();
|
|
41332
41363
|
var pathExists = require_path_exists().pathExists;
|
|
41333
41364
|
function symlinkPaths(srcpath, dstpath, callback) {
|
|
41334
|
-
if (
|
|
41365
|
+
if (path4.isAbsolute(srcpath)) {
|
|
41335
41366
|
return fs2.lstat(srcpath, (err) => {
|
|
41336
41367
|
if (err) {
|
|
41337
41368
|
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
@@ -41343,8 +41374,8 @@ var require_symlink_paths = __commonJS({
|
|
|
41343
41374
|
});
|
|
41344
41375
|
});
|
|
41345
41376
|
} else {
|
|
41346
|
-
const dstdir =
|
|
41347
|
-
const relativeToDst =
|
|
41377
|
+
const dstdir = path4.dirname(dstpath);
|
|
41378
|
+
const relativeToDst = path4.join(dstdir, srcpath);
|
|
41348
41379
|
return pathExists(relativeToDst, (err, exists) => {
|
|
41349
41380
|
if (err)
|
|
41350
41381
|
return callback(err);
|
|
@@ -41361,7 +41392,7 @@ var require_symlink_paths = __commonJS({
|
|
|
41361
41392
|
}
|
|
41362
41393
|
return callback(null, {
|
|
41363
41394
|
toCwd: srcpath,
|
|
41364
|
-
toDst:
|
|
41395
|
+
toDst: path4.relative(dstdir, srcpath)
|
|
41365
41396
|
});
|
|
41366
41397
|
});
|
|
41367
41398
|
}
|
|
@@ -41370,7 +41401,7 @@ var require_symlink_paths = __commonJS({
|
|
|
41370
41401
|
}
|
|
41371
41402
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
41372
41403
|
let exists;
|
|
41373
|
-
if (
|
|
41404
|
+
if (path4.isAbsolute(srcpath)) {
|
|
41374
41405
|
exists = fs2.existsSync(srcpath);
|
|
41375
41406
|
if (!exists)
|
|
41376
41407
|
throw new Error("absolute srcpath does not exist");
|
|
@@ -41379,8 +41410,8 @@ var require_symlink_paths = __commonJS({
|
|
|
41379
41410
|
toDst: srcpath
|
|
41380
41411
|
};
|
|
41381
41412
|
} else {
|
|
41382
|
-
const dstdir =
|
|
41383
|
-
const relativeToDst =
|
|
41413
|
+
const dstdir = path4.dirname(dstpath);
|
|
41414
|
+
const relativeToDst = path4.join(dstdir, srcpath);
|
|
41384
41415
|
exists = fs2.existsSync(relativeToDst);
|
|
41385
41416
|
if (exists) {
|
|
41386
41417
|
return {
|
|
@@ -41393,7 +41424,7 @@ var require_symlink_paths = __commonJS({
|
|
|
41393
41424
|
throw new Error("relative srcpath does not exist");
|
|
41394
41425
|
return {
|
|
41395
41426
|
toCwd: srcpath,
|
|
41396
|
-
toDst:
|
|
41427
|
+
toDst: path4.relative(dstdir, srcpath)
|
|
41397
41428
|
};
|
|
41398
41429
|
}
|
|
41399
41430
|
}
|
|
@@ -41445,7 +41476,7 @@ var require_symlink = __commonJS({
|
|
|
41445
41476
|
"../../node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) {
|
|
41446
41477
|
"use strict";
|
|
41447
41478
|
var u = require_universalify().fromCallback;
|
|
41448
|
-
var
|
|
41479
|
+
var path4 = require("path");
|
|
41449
41480
|
var fs2 = require_fs();
|
|
41450
41481
|
var _mkdirs = require_mkdirs();
|
|
41451
41482
|
var mkdirs = _mkdirs.mkdirs;
|
|
@@ -41483,7 +41514,7 @@ var require_symlink = __commonJS({
|
|
|
41483
41514
|
symlinkType(relative.toCwd, type, (err2, type2) => {
|
|
41484
41515
|
if (err2)
|
|
41485
41516
|
return callback(err2);
|
|
41486
|
-
const dir =
|
|
41517
|
+
const dir = path4.dirname(dstpath);
|
|
41487
41518
|
pathExists(dir, (err3, dirExists) => {
|
|
41488
41519
|
if (err3)
|
|
41489
41520
|
return callback(err3);
|
|
@@ -41513,7 +41544,7 @@ var require_symlink = __commonJS({
|
|
|
41513
41544
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
41514
41545
|
srcpath = relative.toDst;
|
|
41515
41546
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
41516
|
-
const dir =
|
|
41547
|
+
const dir = path4.dirname(dstpath);
|
|
41517
41548
|
const exists = fs2.existsSync(dir);
|
|
41518
41549
|
if (exists)
|
|
41519
41550
|
return fs2.symlinkSync(srcpath, dstpath, type);
|
|
@@ -41688,7 +41719,7 @@ var require_output = __commonJS({
|
|
|
41688
41719
|
"use strict";
|
|
41689
41720
|
var u = require_universalify().fromCallback;
|
|
41690
41721
|
var fs2 = require_graceful_fs();
|
|
41691
|
-
var
|
|
41722
|
+
var path4 = require("path");
|
|
41692
41723
|
var mkdir = require_mkdirs();
|
|
41693
41724
|
var pathExists = require_path_exists().pathExists;
|
|
41694
41725
|
function outputFile(file, data, encoding, callback) {
|
|
@@ -41696,7 +41727,7 @@ var require_output = __commonJS({
|
|
|
41696
41727
|
callback = encoding;
|
|
41697
41728
|
encoding = "utf8";
|
|
41698
41729
|
}
|
|
41699
|
-
const dir =
|
|
41730
|
+
const dir = path4.dirname(file);
|
|
41700
41731
|
pathExists(dir, (err, itDoes) => {
|
|
41701
41732
|
if (err)
|
|
41702
41733
|
return callback(err);
|
|
@@ -41710,7 +41741,7 @@ var require_output = __commonJS({
|
|
|
41710
41741
|
});
|
|
41711
41742
|
}
|
|
41712
41743
|
function outputFileSync(file, ...args) {
|
|
41713
|
-
const dir =
|
|
41744
|
+
const dir = path4.dirname(file);
|
|
41714
41745
|
if (fs2.existsSync(dir)) {
|
|
41715
41746
|
return fs2.writeFileSync(file, ...args);
|
|
41716
41747
|
}
|
|
@@ -41775,7 +41806,7 @@ var require_move_sync = __commonJS({
|
|
|
41775
41806
|
"../../node_modules/fs-extra/lib/move-sync/move-sync.js"(exports, module2) {
|
|
41776
41807
|
"use strict";
|
|
41777
41808
|
var fs2 = require_graceful_fs();
|
|
41778
|
-
var
|
|
41809
|
+
var path4 = require("path");
|
|
41779
41810
|
var copySync = require_copy_sync2().copySync;
|
|
41780
41811
|
var removeSync = require_remove().removeSync;
|
|
41781
41812
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -41786,12 +41817,12 @@ var require_move_sync = __commonJS({
|
|
|
41786
41817
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
|
|
41787
41818
|
stat.checkParentPathsSync(src, srcStat, dest, "move");
|
|
41788
41819
|
if (!isParentRoot(dest))
|
|
41789
|
-
mkdirpSync(
|
|
41820
|
+
mkdirpSync(path4.dirname(dest));
|
|
41790
41821
|
return doRename(src, dest, overwrite, isChangingCase);
|
|
41791
41822
|
}
|
|
41792
41823
|
function isParentRoot(dest) {
|
|
41793
|
-
const parent =
|
|
41794
|
-
const parsedPath =
|
|
41824
|
+
const parent = path4.dirname(dest);
|
|
41825
|
+
const parsedPath = path4.parse(parent);
|
|
41795
41826
|
return parsedPath.root === parent;
|
|
41796
41827
|
}
|
|
41797
41828
|
function doRename(src, dest, overwrite, isChangingCase) {
|
|
@@ -41841,7 +41872,7 @@ var require_move = __commonJS({
|
|
|
41841
41872
|
"../../node_modules/fs-extra/lib/move/move.js"(exports, module2) {
|
|
41842
41873
|
"use strict";
|
|
41843
41874
|
var fs2 = require_graceful_fs();
|
|
41844
|
-
var
|
|
41875
|
+
var path4 = require("path");
|
|
41845
41876
|
var copy = require_copy2().copy;
|
|
41846
41877
|
var remove = require_remove().remove;
|
|
41847
41878
|
var mkdirp = require_mkdirs().mkdirp;
|
|
@@ -41862,7 +41893,7 @@ var require_move = __commonJS({
|
|
|
41862
41893
|
return cb(err2);
|
|
41863
41894
|
if (isParentRoot(dest))
|
|
41864
41895
|
return doRename(src, dest, overwrite, isChangingCase, cb);
|
|
41865
|
-
mkdirp(
|
|
41896
|
+
mkdirp(path4.dirname(dest), (err3) => {
|
|
41866
41897
|
if (err3)
|
|
41867
41898
|
return cb(err3);
|
|
41868
41899
|
return doRename(src, dest, overwrite, isChangingCase, cb);
|
|
@@ -41871,8 +41902,8 @@ var require_move = __commonJS({
|
|
|
41871
41902
|
});
|
|
41872
41903
|
}
|
|
41873
41904
|
function isParentRoot(dest) {
|
|
41874
|
-
const parent =
|
|
41875
|
-
const parsedPath =
|
|
41905
|
+
const parent = path4.dirname(dest);
|
|
41906
|
+
const parsedPath = path4.parse(parent);
|
|
41876
41907
|
return parsedPath.root === parent;
|
|
41877
41908
|
}
|
|
41878
41909
|
function doRename(src, dest, overwrite, isChangingCase, cb) {
|
|
@@ -42007,7 +42038,7 @@ var require_path = __commonJS({
|
|
|
42007
42038
|
"use strict";
|
|
42008
42039
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42009
42040
|
exports.removeLeadingDotSegment = exports.escape = exports.makeAbsolute = exports.unixify = void 0;
|
|
42010
|
-
var
|
|
42041
|
+
var path4 = require("path");
|
|
42011
42042
|
var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
42012
42043
|
var UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;
|
|
42013
42044
|
function unixify(filepath) {
|
|
@@ -42015,7 +42046,7 @@ var require_path = __commonJS({
|
|
|
42015
42046
|
}
|
|
42016
42047
|
exports.unixify = unixify;
|
|
42017
42048
|
function makeAbsolute(cwd, filepath) {
|
|
42018
|
-
return
|
|
42049
|
+
return path4.resolve(cwd, filepath);
|
|
42019
42050
|
}
|
|
42020
42051
|
exports.makeAbsolute = makeAbsolute;
|
|
42021
42052
|
function escape(pattern) {
|
|
@@ -43263,7 +43294,7 @@ var require_braces = __commonJS({
|
|
|
43263
43294
|
var require_constants3 = __commonJS({
|
|
43264
43295
|
"../../node_modules/picomatch/lib/constants.js"(exports, module2) {
|
|
43265
43296
|
"use strict";
|
|
43266
|
-
var
|
|
43297
|
+
var path4 = require("path");
|
|
43267
43298
|
var WIN_SLASH = "\\\\/";
|
|
43268
43299
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
43269
43300
|
var DOT_LITERAL = "\\.";
|
|
@@ -43384,7 +43415,7 @@ var require_constants3 = __commonJS({
|
|
|
43384
43415
|
CHAR_UNDERSCORE: 95,
|
|
43385
43416
|
CHAR_VERTICAL_LINE: 124,
|
|
43386
43417
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
43387
|
-
SEP:
|
|
43418
|
+
SEP: path4.sep,
|
|
43388
43419
|
extglobChars(chars) {
|
|
43389
43420
|
return {
|
|
43390
43421
|
"!": { type: "negate", open: "(?:(?!(?:", close: `))${chars.STAR})` },
|
|
@@ -43405,7 +43436,7 @@ var require_constants3 = __commonJS({
|
|
|
43405
43436
|
var require_utils5 = __commonJS({
|
|
43406
43437
|
"../../node_modules/picomatch/lib/utils.js"(exports) {
|
|
43407
43438
|
"use strict";
|
|
43408
|
-
var
|
|
43439
|
+
var path4 = require("path");
|
|
43409
43440
|
var win32 = process.platform === "win32";
|
|
43410
43441
|
var {
|
|
43411
43442
|
REGEX_BACKSLASH,
|
|
@@ -43434,7 +43465,7 @@ var require_utils5 = __commonJS({
|
|
|
43434
43465
|
if (options && typeof options.windows === "boolean") {
|
|
43435
43466
|
return options.windows;
|
|
43436
43467
|
}
|
|
43437
|
-
return win32 === true ||
|
|
43468
|
+
return win32 === true || path4.sep === "\\";
|
|
43438
43469
|
};
|
|
43439
43470
|
exports.escapeLast = (input, char, lastIdx) => {
|
|
43440
43471
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
@@ -44566,7 +44597,7 @@ var require_parse4 = __commonJS({
|
|
|
44566
44597
|
var require_picomatch = __commonJS({
|
|
44567
44598
|
"../../node_modules/picomatch/lib/picomatch.js"(exports, module2) {
|
|
44568
44599
|
"use strict";
|
|
44569
|
-
var
|
|
44600
|
+
var path4 = require("path");
|
|
44570
44601
|
var scan = require_scan2();
|
|
44571
44602
|
var parse = require_parse4();
|
|
44572
44603
|
var utils = require_utils5();
|
|
@@ -44652,7 +44683,7 @@ var require_picomatch = __commonJS({
|
|
|
44652
44683
|
};
|
|
44653
44684
|
picomatch.matchBase = (input, glob2, options, posix = utils.isWindows(options)) => {
|
|
44654
44685
|
const regex = glob2 instanceof RegExp ? glob2 : picomatch.makeRe(glob2, options);
|
|
44655
|
-
return regex.test(
|
|
44686
|
+
return regex.test(path4.basename(input));
|
|
44656
44687
|
};
|
|
44657
44688
|
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
44658
44689
|
picomatch.parse = (pattern, options) => {
|
|
@@ -44882,7 +44913,7 @@ var require_pattern = __commonJS({
|
|
|
44882
44913
|
"use strict";
|
|
44883
44914
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44884
44915
|
exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
|
|
44885
|
-
var
|
|
44916
|
+
var path4 = require("path");
|
|
44886
44917
|
var globParent = require_glob_parent();
|
|
44887
44918
|
var micromatch = require_micromatch();
|
|
44888
44919
|
var GLOBSTAR = "**";
|
|
@@ -44964,7 +44995,7 @@ var require_pattern = __commonJS({
|
|
|
44964
44995
|
}
|
|
44965
44996
|
exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
|
|
44966
44997
|
function isAffectDepthOfReadingPattern(pattern) {
|
|
44967
|
-
const basename =
|
|
44998
|
+
const basename = path4.basename(pattern);
|
|
44968
44999
|
return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
|
|
44969
45000
|
}
|
|
44970
45001
|
exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
|
|
@@ -45156,8 +45187,8 @@ var require_utils6 = __commonJS({
|
|
|
45156
45187
|
exports.errno = errno;
|
|
45157
45188
|
var fs2 = require_fs2();
|
|
45158
45189
|
exports.fs = fs2;
|
|
45159
|
-
var
|
|
45160
|
-
exports.path =
|
|
45190
|
+
var path4 = require_path();
|
|
45191
|
+
exports.path = path4;
|
|
45161
45192
|
var pattern = require_pattern();
|
|
45162
45193
|
exports.pattern = pattern;
|
|
45163
45194
|
var stream = require_stream2();
|
|
@@ -45246,15 +45277,15 @@ var require_async2 = __commonJS({
|
|
|
45246
45277
|
"../../node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
|
|
45247
45278
|
"use strict";
|
|
45248
45279
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45249
|
-
function read(
|
|
45250
|
-
settings.fs.lstat(
|
|
45280
|
+
function read(path4, settings, callback) {
|
|
45281
|
+
settings.fs.lstat(path4, (lstatError, lstat) => {
|
|
45251
45282
|
if (lstatError !== null) {
|
|
45252
45283
|
return callFailureCallback(callback, lstatError);
|
|
45253
45284
|
}
|
|
45254
45285
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
45255
45286
|
return callSuccessCallback(callback, lstat);
|
|
45256
45287
|
}
|
|
45257
|
-
settings.fs.stat(
|
|
45288
|
+
settings.fs.stat(path4, (statError, stat) => {
|
|
45258
45289
|
if (statError !== null) {
|
|
45259
45290
|
if (settings.throwErrorOnBrokenSymbolicLink) {
|
|
45260
45291
|
return callFailureCallback(callback, statError);
|
|
@@ -45283,13 +45314,13 @@ var require_sync = __commonJS({
|
|
|
45283
45314
|
"../../node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) {
|
|
45284
45315
|
"use strict";
|
|
45285
45316
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45286
|
-
function read(
|
|
45287
|
-
const lstat = settings.fs.lstatSync(
|
|
45317
|
+
function read(path4, settings) {
|
|
45318
|
+
const lstat = settings.fs.lstatSync(path4);
|
|
45288
45319
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
45289
45320
|
return lstat;
|
|
45290
45321
|
}
|
|
45291
45322
|
try {
|
|
45292
|
-
const stat = settings.fs.statSync(
|
|
45323
|
+
const stat = settings.fs.statSync(path4);
|
|
45293
45324
|
if (settings.markSymbolicLink) {
|
|
45294
45325
|
stat.isSymbolicLink = () => true;
|
|
45295
45326
|
}
|
|
@@ -45358,16 +45389,16 @@ var require_out = __commonJS({
|
|
|
45358
45389
|
var sync = require_sync();
|
|
45359
45390
|
var settings_1 = require_settings();
|
|
45360
45391
|
exports.Settings = settings_1.default;
|
|
45361
|
-
function stat(
|
|
45392
|
+
function stat(path4, optionsOrSettingsOrCallback, callback) {
|
|
45362
45393
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
45363
|
-
return async.read(
|
|
45394
|
+
return async.read(path4, getSettings(), optionsOrSettingsOrCallback);
|
|
45364
45395
|
}
|
|
45365
|
-
async.read(
|
|
45396
|
+
async.read(path4, getSettings(optionsOrSettingsOrCallback), callback);
|
|
45366
45397
|
}
|
|
45367
45398
|
exports.stat = stat;
|
|
45368
|
-
function statSync(
|
|
45399
|
+
function statSync(path4, optionsOrSettings) {
|
|
45369
45400
|
const settings = getSettings(optionsOrSettings);
|
|
45370
|
-
return sync.read(
|
|
45401
|
+
return sync.read(path4, settings);
|
|
45371
45402
|
}
|
|
45372
45403
|
exports.statSync = statSync;
|
|
45373
45404
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -45663,7 +45694,7 @@ var require_settings2 = __commonJS({
|
|
|
45663
45694
|
"../../node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
|
|
45664
45695
|
"use strict";
|
|
45665
45696
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45666
|
-
var
|
|
45697
|
+
var path4 = require("path");
|
|
45667
45698
|
var fsStat = require_out();
|
|
45668
45699
|
var fs2 = require_fs5();
|
|
45669
45700
|
var Settings = class {
|
|
@@ -45671,7 +45702,7 @@ var require_settings2 = __commonJS({
|
|
|
45671
45702
|
this._options = _options;
|
|
45672
45703
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
45673
45704
|
this.fs = fs2.createFileSystemAdapter(this._options.fs);
|
|
45674
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
45705
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path4.sep);
|
|
45675
45706
|
this.stats = this._getValue(this._options.stats, false);
|
|
45676
45707
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
45677
45708
|
this.fsStatSettings = new fsStat.Settings({
|
|
@@ -45697,16 +45728,16 @@ var require_out2 = __commonJS({
|
|
|
45697
45728
|
var sync = require_sync2();
|
|
45698
45729
|
var settings_1 = require_settings2();
|
|
45699
45730
|
exports.Settings = settings_1.default;
|
|
45700
|
-
function scandir(
|
|
45731
|
+
function scandir(path4, optionsOrSettingsOrCallback, callback) {
|
|
45701
45732
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
45702
|
-
return async.read(
|
|
45733
|
+
return async.read(path4, getSettings(), optionsOrSettingsOrCallback);
|
|
45703
45734
|
}
|
|
45704
|
-
async.read(
|
|
45735
|
+
async.read(path4, getSettings(optionsOrSettingsOrCallback), callback);
|
|
45705
45736
|
}
|
|
45706
45737
|
exports.scandir = scandir;
|
|
45707
|
-
function scandirSync(
|
|
45738
|
+
function scandirSync(path4, optionsOrSettings) {
|
|
45708
45739
|
const settings = getSettings(optionsOrSettings);
|
|
45709
|
-
return sync.read(
|
|
45740
|
+
return sync.read(path4, settings);
|
|
45710
45741
|
}
|
|
45711
45742
|
exports.scandirSync = scandirSync;
|
|
45712
45743
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -46212,7 +46243,7 @@ var require_settings3 = __commonJS({
|
|
|
46212
46243
|
"../../node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
|
|
46213
46244
|
"use strict";
|
|
46214
46245
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46215
|
-
var
|
|
46246
|
+
var path4 = require("path");
|
|
46216
46247
|
var fsScandir = require_out2();
|
|
46217
46248
|
var Settings = class {
|
|
46218
46249
|
constructor(_options = {}) {
|
|
@@ -46222,7 +46253,7 @@ var require_settings3 = __commonJS({
|
|
|
46222
46253
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
46223
46254
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
46224
46255
|
this.errorFilter = this._getValue(this._options.errorFilter, null);
|
|
46225
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
46256
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path4.sep);
|
|
46226
46257
|
this.fsScandirSettings = new fsScandir.Settings({
|
|
46227
46258
|
followSymbolicLinks: this._options.followSymbolicLinks,
|
|
46228
46259
|
fs: this._options.fs,
|
|
@@ -46282,7 +46313,7 @@ var require_reader2 = __commonJS({
|
|
|
46282
46313
|
"../../node_modules/fast-glob/out/readers/reader.js"(exports) {
|
|
46283
46314
|
"use strict";
|
|
46284
46315
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46285
|
-
var
|
|
46316
|
+
var path4 = require("path");
|
|
46286
46317
|
var fsStat = require_out();
|
|
46287
46318
|
var utils = require_utils6();
|
|
46288
46319
|
var Reader = class {
|
|
@@ -46295,7 +46326,7 @@ var require_reader2 = __commonJS({
|
|
|
46295
46326
|
});
|
|
46296
46327
|
}
|
|
46297
46328
|
_getFullEntryPath(filepath) {
|
|
46298
|
-
return
|
|
46329
|
+
return path4.resolve(this._settings.cwd, filepath);
|
|
46299
46330
|
}
|
|
46300
46331
|
_makeEntry(stats, pattern) {
|
|
46301
46332
|
const entry = {
|
|
@@ -46647,7 +46678,7 @@ var require_provider = __commonJS({
|
|
|
46647
46678
|
"../../node_modules/fast-glob/out/providers/provider.js"(exports) {
|
|
46648
46679
|
"use strict";
|
|
46649
46680
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46650
|
-
var
|
|
46681
|
+
var path4 = require("path");
|
|
46651
46682
|
var deep_1 = require_deep();
|
|
46652
46683
|
var entry_1 = require_entry();
|
|
46653
46684
|
var error_1 = require_error();
|
|
@@ -46661,7 +46692,7 @@ var require_provider = __commonJS({
|
|
|
46661
46692
|
this.entryTransformer = new entry_2.default(this._settings);
|
|
46662
46693
|
}
|
|
46663
46694
|
_getRootDirectory(task) {
|
|
46664
|
-
return
|
|
46695
|
+
return path4.resolve(this._settings.cwd, task.base);
|
|
46665
46696
|
}
|
|
46666
46697
|
_getReaderOptions(task) {
|
|
46667
46698
|
const basePath = task.base === "." ? "" : task.base;
|
|
@@ -50569,13 +50600,1580 @@ var require_build4 = __commonJS({
|
|
|
50569
50600
|
}
|
|
50570
50601
|
});
|
|
50571
50602
|
|
|
50603
|
+
// ../../node_modules/execa/node_modules/which/which.js
|
|
50604
|
+
var require_which2 = __commonJS({
|
|
50605
|
+
"../../node_modules/execa/node_modules/which/which.js"(exports, module2) {
|
|
50606
|
+
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
50607
|
+
var path4 = require("path");
|
|
50608
|
+
var COLON = isWindows ? ";" : ":";
|
|
50609
|
+
var isexe = require_isexe();
|
|
50610
|
+
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
50611
|
+
var getPathInfo = (cmd, opt) => {
|
|
50612
|
+
const colon = opt.colon || COLON;
|
|
50613
|
+
const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [
|
|
50614
|
+
...isWindows ? [process.cwd()] : [],
|
|
50615
|
+
...(opt.path || process.env.PATH || "").split(colon)
|
|
50616
|
+
];
|
|
50617
|
+
const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
50618
|
+
const pathExt = isWindows ? pathExtExe.split(colon) : [""];
|
|
50619
|
+
if (isWindows) {
|
|
50620
|
+
if (cmd.indexOf(".") !== -1 && pathExt[0] !== "")
|
|
50621
|
+
pathExt.unshift("");
|
|
50622
|
+
}
|
|
50623
|
+
return {
|
|
50624
|
+
pathEnv,
|
|
50625
|
+
pathExt,
|
|
50626
|
+
pathExtExe
|
|
50627
|
+
};
|
|
50628
|
+
};
|
|
50629
|
+
var which = (cmd, opt, cb) => {
|
|
50630
|
+
if (typeof opt === "function") {
|
|
50631
|
+
cb = opt;
|
|
50632
|
+
opt = {};
|
|
50633
|
+
}
|
|
50634
|
+
if (!opt)
|
|
50635
|
+
opt = {};
|
|
50636
|
+
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
50637
|
+
const found = [];
|
|
50638
|
+
const step = (i) => new Promise((resolve, reject) => {
|
|
50639
|
+
if (i === pathEnv.length)
|
|
50640
|
+
return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
50641
|
+
const ppRaw = pathEnv[i];
|
|
50642
|
+
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
50643
|
+
const pCmd = path4.join(pathPart, cmd);
|
|
50644
|
+
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
50645
|
+
resolve(subStep(p, i, 0));
|
|
50646
|
+
});
|
|
50647
|
+
const subStep = (p, i, ii) => new Promise((resolve, reject) => {
|
|
50648
|
+
if (ii === pathExt.length)
|
|
50649
|
+
return resolve(step(i + 1));
|
|
50650
|
+
const ext = pathExt[ii];
|
|
50651
|
+
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
50652
|
+
if (!er && is) {
|
|
50653
|
+
if (opt.all)
|
|
50654
|
+
found.push(p + ext);
|
|
50655
|
+
else
|
|
50656
|
+
return resolve(p + ext);
|
|
50657
|
+
}
|
|
50658
|
+
return resolve(subStep(p, i, ii + 1));
|
|
50659
|
+
});
|
|
50660
|
+
});
|
|
50661
|
+
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
50662
|
+
};
|
|
50663
|
+
var whichSync = (cmd, opt) => {
|
|
50664
|
+
opt = opt || {};
|
|
50665
|
+
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
50666
|
+
const found = [];
|
|
50667
|
+
for (let i = 0; i < pathEnv.length; i++) {
|
|
50668
|
+
const ppRaw = pathEnv[i];
|
|
50669
|
+
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
50670
|
+
const pCmd = path4.join(pathPart, cmd);
|
|
50671
|
+
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
50672
|
+
for (let j = 0; j < pathExt.length; j++) {
|
|
50673
|
+
const cur = p + pathExt[j];
|
|
50674
|
+
try {
|
|
50675
|
+
const is = isexe.sync(cur, { pathExt: pathExtExe });
|
|
50676
|
+
if (is) {
|
|
50677
|
+
if (opt.all)
|
|
50678
|
+
found.push(cur);
|
|
50679
|
+
else
|
|
50680
|
+
return cur;
|
|
50681
|
+
}
|
|
50682
|
+
} catch (ex) {
|
|
50683
|
+
}
|
|
50684
|
+
}
|
|
50685
|
+
}
|
|
50686
|
+
if (opt.all && found.length)
|
|
50687
|
+
return found;
|
|
50688
|
+
if (opt.nothrow)
|
|
50689
|
+
return null;
|
|
50690
|
+
throw getNotFoundError(cmd);
|
|
50691
|
+
};
|
|
50692
|
+
module2.exports = which;
|
|
50693
|
+
which.sync = whichSync;
|
|
50694
|
+
}
|
|
50695
|
+
});
|
|
50696
|
+
|
|
50697
|
+
// ../../node_modules/path-key/index.js
|
|
50698
|
+
var require_path_key2 = __commonJS({
|
|
50699
|
+
"../../node_modules/path-key/index.js"(exports, module2) {
|
|
50700
|
+
"use strict";
|
|
50701
|
+
var pathKey = (options = {}) => {
|
|
50702
|
+
const environment = options.env || process.env;
|
|
50703
|
+
const platform = options.platform || process.platform;
|
|
50704
|
+
if (platform !== "win32") {
|
|
50705
|
+
return "PATH";
|
|
50706
|
+
}
|
|
50707
|
+
return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
50708
|
+
};
|
|
50709
|
+
module2.exports = pathKey;
|
|
50710
|
+
module2.exports.default = pathKey;
|
|
50711
|
+
}
|
|
50712
|
+
});
|
|
50713
|
+
|
|
50714
|
+
// ../../node_modules/execa/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
50715
|
+
var require_resolveCommand2 = __commonJS({
|
|
50716
|
+
"../../node_modules/execa/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module2) {
|
|
50717
|
+
"use strict";
|
|
50718
|
+
var path4 = require("path");
|
|
50719
|
+
var which = require_which2();
|
|
50720
|
+
var getPathKey = require_path_key2();
|
|
50721
|
+
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
50722
|
+
const env = parsed.options.env || process.env;
|
|
50723
|
+
const cwd = process.cwd();
|
|
50724
|
+
const hasCustomCwd = parsed.options.cwd != null;
|
|
50725
|
+
const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
|
50726
|
+
if (shouldSwitchCwd) {
|
|
50727
|
+
try {
|
|
50728
|
+
process.chdir(parsed.options.cwd);
|
|
50729
|
+
} catch (err) {
|
|
50730
|
+
}
|
|
50731
|
+
}
|
|
50732
|
+
let resolved;
|
|
50733
|
+
try {
|
|
50734
|
+
resolved = which.sync(parsed.command, {
|
|
50735
|
+
path: env[getPathKey({ env })],
|
|
50736
|
+
pathExt: withoutPathExt ? path4.delimiter : void 0
|
|
50737
|
+
});
|
|
50738
|
+
} catch (e) {
|
|
50739
|
+
} finally {
|
|
50740
|
+
if (shouldSwitchCwd) {
|
|
50741
|
+
process.chdir(cwd);
|
|
50742
|
+
}
|
|
50743
|
+
}
|
|
50744
|
+
if (resolved) {
|
|
50745
|
+
resolved = path4.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
50746
|
+
}
|
|
50747
|
+
return resolved;
|
|
50748
|
+
}
|
|
50749
|
+
function resolveCommand(parsed) {
|
|
50750
|
+
return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
|
|
50751
|
+
}
|
|
50752
|
+
module2.exports = resolveCommand;
|
|
50753
|
+
}
|
|
50754
|
+
});
|
|
50755
|
+
|
|
50756
|
+
// ../../node_modules/execa/node_modules/cross-spawn/lib/util/escape.js
|
|
50757
|
+
var require_escape = __commonJS({
|
|
50758
|
+
"../../node_modules/execa/node_modules/cross-spawn/lib/util/escape.js"(exports, module2) {
|
|
50759
|
+
"use strict";
|
|
50760
|
+
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
50761
|
+
function escapeCommand(arg) {
|
|
50762
|
+
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
50763
|
+
return arg;
|
|
50764
|
+
}
|
|
50765
|
+
function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
50766
|
+
arg = `${arg}`;
|
|
50767
|
+
arg = arg.replace(/(\\*)"/g, '$1$1\\"');
|
|
50768
|
+
arg = arg.replace(/(\\*)$/, "$1$1");
|
|
50769
|
+
arg = `"${arg}"`;
|
|
50770
|
+
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
50771
|
+
if (doubleEscapeMetaChars) {
|
|
50772
|
+
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
50773
|
+
}
|
|
50774
|
+
return arg;
|
|
50775
|
+
}
|
|
50776
|
+
module2.exports.command = escapeCommand;
|
|
50777
|
+
module2.exports.argument = escapeArgument;
|
|
50778
|
+
}
|
|
50779
|
+
});
|
|
50780
|
+
|
|
50781
|
+
// ../../node_modules/shebang-regex/index.js
|
|
50782
|
+
var require_shebang_regex = __commonJS({
|
|
50783
|
+
"../../node_modules/shebang-regex/index.js"(exports, module2) {
|
|
50784
|
+
"use strict";
|
|
50785
|
+
module2.exports = /^#!(.*)/;
|
|
50786
|
+
}
|
|
50787
|
+
});
|
|
50788
|
+
|
|
50789
|
+
// ../../node_modules/execa/node_modules/shebang-command/index.js
|
|
50790
|
+
var require_shebang_command = __commonJS({
|
|
50791
|
+
"../../node_modules/execa/node_modules/shebang-command/index.js"(exports, module2) {
|
|
50792
|
+
"use strict";
|
|
50793
|
+
var shebangRegex = require_shebang_regex();
|
|
50794
|
+
module2.exports = (string = "") => {
|
|
50795
|
+
const match = string.match(shebangRegex);
|
|
50796
|
+
if (!match) {
|
|
50797
|
+
return null;
|
|
50798
|
+
}
|
|
50799
|
+
const [path4, argument] = match[0].replace(/#! ?/, "").split(" ");
|
|
50800
|
+
const binary = path4.split("/").pop();
|
|
50801
|
+
if (binary === "env") {
|
|
50802
|
+
return argument;
|
|
50803
|
+
}
|
|
50804
|
+
return argument ? `${binary} ${argument}` : binary;
|
|
50805
|
+
};
|
|
50806
|
+
}
|
|
50807
|
+
});
|
|
50808
|
+
|
|
50809
|
+
// ../../node_modules/execa/node_modules/cross-spawn/lib/util/readShebang.js
|
|
50810
|
+
var require_readShebang = __commonJS({
|
|
50811
|
+
"../../node_modules/execa/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module2) {
|
|
50812
|
+
"use strict";
|
|
50813
|
+
var fs2 = require("fs");
|
|
50814
|
+
var shebangCommand = require_shebang_command();
|
|
50815
|
+
function readShebang(command) {
|
|
50816
|
+
const size = 150;
|
|
50817
|
+
const buffer = Buffer.alloc(size);
|
|
50818
|
+
let fd;
|
|
50819
|
+
try {
|
|
50820
|
+
fd = fs2.openSync(command, "r");
|
|
50821
|
+
fs2.readSync(fd, buffer, 0, size, 0);
|
|
50822
|
+
fs2.closeSync(fd);
|
|
50823
|
+
} catch (e) {
|
|
50824
|
+
}
|
|
50825
|
+
return shebangCommand(buffer.toString());
|
|
50826
|
+
}
|
|
50827
|
+
module2.exports = readShebang;
|
|
50828
|
+
}
|
|
50829
|
+
});
|
|
50830
|
+
|
|
50831
|
+
// ../../node_modules/execa/node_modules/cross-spawn/lib/parse.js
|
|
50832
|
+
var require_parse5 = __commonJS({
|
|
50833
|
+
"../../node_modules/execa/node_modules/cross-spawn/lib/parse.js"(exports, module2) {
|
|
50834
|
+
"use strict";
|
|
50835
|
+
var path4 = require("path");
|
|
50836
|
+
var resolveCommand = require_resolveCommand2();
|
|
50837
|
+
var escape = require_escape();
|
|
50838
|
+
var readShebang = require_readShebang();
|
|
50839
|
+
var isWin = process.platform === "win32";
|
|
50840
|
+
var isExecutableRegExp = /\.(?:com|exe)$/i;
|
|
50841
|
+
var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
50842
|
+
function detectShebang(parsed) {
|
|
50843
|
+
parsed.file = resolveCommand(parsed);
|
|
50844
|
+
const shebang = parsed.file && readShebang(parsed.file);
|
|
50845
|
+
if (shebang) {
|
|
50846
|
+
parsed.args.unshift(parsed.file);
|
|
50847
|
+
parsed.command = shebang;
|
|
50848
|
+
return resolveCommand(parsed);
|
|
50849
|
+
}
|
|
50850
|
+
return parsed.file;
|
|
50851
|
+
}
|
|
50852
|
+
function parseNonShell(parsed) {
|
|
50853
|
+
if (!isWin) {
|
|
50854
|
+
return parsed;
|
|
50855
|
+
}
|
|
50856
|
+
const commandFile = detectShebang(parsed);
|
|
50857
|
+
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
50858
|
+
if (parsed.options.forceShell || needsShell) {
|
|
50859
|
+
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
50860
|
+
parsed.command = path4.normalize(parsed.command);
|
|
50861
|
+
parsed.command = escape.command(parsed.command);
|
|
50862
|
+
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
50863
|
+
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
50864
|
+
parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`];
|
|
50865
|
+
parsed.command = process.env.comspec || "cmd.exe";
|
|
50866
|
+
parsed.options.windowsVerbatimArguments = true;
|
|
50867
|
+
}
|
|
50868
|
+
return parsed;
|
|
50869
|
+
}
|
|
50870
|
+
function parse(command, args, options) {
|
|
50871
|
+
if (args && !Array.isArray(args)) {
|
|
50872
|
+
options = args;
|
|
50873
|
+
args = null;
|
|
50874
|
+
}
|
|
50875
|
+
args = args ? args.slice(0) : [];
|
|
50876
|
+
options = Object.assign({}, options);
|
|
50877
|
+
const parsed = {
|
|
50878
|
+
command,
|
|
50879
|
+
args,
|
|
50880
|
+
options,
|
|
50881
|
+
file: void 0,
|
|
50882
|
+
original: {
|
|
50883
|
+
command,
|
|
50884
|
+
args
|
|
50885
|
+
}
|
|
50886
|
+
};
|
|
50887
|
+
return options.shell ? parsed : parseNonShell(parsed);
|
|
50888
|
+
}
|
|
50889
|
+
module2.exports = parse;
|
|
50890
|
+
}
|
|
50891
|
+
});
|
|
50892
|
+
|
|
50893
|
+
// ../../node_modules/execa/node_modules/cross-spawn/lib/enoent.js
|
|
50894
|
+
var require_enoent2 = __commonJS({
|
|
50895
|
+
"../../node_modules/execa/node_modules/cross-spawn/lib/enoent.js"(exports, module2) {
|
|
50896
|
+
"use strict";
|
|
50897
|
+
var isWin = process.platform === "win32";
|
|
50898
|
+
function notFoundError(original, syscall) {
|
|
50899
|
+
return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
|
|
50900
|
+
code: "ENOENT",
|
|
50901
|
+
errno: "ENOENT",
|
|
50902
|
+
syscall: `${syscall} ${original.command}`,
|
|
50903
|
+
path: original.command,
|
|
50904
|
+
spawnargs: original.args
|
|
50905
|
+
});
|
|
50906
|
+
}
|
|
50907
|
+
function hookChildProcess(cp, parsed) {
|
|
50908
|
+
if (!isWin) {
|
|
50909
|
+
return;
|
|
50910
|
+
}
|
|
50911
|
+
const originalEmit = cp.emit;
|
|
50912
|
+
cp.emit = function(name2, arg1) {
|
|
50913
|
+
if (name2 === "exit") {
|
|
50914
|
+
const err = verifyENOENT(arg1, parsed, "spawn");
|
|
50915
|
+
if (err) {
|
|
50916
|
+
return originalEmit.call(cp, "error", err);
|
|
50917
|
+
}
|
|
50918
|
+
}
|
|
50919
|
+
return originalEmit.apply(cp, arguments);
|
|
50920
|
+
};
|
|
50921
|
+
}
|
|
50922
|
+
function verifyENOENT(status, parsed) {
|
|
50923
|
+
if (isWin && status === 1 && !parsed.file) {
|
|
50924
|
+
return notFoundError(parsed.original, "spawn");
|
|
50925
|
+
}
|
|
50926
|
+
return null;
|
|
50927
|
+
}
|
|
50928
|
+
function verifyENOENTSync(status, parsed) {
|
|
50929
|
+
if (isWin && status === 1 && !parsed.file) {
|
|
50930
|
+
return notFoundError(parsed.original, "spawnSync");
|
|
50931
|
+
}
|
|
50932
|
+
return null;
|
|
50933
|
+
}
|
|
50934
|
+
module2.exports = {
|
|
50935
|
+
hookChildProcess,
|
|
50936
|
+
verifyENOENT,
|
|
50937
|
+
verifyENOENTSync,
|
|
50938
|
+
notFoundError
|
|
50939
|
+
};
|
|
50940
|
+
}
|
|
50941
|
+
});
|
|
50942
|
+
|
|
50943
|
+
// ../../node_modules/execa/node_modules/cross-spawn/index.js
|
|
50944
|
+
var require_cross_spawn = __commonJS({
|
|
50945
|
+
"../../node_modules/execa/node_modules/cross-spawn/index.js"(exports, module2) {
|
|
50946
|
+
"use strict";
|
|
50947
|
+
var cp = require("child_process");
|
|
50948
|
+
var parse = require_parse5();
|
|
50949
|
+
var enoent = require_enoent2();
|
|
50950
|
+
function spawn(command, args, options) {
|
|
50951
|
+
const parsed = parse(command, args, options);
|
|
50952
|
+
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
50953
|
+
enoent.hookChildProcess(spawned, parsed);
|
|
50954
|
+
return spawned;
|
|
50955
|
+
}
|
|
50956
|
+
function spawnSync(command, args, options) {
|
|
50957
|
+
const parsed = parse(command, args, options);
|
|
50958
|
+
const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
50959
|
+
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
50960
|
+
return result;
|
|
50961
|
+
}
|
|
50962
|
+
module2.exports = spawn;
|
|
50963
|
+
module2.exports.spawn = spawn;
|
|
50964
|
+
module2.exports.sync = spawnSync;
|
|
50965
|
+
module2.exports._parse = parse;
|
|
50966
|
+
module2.exports._enoent = enoent;
|
|
50967
|
+
}
|
|
50968
|
+
});
|
|
50969
|
+
|
|
50970
|
+
// ../../node_modules/strip-final-newline/index.js
|
|
50971
|
+
var require_strip_final_newline = __commonJS({
|
|
50972
|
+
"../../node_modules/strip-final-newline/index.js"(exports, module2) {
|
|
50973
|
+
"use strict";
|
|
50974
|
+
module2.exports = (input) => {
|
|
50975
|
+
const LF = typeof input === "string" ? "\n" : "\n".charCodeAt();
|
|
50976
|
+
const CR = typeof input === "string" ? "\r" : "\r".charCodeAt();
|
|
50977
|
+
if (input[input.length - 1] === LF) {
|
|
50978
|
+
input = input.slice(0, input.length - 1);
|
|
50979
|
+
}
|
|
50980
|
+
if (input[input.length - 1] === CR) {
|
|
50981
|
+
input = input.slice(0, input.length - 1);
|
|
50982
|
+
}
|
|
50983
|
+
return input;
|
|
50984
|
+
};
|
|
50985
|
+
}
|
|
50986
|
+
});
|
|
50987
|
+
|
|
50988
|
+
// ../../node_modules/npm-run-path/index.js
|
|
50989
|
+
var require_npm_run_path2 = __commonJS({
|
|
50990
|
+
"../../node_modules/npm-run-path/index.js"(exports, module2) {
|
|
50991
|
+
"use strict";
|
|
50992
|
+
var path4 = require("path");
|
|
50993
|
+
var pathKey = require_path_key2();
|
|
50994
|
+
var npmRunPath = (options) => {
|
|
50995
|
+
options = __spreadValues({
|
|
50996
|
+
cwd: process.cwd(),
|
|
50997
|
+
path: process.env[pathKey()],
|
|
50998
|
+
execPath: process.execPath
|
|
50999
|
+
}, options);
|
|
51000
|
+
let previous;
|
|
51001
|
+
let cwdPath = path4.resolve(options.cwd);
|
|
51002
|
+
const result = [];
|
|
51003
|
+
while (previous !== cwdPath) {
|
|
51004
|
+
result.push(path4.join(cwdPath, "node_modules/.bin"));
|
|
51005
|
+
previous = cwdPath;
|
|
51006
|
+
cwdPath = path4.resolve(cwdPath, "..");
|
|
51007
|
+
}
|
|
51008
|
+
const execPathDir = path4.resolve(options.cwd, options.execPath, "..");
|
|
51009
|
+
result.push(execPathDir);
|
|
51010
|
+
return result.concat(options.path).join(path4.delimiter);
|
|
51011
|
+
};
|
|
51012
|
+
module2.exports = npmRunPath;
|
|
51013
|
+
module2.exports.default = npmRunPath;
|
|
51014
|
+
module2.exports.env = (options) => {
|
|
51015
|
+
options = __spreadValues({
|
|
51016
|
+
env: process.env
|
|
51017
|
+
}, options);
|
|
51018
|
+
const env = __spreadValues({}, options.env);
|
|
51019
|
+
const path5 = pathKey({ env });
|
|
51020
|
+
options.path = env[path5];
|
|
51021
|
+
env[path5] = module2.exports(options);
|
|
51022
|
+
return env;
|
|
51023
|
+
};
|
|
51024
|
+
}
|
|
51025
|
+
});
|
|
51026
|
+
|
|
51027
|
+
// ../../node_modules/human-signals/build/src/core.js
|
|
51028
|
+
var require_core = __commonJS({
|
|
51029
|
+
"../../node_modules/human-signals/build/src/core.js"(exports) {
|
|
51030
|
+
"use strict";
|
|
51031
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51032
|
+
exports.SIGNALS = void 0;
|
|
51033
|
+
var SIGNALS = [
|
|
51034
|
+
{
|
|
51035
|
+
name: "SIGHUP",
|
|
51036
|
+
number: 1,
|
|
51037
|
+
action: "terminate",
|
|
51038
|
+
description: "Terminal closed",
|
|
51039
|
+
standard: "posix"
|
|
51040
|
+
},
|
|
51041
|
+
{
|
|
51042
|
+
name: "SIGINT",
|
|
51043
|
+
number: 2,
|
|
51044
|
+
action: "terminate",
|
|
51045
|
+
description: "User interruption with CTRL-C",
|
|
51046
|
+
standard: "ansi"
|
|
51047
|
+
},
|
|
51048
|
+
{
|
|
51049
|
+
name: "SIGQUIT",
|
|
51050
|
+
number: 3,
|
|
51051
|
+
action: "core",
|
|
51052
|
+
description: "User interruption with CTRL-\\",
|
|
51053
|
+
standard: "posix"
|
|
51054
|
+
},
|
|
51055
|
+
{
|
|
51056
|
+
name: "SIGILL",
|
|
51057
|
+
number: 4,
|
|
51058
|
+
action: "core",
|
|
51059
|
+
description: "Invalid machine instruction",
|
|
51060
|
+
standard: "ansi"
|
|
51061
|
+
},
|
|
51062
|
+
{
|
|
51063
|
+
name: "SIGTRAP",
|
|
51064
|
+
number: 5,
|
|
51065
|
+
action: "core",
|
|
51066
|
+
description: "Debugger breakpoint",
|
|
51067
|
+
standard: "posix"
|
|
51068
|
+
},
|
|
51069
|
+
{
|
|
51070
|
+
name: "SIGABRT",
|
|
51071
|
+
number: 6,
|
|
51072
|
+
action: "core",
|
|
51073
|
+
description: "Aborted",
|
|
51074
|
+
standard: "ansi"
|
|
51075
|
+
},
|
|
51076
|
+
{
|
|
51077
|
+
name: "SIGIOT",
|
|
51078
|
+
number: 6,
|
|
51079
|
+
action: "core",
|
|
51080
|
+
description: "Aborted",
|
|
51081
|
+
standard: "bsd"
|
|
51082
|
+
},
|
|
51083
|
+
{
|
|
51084
|
+
name: "SIGBUS",
|
|
51085
|
+
number: 7,
|
|
51086
|
+
action: "core",
|
|
51087
|
+
description: "Bus error due to misaligned, non-existing address or paging error",
|
|
51088
|
+
standard: "bsd"
|
|
51089
|
+
},
|
|
51090
|
+
{
|
|
51091
|
+
name: "SIGEMT",
|
|
51092
|
+
number: 7,
|
|
51093
|
+
action: "terminate",
|
|
51094
|
+
description: "Command should be emulated but is not implemented",
|
|
51095
|
+
standard: "other"
|
|
51096
|
+
},
|
|
51097
|
+
{
|
|
51098
|
+
name: "SIGFPE",
|
|
51099
|
+
number: 8,
|
|
51100
|
+
action: "core",
|
|
51101
|
+
description: "Floating point arithmetic error",
|
|
51102
|
+
standard: "ansi"
|
|
51103
|
+
},
|
|
51104
|
+
{
|
|
51105
|
+
name: "SIGKILL",
|
|
51106
|
+
number: 9,
|
|
51107
|
+
action: "terminate",
|
|
51108
|
+
description: "Forced termination",
|
|
51109
|
+
standard: "posix",
|
|
51110
|
+
forced: true
|
|
51111
|
+
},
|
|
51112
|
+
{
|
|
51113
|
+
name: "SIGUSR1",
|
|
51114
|
+
number: 10,
|
|
51115
|
+
action: "terminate",
|
|
51116
|
+
description: "Application-specific signal",
|
|
51117
|
+
standard: "posix"
|
|
51118
|
+
},
|
|
51119
|
+
{
|
|
51120
|
+
name: "SIGSEGV",
|
|
51121
|
+
number: 11,
|
|
51122
|
+
action: "core",
|
|
51123
|
+
description: "Segmentation fault",
|
|
51124
|
+
standard: "ansi"
|
|
51125
|
+
},
|
|
51126
|
+
{
|
|
51127
|
+
name: "SIGUSR2",
|
|
51128
|
+
number: 12,
|
|
51129
|
+
action: "terminate",
|
|
51130
|
+
description: "Application-specific signal",
|
|
51131
|
+
standard: "posix"
|
|
51132
|
+
},
|
|
51133
|
+
{
|
|
51134
|
+
name: "SIGPIPE",
|
|
51135
|
+
number: 13,
|
|
51136
|
+
action: "terminate",
|
|
51137
|
+
description: "Broken pipe or socket",
|
|
51138
|
+
standard: "posix"
|
|
51139
|
+
},
|
|
51140
|
+
{
|
|
51141
|
+
name: "SIGALRM",
|
|
51142
|
+
number: 14,
|
|
51143
|
+
action: "terminate",
|
|
51144
|
+
description: "Timeout or timer",
|
|
51145
|
+
standard: "posix"
|
|
51146
|
+
},
|
|
51147
|
+
{
|
|
51148
|
+
name: "SIGTERM",
|
|
51149
|
+
number: 15,
|
|
51150
|
+
action: "terminate",
|
|
51151
|
+
description: "Termination",
|
|
51152
|
+
standard: "ansi"
|
|
51153
|
+
},
|
|
51154
|
+
{
|
|
51155
|
+
name: "SIGSTKFLT",
|
|
51156
|
+
number: 16,
|
|
51157
|
+
action: "terminate",
|
|
51158
|
+
description: "Stack is empty or overflowed",
|
|
51159
|
+
standard: "other"
|
|
51160
|
+
},
|
|
51161
|
+
{
|
|
51162
|
+
name: "SIGCHLD",
|
|
51163
|
+
number: 17,
|
|
51164
|
+
action: "ignore",
|
|
51165
|
+
description: "Child process terminated, paused or unpaused",
|
|
51166
|
+
standard: "posix"
|
|
51167
|
+
},
|
|
51168
|
+
{
|
|
51169
|
+
name: "SIGCLD",
|
|
51170
|
+
number: 17,
|
|
51171
|
+
action: "ignore",
|
|
51172
|
+
description: "Child process terminated, paused or unpaused",
|
|
51173
|
+
standard: "other"
|
|
51174
|
+
},
|
|
51175
|
+
{
|
|
51176
|
+
name: "SIGCONT",
|
|
51177
|
+
number: 18,
|
|
51178
|
+
action: "unpause",
|
|
51179
|
+
description: "Unpaused",
|
|
51180
|
+
standard: "posix",
|
|
51181
|
+
forced: true
|
|
51182
|
+
},
|
|
51183
|
+
{
|
|
51184
|
+
name: "SIGSTOP",
|
|
51185
|
+
number: 19,
|
|
51186
|
+
action: "pause",
|
|
51187
|
+
description: "Paused",
|
|
51188
|
+
standard: "posix",
|
|
51189
|
+
forced: true
|
|
51190
|
+
},
|
|
51191
|
+
{
|
|
51192
|
+
name: "SIGTSTP",
|
|
51193
|
+
number: 20,
|
|
51194
|
+
action: "pause",
|
|
51195
|
+
description: 'Paused using CTRL-Z or "suspend"',
|
|
51196
|
+
standard: "posix"
|
|
51197
|
+
},
|
|
51198
|
+
{
|
|
51199
|
+
name: "SIGTTIN",
|
|
51200
|
+
number: 21,
|
|
51201
|
+
action: "pause",
|
|
51202
|
+
description: "Background process cannot read terminal input",
|
|
51203
|
+
standard: "posix"
|
|
51204
|
+
},
|
|
51205
|
+
{
|
|
51206
|
+
name: "SIGBREAK",
|
|
51207
|
+
number: 21,
|
|
51208
|
+
action: "terminate",
|
|
51209
|
+
description: "User interruption with CTRL-BREAK",
|
|
51210
|
+
standard: "other"
|
|
51211
|
+
},
|
|
51212
|
+
{
|
|
51213
|
+
name: "SIGTTOU",
|
|
51214
|
+
number: 22,
|
|
51215
|
+
action: "pause",
|
|
51216
|
+
description: "Background process cannot write to terminal output",
|
|
51217
|
+
standard: "posix"
|
|
51218
|
+
},
|
|
51219
|
+
{
|
|
51220
|
+
name: "SIGURG",
|
|
51221
|
+
number: 23,
|
|
51222
|
+
action: "ignore",
|
|
51223
|
+
description: "Socket received out-of-band data",
|
|
51224
|
+
standard: "bsd"
|
|
51225
|
+
},
|
|
51226
|
+
{
|
|
51227
|
+
name: "SIGXCPU",
|
|
51228
|
+
number: 24,
|
|
51229
|
+
action: "core",
|
|
51230
|
+
description: "Process timed out",
|
|
51231
|
+
standard: "bsd"
|
|
51232
|
+
},
|
|
51233
|
+
{
|
|
51234
|
+
name: "SIGXFSZ",
|
|
51235
|
+
number: 25,
|
|
51236
|
+
action: "core",
|
|
51237
|
+
description: "File too big",
|
|
51238
|
+
standard: "bsd"
|
|
51239
|
+
},
|
|
51240
|
+
{
|
|
51241
|
+
name: "SIGVTALRM",
|
|
51242
|
+
number: 26,
|
|
51243
|
+
action: "terminate",
|
|
51244
|
+
description: "Timeout or timer",
|
|
51245
|
+
standard: "bsd"
|
|
51246
|
+
},
|
|
51247
|
+
{
|
|
51248
|
+
name: "SIGPROF",
|
|
51249
|
+
number: 27,
|
|
51250
|
+
action: "terminate",
|
|
51251
|
+
description: "Timeout or timer",
|
|
51252
|
+
standard: "bsd"
|
|
51253
|
+
},
|
|
51254
|
+
{
|
|
51255
|
+
name: "SIGWINCH",
|
|
51256
|
+
number: 28,
|
|
51257
|
+
action: "ignore",
|
|
51258
|
+
description: "Terminal window size changed",
|
|
51259
|
+
standard: "bsd"
|
|
51260
|
+
},
|
|
51261
|
+
{
|
|
51262
|
+
name: "SIGIO",
|
|
51263
|
+
number: 29,
|
|
51264
|
+
action: "terminate",
|
|
51265
|
+
description: "I/O is available",
|
|
51266
|
+
standard: "other"
|
|
51267
|
+
},
|
|
51268
|
+
{
|
|
51269
|
+
name: "SIGPOLL",
|
|
51270
|
+
number: 29,
|
|
51271
|
+
action: "terminate",
|
|
51272
|
+
description: "Watched event",
|
|
51273
|
+
standard: "other"
|
|
51274
|
+
},
|
|
51275
|
+
{
|
|
51276
|
+
name: "SIGINFO",
|
|
51277
|
+
number: 29,
|
|
51278
|
+
action: "ignore",
|
|
51279
|
+
description: "Request for process information",
|
|
51280
|
+
standard: "other"
|
|
51281
|
+
},
|
|
51282
|
+
{
|
|
51283
|
+
name: "SIGPWR",
|
|
51284
|
+
number: 30,
|
|
51285
|
+
action: "terminate",
|
|
51286
|
+
description: "Device running out of power",
|
|
51287
|
+
standard: "systemv"
|
|
51288
|
+
},
|
|
51289
|
+
{
|
|
51290
|
+
name: "SIGSYS",
|
|
51291
|
+
number: 31,
|
|
51292
|
+
action: "core",
|
|
51293
|
+
description: "Invalid system call",
|
|
51294
|
+
standard: "other"
|
|
51295
|
+
},
|
|
51296
|
+
{
|
|
51297
|
+
name: "SIGUNUSED",
|
|
51298
|
+
number: 31,
|
|
51299
|
+
action: "terminate",
|
|
51300
|
+
description: "Invalid system call",
|
|
51301
|
+
standard: "other"
|
|
51302
|
+
}
|
|
51303
|
+
];
|
|
51304
|
+
exports.SIGNALS = SIGNALS;
|
|
51305
|
+
}
|
|
51306
|
+
});
|
|
51307
|
+
|
|
51308
|
+
// ../../node_modules/human-signals/build/src/realtime.js
|
|
51309
|
+
var require_realtime = __commonJS({
|
|
51310
|
+
"../../node_modules/human-signals/build/src/realtime.js"(exports) {
|
|
51311
|
+
"use strict";
|
|
51312
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51313
|
+
exports.SIGRTMAX = exports.getRealtimeSignals = void 0;
|
|
51314
|
+
var getRealtimeSignals = function() {
|
|
51315
|
+
const length = SIGRTMAX - SIGRTMIN + 1;
|
|
51316
|
+
return Array.from({ length }, getRealtimeSignal);
|
|
51317
|
+
};
|
|
51318
|
+
exports.getRealtimeSignals = getRealtimeSignals;
|
|
51319
|
+
var getRealtimeSignal = function(value, index) {
|
|
51320
|
+
return {
|
|
51321
|
+
name: `SIGRT${index + 1}`,
|
|
51322
|
+
number: SIGRTMIN + index,
|
|
51323
|
+
action: "terminate",
|
|
51324
|
+
description: "Application-specific signal (realtime)",
|
|
51325
|
+
standard: "posix"
|
|
51326
|
+
};
|
|
51327
|
+
};
|
|
51328
|
+
var SIGRTMIN = 34;
|
|
51329
|
+
var SIGRTMAX = 64;
|
|
51330
|
+
exports.SIGRTMAX = SIGRTMAX;
|
|
51331
|
+
}
|
|
51332
|
+
});
|
|
51333
|
+
|
|
51334
|
+
// ../../node_modules/human-signals/build/src/signals.js
|
|
51335
|
+
var require_signals2 = __commonJS({
|
|
51336
|
+
"../../node_modules/human-signals/build/src/signals.js"(exports) {
|
|
51337
|
+
"use strict";
|
|
51338
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51339
|
+
exports.getSignals = void 0;
|
|
51340
|
+
var _os = require("os");
|
|
51341
|
+
var _core = require_core();
|
|
51342
|
+
var _realtime = require_realtime();
|
|
51343
|
+
var getSignals = function() {
|
|
51344
|
+
const realtimeSignals = (0, _realtime.getRealtimeSignals)();
|
|
51345
|
+
const signals = [..._core.SIGNALS, ...realtimeSignals].map(normalizeSignal);
|
|
51346
|
+
return signals;
|
|
51347
|
+
};
|
|
51348
|
+
exports.getSignals = getSignals;
|
|
51349
|
+
var normalizeSignal = function({
|
|
51350
|
+
name: name2,
|
|
51351
|
+
number: defaultNumber,
|
|
51352
|
+
description: description2,
|
|
51353
|
+
action,
|
|
51354
|
+
forced = false,
|
|
51355
|
+
standard
|
|
51356
|
+
}) {
|
|
51357
|
+
const {
|
|
51358
|
+
signals: { [name2]: constantSignal }
|
|
51359
|
+
} = _os.constants;
|
|
51360
|
+
const supported = constantSignal !== void 0;
|
|
51361
|
+
const number = supported ? constantSignal : defaultNumber;
|
|
51362
|
+
return { name: name2, number, description: description2, supported, action, forced, standard };
|
|
51363
|
+
};
|
|
51364
|
+
}
|
|
51365
|
+
});
|
|
51366
|
+
|
|
51367
|
+
// ../../node_modules/human-signals/build/src/main.js
|
|
51368
|
+
var require_main2 = __commonJS({
|
|
51369
|
+
"../../node_modules/human-signals/build/src/main.js"(exports) {
|
|
51370
|
+
"use strict";
|
|
51371
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51372
|
+
exports.signalsByNumber = exports.signalsByName = void 0;
|
|
51373
|
+
var _os = require("os");
|
|
51374
|
+
var _signals = require_signals2();
|
|
51375
|
+
var _realtime = require_realtime();
|
|
51376
|
+
var getSignalsByName = function() {
|
|
51377
|
+
const signals = (0, _signals.getSignals)();
|
|
51378
|
+
return signals.reduce(getSignalByName, {});
|
|
51379
|
+
};
|
|
51380
|
+
var getSignalByName = function(signalByNameMemo, { name: name2, number, description: description2, supported, action, forced, standard }) {
|
|
51381
|
+
return __spreadProps(__spreadValues({}, signalByNameMemo), {
|
|
51382
|
+
[name2]: { name: name2, number, description: description2, supported, action, forced, standard }
|
|
51383
|
+
});
|
|
51384
|
+
};
|
|
51385
|
+
var signalsByName = getSignalsByName();
|
|
51386
|
+
exports.signalsByName = signalsByName;
|
|
51387
|
+
var getSignalsByNumber = function() {
|
|
51388
|
+
const signals = (0, _signals.getSignals)();
|
|
51389
|
+
const length = _realtime.SIGRTMAX + 1;
|
|
51390
|
+
const signalsA = Array.from({ length }, (value, number) => getSignalByNumber(number, signals));
|
|
51391
|
+
return Object.assign({}, ...signalsA);
|
|
51392
|
+
};
|
|
51393
|
+
var getSignalByNumber = function(number, signals) {
|
|
51394
|
+
const signal = findSignalByNumber(number, signals);
|
|
51395
|
+
if (signal === void 0) {
|
|
51396
|
+
return {};
|
|
51397
|
+
}
|
|
51398
|
+
const { name: name2, description: description2, supported, action, forced, standard } = signal;
|
|
51399
|
+
return {
|
|
51400
|
+
[number]: {
|
|
51401
|
+
name: name2,
|
|
51402
|
+
number,
|
|
51403
|
+
description: description2,
|
|
51404
|
+
supported,
|
|
51405
|
+
action,
|
|
51406
|
+
forced,
|
|
51407
|
+
standard
|
|
51408
|
+
}
|
|
51409
|
+
};
|
|
51410
|
+
};
|
|
51411
|
+
var findSignalByNumber = function(number, signals) {
|
|
51412
|
+
const signal = signals.find(({ name: name2 }) => _os.constants.signals[name2] === number);
|
|
51413
|
+
if (signal !== void 0) {
|
|
51414
|
+
return signal;
|
|
51415
|
+
}
|
|
51416
|
+
return signals.find((signalA) => signalA.number === number);
|
|
51417
|
+
};
|
|
51418
|
+
var signalsByNumber = getSignalsByNumber();
|
|
51419
|
+
exports.signalsByNumber = signalsByNumber;
|
|
51420
|
+
}
|
|
51421
|
+
});
|
|
51422
|
+
|
|
51423
|
+
// ../../node_modules/execa/lib/error.js
|
|
51424
|
+
var require_error2 = __commonJS({
|
|
51425
|
+
"../../node_modules/execa/lib/error.js"(exports, module2) {
|
|
51426
|
+
"use strict";
|
|
51427
|
+
var { signalsByName } = require_main2();
|
|
51428
|
+
var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => {
|
|
51429
|
+
if (timedOut) {
|
|
51430
|
+
return `timed out after ${timeout} milliseconds`;
|
|
51431
|
+
}
|
|
51432
|
+
if (isCanceled) {
|
|
51433
|
+
return "was canceled";
|
|
51434
|
+
}
|
|
51435
|
+
if (errorCode !== void 0) {
|
|
51436
|
+
return `failed with ${errorCode}`;
|
|
51437
|
+
}
|
|
51438
|
+
if (signal !== void 0) {
|
|
51439
|
+
return `was killed with ${signal} (${signalDescription})`;
|
|
51440
|
+
}
|
|
51441
|
+
if (exitCode !== void 0) {
|
|
51442
|
+
return `failed with exit code ${exitCode}`;
|
|
51443
|
+
}
|
|
51444
|
+
return "failed";
|
|
51445
|
+
};
|
|
51446
|
+
var makeError = ({
|
|
51447
|
+
stdout,
|
|
51448
|
+
stderr,
|
|
51449
|
+
all,
|
|
51450
|
+
error,
|
|
51451
|
+
signal,
|
|
51452
|
+
exitCode,
|
|
51453
|
+
command,
|
|
51454
|
+
escapedCommand,
|
|
51455
|
+
timedOut,
|
|
51456
|
+
isCanceled,
|
|
51457
|
+
killed,
|
|
51458
|
+
parsed: { options: { timeout } }
|
|
51459
|
+
}) => {
|
|
51460
|
+
exitCode = exitCode === null ? void 0 : exitCode;
|
|
51461
|
+
signal = signal === null ? void 0 : signal;
|
|
51462
|
+
const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description;
|
|
51463
|
+
const errorCode = error && error.code;
|
|
51464
|
+
const prefix = getErrorPrefix({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled });
|
|
51465
|
+
const execaMessage = `Command ${prefix}: ${command}`;
|
|
51466
|
+
const isError = Object.prototype.toString.call(error) === "[object Error]";
|
|
51467
|
+
const shortMessage = isError ? `${execaMessage}
|
|
51468
|
+
${error.message}` : execaMessage;
|
|
51469
|
+
const message = [shortMessage, stderr, stdout].filter(Boolean).join("\n");
|
|
51470
|
+
if (isError) {
|
|
51471
|
+
error.originalMessage = error.message;
|
|
51472
|
+
error.message = message;
|
|
51473
|
+
} else {
|
|
51474
|
+
error = new Error(message);
|
|
51475
|
+
}
|
|
51476
|
+
error.shortMessage = shortMessage;
|
|
51477
|
+
error.command = command;
|
|
51478
|
+
error.escapedCommand = escapedCommand;
|
|
51479
|
+
error.exitCode = exitCode;
|
|
51480
|
+
error.signal = signal;
|
|
51481
|
+
error.signalDescription = signalDescription;
|
|
51482
|
+
error.stdout = stdout;
|
|
51483
|
+
error.stderr = stderr;
|
|
51484
|
+
if (all !== void 0) {
|
|
51485
|
+
error.all = all;
|
|
51486
|
+
}
|
|
51487
|
+
if ("bufferedData" in error) {
|
|
51488
|
+
delete error.bufferedData;
|
|
51489
|
+
}
|
|
51490
|
+
error.failed = true;
|
|
51491
|
+
error.timedOut = Boolean(timedOut);
|
|
51492
|
+
error.isCanceled = isCanceled;
|
|
51493
|
+
error.killed = killed && !timedOut;
|
|
51494
|
+
return error;
|
|
51495
|
+
};
|
|
51496
|
+
module2.exports = makeError;
|
|
51497
|
+
}
|
|
51498
|
+
});
|
|
51499
|
+
|
|
51500
|
+
// ../../node_modules/execa/lib/stdio.js
|
|
51501
|
+
var require_stdio = __commonJS({
|
|
51502
|
+
"../../node_modules/execa/lib/stdio.js"(exports, module2) {
|
|
51503
|
+
"use strict";
|
|
51504
|
+
var aliases = ["stdin", "stdout", "stderr"];
|
|
51505
|
+
var hasAlias = (options) => aliases.some((alias) => options[alias] !== void 0);
|
|
51506
|
+
var normalizeStdio = (options) => {
|
|
51507
|
+
if (!options) {
|
|
51508
|
+
return;
|
|
51509
|
+
}
|
|
51510
|
+
const { stdio } = options;
|
|
51511
|
+
if (stdio === void 0) {
|
|
51512
|
+
return aliases.map((alias) => options[alias]);
|
|
51513
|
+
}
|
|
51514
|
+
if (hasAlias(options)) {
|
|
51515
|
+
throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`);
|
|
51516
|
+
}
|
|
51517
|
+
if (typeof stdio === "string") {
|
|
51518
|
+
return stdio;
|
|
51519
|
+
}
|
|
51520
|
+
if (!Array.isArray(stdio)) {
|
|
51521
|
+
throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
|
|
51522
|
+
}
|
|
51523
|
+
const length = Math.max(stdio.length, aliases.length);
|
|
51524
|
+
return Array.from({ length }, (value, index) => stdio[index]);
|
|
51525
|
+
};
|
|
51526
|
+
module2.exports = normalizeStdio;
|
|
51527
|
+
module2.exports.node = (options) => {
|
|
51528
|
+
const stdio = normalizeStdio(options);
|
|
51529
|
+
if (stdio === "ipc") {
|
|
51530
|
+
return "ipc";
|
|
51531
|
+
}
|
|
51532
|
+
if (stdio === void 0 || typeof stdio === "string") {
|
|
51533
|
+
return [stdio, stdio, stdio, "ipc"];
|
|
51534
|
+
}
|
|
51535
|
+
if (stdio.includes("ipc")) {
|
|
51536
|
+
return stdio;
|
|
51537
|
+
}
|
|
51538
|
+
return [...stdio, "ipc"];
|
|
51539
|
+
};
|
|
51540
|
+
}
|
|
51541
|
+
});
|
|
51542
|
+
|
|
51543
|
+
// ../../node_modules/execa/lib/kill.js
|
|
51544
|
+
var require_kill = __commonJS({
|
|
51545
|
+
"../../node_modules/execa/lib/kill.js"(exports, module2) {
|
|
51546
|
+
"use strict";
|
|
51547
|
+
var os = require("os");
|
|
51548
|
+
var onExit = require_signal_exit();
|
|
51549
|
+
var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
|
|
51550
|
+
var spawnedKill = (kill, signal = "SIGTERM", options = {}) => {
|
|
51551
|
+
const killResult = kill(signal);
|
|
51552
|
+
setKillTimeout(kill, signal, options, killResult);
|
|
51553
|
+
return killResult;
|
|
51554
|
+
};
|
|
51555
|
+
var setKillTimeout = (kill, signal, options, killResult) => {
|
|
51556
|
+
if (!shouldForceKill(signal, options, killResult)) {
|
|
51557
|
+
return;
|
|
51558
|
+
}
|
|
51559
|
+
const timeout = getForceKillAfterTimeout(options);
|
|
51560
|
+
const t = setTimeout(() => {
|
|
51561
|
+
kill("SIGKILL");
|
|
51562
|
+
}, timeout);
|
|
51563
|
+
if (t.unref) {
|
|
51564
|
+
t.unref();
|
|
51565
|
+
}
|
|
51566
|
+
};
|
|
51567
|
+
var shouldForceKill = (signal, { forceKillAfterTimeout }, killResult) => {
|
|
51568
|
+
return isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
|
|
51569
|
+
};
|
|
51570
|
+
var isSigterm = (signal) => {
|
|
51571
|
+
return signal === os.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
|
|
51572
|
+
};
|
|
51573
|
+
var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => {
|
|
51574
|
+
if (forceKillAfterTimeout === true) {
|
|
51575
|
+
return DEFAULT_FORCE_KILL_TIMEOUT;
|
|
51576
|
+
}
|
|
51577
|
+
if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {
|
|
51578
|
+
throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);
|
|
51579
|
+
}
|
|
51580
|
+
return forceKillAfterTimeout;
|
|
51581
|
+
};
|
|
51582
|
+
var spawnedCancel = (spawned, context) => {
|
|
51583
|
+
const killResult = spawned.kill();
|
|
51584
|
+
if (killResult) {
|
|
51585
|
+
context.isCanceled = true;
|
|
51586
|
+
}
|
|
51587
|
+
};
|
|
51588
|
+
var timeoutKill = (spawned, signal, reject) => {
|
|
51589
|
+
spawned.kill(signal);
|
|
51590
|
+
reject(Object.assign(new Error("Timed out"), { timedOut: true, signal }));
|
|
51591
|
+
};
|
|
51592
|
+
var setupTimeout = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => {
|
|
51593
|
+
if (timeout === 0 || timeout === void 0) {
|
|
51594
|
+
return spawnedPromise;
|
|
51595
|
+
}
|
|
51596
|
+
let timeoutId;
|
|
51597
|
+
const timeoutPromise = new Promise((resolve, reject) => {
|
|
51598
|
+
timeoutId = setTimeout(() => {
|
|
51599
|
+
timeoutKill(spawned, killSignal, reject);
|
|
51600
|
+
}, timeout);
|
|
51601
|
+
});
|
|
51602
|
+
const safeSpawnedPromise = spawnedPromise.finally(() => {
|
|
51603
|
+
clearTimeout(timeoutId);
|
|
51604
|
+
});
|
|
51605
|
+
return Promise.race([timeoutPromise, safeSpawnedPromise]);
|
|
51606
|
+
};
|
|
51607
|
+
var validateTimeout = ({ timeout }) => {
|
|
51608
|
+
if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) {
|
|
51609
|
+
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
|
|
51610
|
+
}
|
|
51611
|
+
};
|
|
51612
|
+
var setExitHandler = async (spawned, { cleanup, detached }, timedPromise) => {
|
|
51613
|
+
if (!cleanup || detached) {
|
|
51614
|
+
return timedPromise;
|
|
51615
|
+
}
|
|
51616
|
+
const removeExitHandler = onExit(() => {
|
|
51617
|
+
spawned.kill();
|
|
51618
|
+
});
|
|
51619
|
+
return timedPromise.finally(() => {
|
|
51620
|
+
removeExitHandler();
|
|
51621
|
+
});
|
|
51622
|
+
};
|
|
51623
|
+
module2.exports = {
|
|
51624
|
+
spawnedKill,
|
|
51625
|
+
spawnedCancel,
|
|
51626
|
+
setupTimeout,
|
|
51627
|
+
validateTimeout,
|
|
51628
|
+
setExitHandler
|
|
51629
|
+
};
|
|
51630
|
+
}
|
|
51631
|
+
});
|
|
51632
|
+
|
|
51633
|
+
// ../../node_modules/execa/node_modules/is-stream/index.js
|
|
51634
|
+
var require_is_stream2 = __commonJS({
|
|
51635
|
+
"../../node_modules/execa/node_modules/is-stream/index.js"(exports, module2) {
|
|
51636
|
+
"use strict";
|
|
51637
|
+
var isStream = (stream) => stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
|
|
51638
|
+
isStream.writable = (stream) => isStream(stream) && stream.writable !== false && typeof stream._write === "function" && typeof stream._writableState === "object";
|
|
51639
|
+
isStream.readable = (stream) => isStream(stream) && stream.readable !== false && typeof stream._read === "function" && typeof stream._readableState === "object";
|
|
51640
|
+
isStream.duplex = (stream) => isStream.writable(stream) && isStream.readable(stream);
|
|
51641
|
+
isStream.transform = (stream) => isStream.duplex(stream) && typeof stream._transform === "function" && typeof stream._transformState === "object";
|
|
51642
|
+
module2.exports = isStream;
|
|
51643
|
+
}
|
|
51644
|
+
});
|
|
51645
|
+
|
|
51646
|
+
// ../../node_modules/execa/node_modules/get-stream/buffer-stream.js
|
|
51647
|
+
var require_buffer_stream = __commonJS({
|
|
51648
|
+
"../../node_modules/execa/node_modules/get-stream/buffer-stream.js"(exports, module2) {
|
|
51649
|
+
"use strict";
|
|
51650
|
+
var { PassThrough: PassThroughStream } = require("stream");
|
|
51651
|
+
module2.exports = (options) => {
|
|
51652
|
+
options = __spreadValues({}, options);
|
|
51653
|
+
const { array } = options;
|
|
51654
|
+
let { encoding } = options;
|
|
51655
|
+
const isBuffer = encoding === "buffer";
|
|
51656
|
+
let objectMode = false;
|
|
51657
|
+
if (array) {
|
|
51658
|
+
objectMode = !(encoding || isBuffer);
|
|
51659
|
+
} else {
|
|
51660
|
+
encoding = encoding || "utf8";
|
|
51661
|
+
}
|
|
51662
|
+
if (isBuffer) {
|
|
51663
|
+
encoding = null;
|
|
51664
|
+
}
|
|
51665
|
+
const stream = new PassThroughStream({ objectMode });
|
|
51666
|
+
if (encoding) {
|
|
51667
|
+
stream.setEncoding(encoding);
|
|
51668
|
+
}
|
|
51669
|
+
let length = 0;
|
|
51670
|
+
const chunks = [];
|
|
51671
|
+
stream.on("data", (chunk) => {
|
|
51672
|
+
chunks.push(chunk);
|
|
51673
|
+
if (objectMode) {
|
|
51674
|
+
length = chunks.length;
|
|
51675
|
+
} else {
|
|
51676
|
+
length += chunk.length;
|
|
51677
|
+
}
|
|
51678
|
+
});
|
|
51679
|
+
stream.getBufferedValue = () => {
|
|
51680
|
+
if (array) {
|
|
51681
|
+
return chunks;
|
|
51682
|
+
}
|
|
51683
|
+
return isBuffer ? Buffer.concat(chunks, length) : chunks.join("");
|
|
51684
|
+
};
|
|
51685
|
+
stream.getBufferedLength = () => length;
|
|
51686
|
+
return stream;
|
|
51687
|
+
};
|
|
51688
|
+
}
|
|
51689
|
+
});
|
|
51690
|
+
|
|
51691
|
+
// ../../node_modules/execa/node_modules/get-stream/index.js
|
|
51692
|
+
var require_get_stream = __commonJS({
|
|
51693
|
+
"../../node_modules/execa/node_modules/get-stream/index.js"(exports, module2) {
|
|
51694
|
+
"use strict";
|
|
51695
|
+
var { constants: BufferConstants } = require("buffer");
|
|
51696
|
+
var stream = require("stream");
|
|
51697
|
+
var { promisify } = require("util");
|
|
51698
|
+
var bufferStream = require_buffer_stream();
|
|
51699
|
+
var streamPipelinePromisified = promisify(stream.pipeline);
|
|
51700
|
+
var MaxBufferError = class extends Error {
|
|
51701
|
+
constructor() {
|
|
51702
|
+
super("maxBuffer exceeded");
|
|
51703
|
+
this.name = "MaxBufferError";
|
|
51704
|
+
}
|
|
51705
|
+
};
|
|
51706
|
+
async function getStream(inputStream, options) {
|
|
51707
|
+
if (!inputStream) {
|
|
51708
|
+
throw new Error("Expected a stream");
|
|
51709
|
+
}
|
|
51710
|
+
options = __spreadValues({
|
|
51711
|
+
maxBuffer: Infinity
|
|
51712
|
+
}, options);
|
|
51713
|
+
const { maxBuffer } = options;
|
|
51714
|
+
const stream2 = bufferStream(options);
|
|
51715
|
+
await new Promise((resolve, reject) => {
|
|
51716
|
+
const rejectPromise = (error) => {
|
|
51717
|
+
if (error && stream2.getBufferedLength() <= BufferConstants.MAX_LENGTH) {
|
|
51718
|
+
error.bufferedData = stream2.getBufferedValue();
|
|
51719
|
+
}
|
|
51720
|
+
reject(error);
|
|
51721
|
+
};
|
|
51722
|
+
(async () => {
|
|
51723
|
+
try {
|
|
51724
|
+
await streamPipelinePromisified(inputStream, stream2);
|
|
51725
|
+
resolve();
|
|
51726
|
+
} catch (error) {
|
|
51727
|
+
rejectPromise(error);
|
|
51728
|
+
}
|
|
51729
|
+
})();
|
|
51730
|
+
stream2.on("data", () => {
|
|
51731
|
+
if (stream2.getBufferedLength() > maxBuffer) {
|
|
51732
|
+
rejectPromise(new MaxBufferError());
|
|
51733
|
+
}
|
|
51734
|
+
});
|
|
51735
|
+
});
|
|
51736
|
+
return stream2.getBufferedValue();
|
|
51737
|
+
}
|
|
51738
|
+
module2.exports = getStream;
|
|
51739
|
+
module2.exports.buffer = (stream2, options) => getStream(stream2, __spreadProps(__spreadValues({}, options), { encoding: "buffer" }));
|
|
51740
|
+
module2.exports.array = (stream2, options) => getStream(stream2, __spreadProps(__spreadValues({}, options), { array: true }));
|
|
51741
|
+
module2.exports.MaxBufferError = MaxBufferError;
|
|
51742
|
+
}
|
|
51743
|
+
});
|
|
51744
|
+
|
|
51745
|
+
// ../../node_modules/merge-stream/index.js
|
|
51746
|
+
var require_merge_stream = __commonJS({
|
|
51747
|
+
"../../node_modules/merge-stream/index.js"(exports, module2) {
|
|
51748
|
+
"use strict";
|
|
51749
|
+
var { PassThrough } = require("stream");
|
|
51750
|
+
module2.exports = function() {
|
|
51751
|
+
var sources = [];
|
|
51752
|
+
var output = new PassThrough({ objectMode: true });
|
|
51753
|
+
output.setMaxListeners(0);
|
|
51754
|
+
output.add = add;
|
|
51755
|
+
output.isEmpty = isEmpty;
|
|
51756
|
+
output.on("unpipe", remove);
|
|
51757
|
+
Array.prototype.slice.call(arguments).forEach(add);
|
|
51758
|
+
return output;
|
|
51759
|
+
function add(source) {
|
|
51760
|
+
if (Array.isArray(source)) {
|
|
51761
|
+
source.forEach(add);
|
|
51762
|
+
return this;
|
|
51763
|
+
}
|
|
51764
|
+
sources.push(source);
|
|
51765
|
+
source.once("end", remove.bind(null, source));
|
|
51766
|
+
source.once("error", output.emit.bind(output, "error"));
|
|
51767
|
+
source.pipe(output, { end: false });
|
|
51768
|
+
return this;
|
|
51769
|
+
}
|
|
51770
|
+
function isEmpty() {
|
|
51771
|
+
return sources.length == 0;
|
|
51772
|
+
}
|
|
51773
|
+
function remove(source) {
|
|
51774
|
+
sources = sources.filter(function(it) {
|
|
51775
|
+
return it !== source;
|
|
51776
|
+
});
|
|
51777
|
+
if (!sources.length && output.readable) {
|
|
51778
|
+
output.end();
|
|
51779
|
+
}
|
|
51780
|
+
}
|
|
51781
|
+
};
|
|
51782
|
+
}
|
|
51783
|
+
});
|
|
51784
|
+
|
|
51785
|
+
// ../../node_modules/execa/lib/stream.js
|
|
51786
|
+
var require_stream6 = __commonJS({
|
|
51787
|
+
"../../node_modules/execa/lib/stream.js"(exports, module2) {
|
|
51788
|
+
"use strict";
|
|
51789
|
+
var isStream = require_is_stream2();
|
|
51790
|
+
var getStream = require_get_stream();
|
|
51791
|
+
var mergeStream = require_merge_stream();
|
|
51792
|
+
var handleInput = (spawned, input) => {
|
|
51793
|
+
if (input === void 0 || spawned.stdin === void 0) {
|
|
51794
|
+
return;
|
|
51795
|
+
}
|
|
51796
|
+
if (isStream(input)) {
|
|
51797
|
+
input.pipe(spawned.stdin);
|
|
51798
|
+
} else {
|
|
51799
|
+
spawned.stdin.end(input);
|
|
51800
|
+
}
|
|
51801
|
+
};
|
|
51802
|
+
var makeAllStream = (spawned, { all }) => {
|
|
51803
|
+
if (!all || !spawned.stdout && !spawned.stderr) {
|
|
51804
|
+
return;
|
|
51805
|
+
}
|
|
51806
|
+
const mixed = mergeStream();
|
|
51807
|
+
if (spawned.stdout) {
|
|
51808
|
+
mixed.add(spawned.stdout);
|
|
51809
|
+
}
|
|
51810
|
+
if (spawned.stderr) {
|
|
51811
|
+
mixed.add(spawned.stderr);
|
|
51812
|
+
}
|
|
51813
|
+
return mixed;
|
|
51814
|
+
};
|
|
51815
|
+
var getBufferedData = async (stream, streamPromise) => {
|
|
51816
|
+
if (!stream) {
|
|
51817
|
+
return;
|
|
51818
|
+
}
|
|
51819
|
+
stream.destroy();
|
|
51820
|
+
try {
|
|
51821
|
+
return await streamPromise;
|
|
51822
|
+
} catch (error) {
|
|
51823
|
+
return error.bufferedData;
|
|
51824
|
+
}
|
|
51825
|
+
};
|
|
51826
|
+
var getStreamPromise = (stream, { encoding, buffer, maxBuffer }) => {
|
|
51827
|
+
if (!stream || !buffer) {
|
|
51828
|
+
return;
|
|
51829
|
+
}
|
|
51830
|
+
if (encoding) {
|
|
51831
|
+
return getStream(stream, { encoding, maxBuffer });
|
|
51832
|
+
}
|
|
51833
|
+
return getStream.buffer(stream, { maxBuffer });
|
|
51834
|
+
};
|
|
51835
|
+
var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => {
|
|
51836
|
+
const stdoutPromise = getStreamPromise(stdout, { encoding, buffer, maxBuffer });
|
|
51837
|
+
const stderrPromise = getStreamPromise(stderr, { encoding, buffer, maxBuffer });
|
|
51838
|
+
const allPromise = getStreamPromise(all, { encoding, buffer, maxBuffer: maxBuffer * 2 });
|
|
51839
|
+
try {
|
|
51840
|
+
return await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);
|
|
51841
|
+
} catch (error) {
|
|
51842
|
+
return Promise.all([
|
|
51843
|
+
{ error, signal: error.signal, timedOut: error.timedOut },
|
|
51844
|
+
getBufferedData(stdout, stdoutPromise),
|
|
51845
|
+
getBufferedData(stderr, stderrPromise),
|
|
51846
|
+
getBufferedData(all, allPromise)
|
|
51847
|
+
]);
|
|
51848
|
+
}
|
|
51849
|
+
};
|
|
51850
|
+
var validateInputSync = ({ input }) => {
|
|
51851
|
+
if (isStream(input)) {
|
|
51852
|
+
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
51853
|
+
}
|
|
51854
|
+
};
|
|
51855
|
+
module2.exports = {
|
|
51856
|
+
handleInput,
|
|
51857
|
+
makeAllStream,
|
|
51858
|
+
getSpawnedResult,
|
|
51859
|
+
validateInputSync
|
|
51860
|
+
};
|
|
51861
|
+
}
|
|
51862
|
+
});
|
|
51863
|
+
|
|
51864
|
+
// ../../node_modules/execa/lib/promise.js
|
|
51865
|
+
var require_promise = __commonJS({
|
|
51866
|
+
"../../node_modules/execa/lib/promise.js"(exports, module2) {
|
|
51867
|
+
"use strict";
|
|
51868
|
+
var nativePromisePrototype = (async () => {
|
|
51869
|
+
})().constructor.prototype;
|
|
51870
|
+
var descriptors = ["then", "catch", "finally"].map((property) => [
|
|
51871
|
+
property,
|
|
51872
|
+
Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)
|
|
51873
|
+
]);
|
|
51874
|
+
var mergePromise = (spawned, promise) => {
|
|
51875
|
+
for (const [property, descriptor] of descriptors) {
|
|
51876
|
+
const value = typeof promise === "function" ? (...args) => Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);
|
|
51877
|
+
Reflect.defineProperty(spawned, property, __spreadProps(__spreadValues({}, descriptor), { value }));
|
|
51878
|
+
}
|
|
51879
|
+
return spawned;
|
|
51880
|
+
};
|
|
51881
|
+
var getSpawnedPromise = (spawned) => {
|
|
51882
|
+
return new Promise((resolve, reject) => {
|
|
51883
|
+
spawned.on("exit", (exitCode, signal) => {
|
|
51884
|
+
resolve({ exitCode, signal });
|
|
51885
|
+
});
|
|
51886
|
+
spawned.on("error", (error) => {
|
|
51887
|
+
reject(error);
|
|
51888
|
+
});
|
|
51889
|
+
if (spawned.stdin) {
|
|
51890
|
+
spawned.stdin.on("error", (error) => {
|
|
51891
|
+
reject(error);
|
|
51892
|
+
});
|
|
51893
|
+
}
|
|
51894
|
+
});
|
|
51895
|
+
};
|
|
51896
|
+
module2.exports = {
|
|
51897
|
+
mergePromise,
|
|
51898
|
+
getSpawnedPromise
|
|
51899
|
+
};
|
|
51900
|
+
}
|
|
51901
|
+
});
|
|
51902
|
+
|
|
51903
|
+
// ../../node_modules/execa/lib/command.js
|
|
51904
|
+
var require_command = __commonJS({
|
|
51905
|
+
"../../node_modules/execa/lib/command.js"(exports, module2) {
|
|
51906
|
+
"use strict";
|
|
51907
|
+
var normalizeArgs = (file, args = []) => {
|
|
51908
|
+
if (!Array.isArray(args)) {
|
|
51909
|
+
return [file];
|
|
51910
|
+
}
|
|
51911
|
+
return [file, ...args];
|
|
51912
|
+
};
|
|
51913
|
+
var NO_ESCAPE_REGEXP = /^[\w.-]+$/;
|
|
51914
|
+
var DOUBLE_QUOTES_REGEXP = /"/g;
|
|
51915
|
+
var escapeArg = (arg) => {
|
|
51916
|
+
if (typeof arg !== "string" || NO_ESCAPE_REGEXP.test(arg)) {
|
|
51917
|
+
return arg;
|
|
51918
|
+
}
|
|
51919
|
+
return `"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\"')}"`;
|
|
51920
|
+
};
|
|
51921
|
+
var joinCommand = (file, args) => {
|
|
51922
|
+
return normalizeArgs(file, args).join(" ");
|
|
51923
|
+
};
|
|
51924
|
+
var getEscapedCommand = (file, args) => {
|
|
51925
|
+
return normalizeArgs(file, args).map((arg) => escapeArg(arg)).join(" ");
|
|
51926
|
+
};
|
|
51927
|
+
var SPACES_REGEXP = / +/g;
|
|
51928
|
+
var parseCommand = (command) => {
|
|
51929
|
+
const tokens = [];
|
|
51930
|
+
for (const token of command.trim().split(SPACES_REGEXP)) {
|
|
51931
|
+
const previousToken = tokens[tokens.length - 1];
|
|
51932
|
+
if (previousToken && previousToken.endsWith("\\")) {
|
|
51933
|
+
tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;
|
|
51934
|
+
} else {
|
|
51935
|
+
tokens.push(token);
|
|
51936
|
+
}
|
|
51937
|
+
}
|
|
51938
|
+
return tokens;
|
|
51939
|
+
};
|
|
51940
|
+
module2.exports = {
|
|
51941
|
+
joinCommand,
|
|
51942
|
+
getEscapedCommand,
|
|
51943
|
+
parseCommand
|
|
51944
|
+
};
|
|
51945
|
+
}
|
|
51946
|
+
});
|
|
51947
|
+
|
|
51948
|
+
// ../../node_modules/execa/index.js
|
|
51949
|
+
var require_execa2 = __commonJS({
|
|
51950
|
+
"../../node_modules/execa/index.js"(exports, module2) {
|
|
51951
|
+
"use strict";
|
|
51952
|
+
var path4 = require("path");
|
|
51953
|
+
var childProcess = require("child_process");
|
|
51954
|
+
var crossSpawn = require_cross_spawn();
|
|
51955
|
+
var stripFinalNewline = require_strip_final_newline();
|
|
51956
|
+
var npmRunPath = require_npm_run_path2();
|
|
51957
|
+
var onetime = require_onetime();
|
|
51958
|
+
var makeError = require_error2();
|
|
51959
|
+
var normalizeStdio = require_stdio();
|
|
51960
|
+
var { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler } = require_kill();
|
|
51961
|
+
var { handleInput, getSpawnedResult, makeAllStream, validateInputSync } = require_stream6();
|
|
51962
|
+
var { mergePromise, getSpawnedPromise } = require_promise();
|
|
51963
|
+
var { joinCommand, parseCommand, getEscapedCommand } = require_command();
|
|
51964
|
+
var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
|
|
51965
|
+
var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
|
|
51966
|
+
const env = extendEnv ? __spreadValues(__spreadValues({}, process.env), envOption) : envOption;
|
|
51967
|
+
if (preferLocal) {
|
|
51968
|
+
return npmRunPath.env({ env, cwd: localDir, execPath });
|
|
51969
|
+
}
|
|
51970
|
+
return env;
|
|
51971
|
+
};
|
|
51972
|
+
var handleArguments = (file, args, options = {}) => {
|
|
51973
|
+
const parsed = crossSpawn._parse(file, args, options);
|
|
51974
|
+
file = parsed.command;
|
|
51975
|
+
args = parsed.args;
|
|
51976
|
+
options = parsed.options;
|
|
51977
|
+
options = __spreadValues({
|
|
51978
|
+
maxBuffer: DEFAULT_MAX_BUFFER,
|
|
51979
|
+
buffer: true,
|
|
51980
|
+
stripFinalNewline: true,
|
|
51981
|
+
extendEnv: true,
|
|
51982
|
+
preferLocal: false,
|
|
51983
|
+
localDir: options.cwd || process.cwd(),
|
|
51984
|
+
execPath: process.execPath,
|
|
51985
|
+
encoding: "utf8",
|
|
51986
|
+
reject: true,
|
|
51987
|
+
cleanup: true,
|
|
51988
|
+
all: false,
|
|
51989
|
+
windowsHide: true
|
|
51990
|
+
}, options);
|
|
51991
|
+
options.env = getEnv(options);
|
|
51992
|
+
options.stdio = normalizeStdio(options);
|
|
51993
|
+
if (process.platform === "win32" && path4.basename(file, ".exe") === "cmd") {
|
|
51994
|
+
args.unshift("/q");
|
|
51995
|
+
}
|
|
51996
|
+
return { file, args, options, parsed };
|
|
51997
|
+
};
|
|
51998
|
+
var handleOutput = (options, value, error) => {
|
|
51999
|
+
if (typeof value !== "string" && !Buffer.isBuffer(value)) {
|
|
52000
|
+
return error === void 0 ? void 0 : "";
|
|
52001
|
+
}
|
|
52002
|
+
if (options.stripFinalNewline) {
|
|
52003
|
+
return stripFinalNewline(value);
|
|
52004
|
+
}
|
|
52005
|
+
return value;
|
|
52006
|
+
};
|
|
52007
|
+
var execa2 = (file, args, options) => {
|
|
52008
|
+
const parsed = handleArguments(file, args, options);
|
|
52009
|
+
const command = joinCommand(file, args);
|
|
52010
|
+
const escapedCommand = getEscapedCommand(file, args);
|
|
52011
|
+
validateTimeout(parsed.options);
|
|
52012
|
+
let spawned;
|
|
52013
|
+
try {
|
|
52014
|
+
spawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);
|
|
52015
|
+
} catch (error) {
|
|
52016
|
+
const dummySpawned = new childProcess.ChildProcess();
|
|
52017
|
+
const errorPromise = Promise.reject(makeError({
|
|
52018
|
+
error,
|
|
52019
|
+
stdout: "",
|
|
52020
|
+
stderr: "",
|
|
52021
|
+
all: "",
|
|
52022
|
+
command,
|
|
52023
|
+
escapedCommand,
|
|
52024
|
+
parsed,
|
|
52025
|
+
timedOut: false,
|
|
52026
|
+
isCanceled: false,
|
|
52027
|
+
killed: false
|
|
52028
|
+
}));
|
|
52029
|
+
return mergePromise(dummySpawned, errorPromise);
|
|
52030
|
+
}
|
|
52031
|
+
const spawnedPromise = getSpawnedPromise(spawned);
|
|
52032
|
+
const timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);
|
|
52033
|
+
const processDone = setExitHandler(spawned, parsed.options, timedPromise);
|
|
52034
|
+
const context = { isCanceled: false };
|
|
52035
|
+
spawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));
|
|
52036
|
+
spawned.cancel = spawnedCancel.bind(null, spawned, context);
|
|
52037
|
+
const handlePromise = async () => {
|
|
52038
|
+
const [{ error, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);
|
|
52039
|
+
const stdout = handleOutput(parsed.options, stdoutResult);
|
|
52040
|
+
const stderr = handleOutput(parsed.options, stderrResult);
|
|
52041
|
+
const all = handleOutput(parsed.options, allResult);
|
|
52042
|
+
if (error || exitCode !== 0 || signal !== null) {
|
|
52043
|
+
const returnedError = makeError({
|
|
52044
|
+
error,
|
|
52045
|
+
exitCode,
|
|
52046
|
+
signal,
|
|
52047
|
+
stdout,
|
|
52048
|
+
stderr,
|
|
52049
|
+
all,
|
|
52050
|
+
command,
|
|
52051
|
+
escapedCommand,
|
|
52052
|
+
parsed,
|
|
52053
|
+
timedOut,
|
|
52054
|
+
isCanceled: context.isCanceled,
|
|
52055
|
+
killed: spawned.killed
|
|
52056
|
+
});
|
|
52057
|
+
if (!parsed.options.reject) {
|
|
52058
|
+
return returnedError;
|
|
52059
|
+
}
|
|
52060
|
+
throw returnedError;
|
|
52061
|
+
}
|
|
52062
|
+
return {
|
|
52063
|
+
command,
|
|
52064
|
+
escapedCommand,
|
|
52065
|
+
exitCode: 0,
|
|
52066
|
+
stdout,
|
|
52067
|
+
stderr,
|
|
52068
|
+
all,
|
|
52069
|
+
failed: false,
|
|
52070
|
+
timedOut: false,
|
|
52071
|
+
isCanceled: false,
|
|
52072
|
+
killed: false
|
|
52073
|
+
};
|
|
52074
|
+
};
|
|
52075
|
+
const handlePromiseOnce = onetime(handlePromise);
|
|
52076
|
+
handleInput(spawned, parsed.options.input);
|
|
52077
|
+
spawned.all = makeAllStream(spawned, parsed.options);
|
|
52078
|
+
return mergePromise(spawned, handlePromiseOnce);
|
|
52079
|
+
};
|
|
52080
|
+
module2.exports = execa2;
|
|
52081
|
+
module2.exports.sync = (file, args, options) => {
|
|
52082
|
+
const parsed = handleArguments(file, args, options);
|
|
52083
|
+
const command = joinCommand(file, args);
|
|
52084
|
+
const escapedCommand = getEscapedCommand(file, args);
|
|
52085
|
+
validateInputSync(parsed.options);
|
|
52086
|
+
let result;
|
|
52087
|
+
try {
|
|
52088
|
+
result = childProcess.spawnSync(parsed.file, parsed.args, parsed.options);
|
|
52089
|
+
} catch (error) {
|
|
52090
|
+
throw makeError({
|
|
52091
|
+
error,
|
|
52092
|
+
stdout: "",
|
|
52093
|
+
stderr: "",
|
|
52094
|
+
all: "",
|
|
52095
|
+
command,
|
|
52096
|
+
escapedCommand,
|
|
52097
|
+
parsed,
|
|
52098
|
+
timedOut: false,
|
|
52099
|
+
isCanceled: false,
|
|
52100
|
+
killed: false
|
|
52101
|
+
});
|
|
52102
|
+
}
|
|
52103
|
+
const stdout = handleOutput(parsed.options, result.stdout, result.error);
|
|
52104
|
+
const stderr = handleOutput(parsed.options, result.stderr, result.error);
|
|
52105
|
+
if (result.error || result.status !== 0 || result.signal !== null) {
|
|
52106
|
+
const error = makeError({
|
|
52107
|
+
stdout,
|
|
52108
|
+
stderr,
|
|
52109
|
+
error: result.error,
|
|
52110
|
+
signal: result.signal,
|
|
52111
|
+
exitCode: result.status,
|
|
52112
|
+
command,
|
|
52113
|
+
escapedCommand,
|
|
52114
|
+
parsed,
|
|
52115
|
+
timedOut: result.error && result.error.code === "ETIMEDOUT",
|
|
52116
|
+
isCanceled: false,
|
|
52117
|
+
killed: result.signal !== null
|
|
52118
|
+
});
|
|
52119
|
+
if (!parsed.options.reject) {
|
|
52120
|
+
return error;
|
|
52121
|
+
}
|
|
52122
|
+
throw error;
|
|
52123
|
+
}
|
|
52124
|
+
return {
|
|
52125
|
+
command,
|
|
52126
|
+
escapedCommand,
|
|
52127
|
+
exitCode: 0,
|
|
52128
|
+
stdout,
|
|
52129
|
+
stderr,
|
|
52130
|
+
failed: false,
|
|
52131
|
+
timedOut: false,
|
|
52132
|
+
isCanceled: false,
|
|
52133
|
+
killed: false
|
|
52134
|
+
};
|
|
52135
|
+
};
|
|
52136
|
+
module2.exports.command = (command, options) => {
|
|
52137
|
+
const [file, ...args] = parseCommand(command);
|
|
52138
|
+
return execa2(file, args, options);
|
|
52139
|
+
};
|
|
52140
|
+
module2.exports.commandSync = (command, options) => {
|
|
52141
|
+
const [file, ...args] = parseCommand(command);
|
|
52142
|
+
return execa2.sync(file, args, options);
|
|
52143
|
+
};
|
|
52144
|
+
module2.exports.node = (scriptPath, args, options = {}) => {
|
|
52145
|
+
if (args && !Array.isArray(args) && typeof args === "object") {
|
|
52146
|
+
options = args;
|
|
52147
|
+
args = [];
|
|
52148
|
+
}
|
|
52149
|
+
const stdio = normalizeStdio.node(options);
|
|
52150
|
+
const defaultExecArgv = process.execArgv.filter((arg) => !arg.startsWith("--inspect"));
|
|
52151
|
+
const {
|
|
52152
|
+
nodePath = process.execPath,
|
|
52153
|
+
nodeOptions = defaultExecArgv
|
|
52154
|
+
} = options;
|
|
52155
|
+
return execa2(nodePath, [
|
|
52156
|
+
...nodeOptions,
|
|
52157
|
+
scriptPath,
|
|
52158
|
+
...Array.isArray(args) ? args : []
|
|
52159
|
+
], __spreadProps(__spreadValues({}, options), {
|
|
52160
|
+
stdin: void 0,
|
|
52161
|
+
stdout: void 0,
|
|
52162
|
+
stderr: void 0,
|
|
52163
|
+
stdio,
|
|
52164
|
+
shell: false
|
|
52165
|
+
}));
|
|
52166
|
+
};
|
|
52167
|
+
}
|
|
52168
|
+
});
|
|
52169
|
+
|
|
50572
52170
|
// ../../node_modules/yargs/node_modules/y18n/build/index.cjs
|
|
50573
52171
|
var require_build5 = __commonJS({
|
|
50574
52172
|
"../../node_modules/yargs/node_modules/y18n/build/index.cjs"(exports, module2) {
|
|
50575
52173
|
"use strict";
|
|
50576
52174
|
var fs2 = require("fs");
|
|
50577
52175
|
var util = require("util");
|
|
50578
|
-
var
|
|
52176
|
+
var path4 = require("path");
|
|
50579
52177
|
var shim;
|
|
50580
52178
|
var Y18N = class {
|
|
50581
52179
|
constructor(opts) {
|
|
@@ -50739,7 +52337,7 @@ var require_build5 = __commonJS({
|
|
|
50739
52337
|
writeFile: fs2.writeFile
|
|
50740
52338
|
},
|
|
50741
52339
|
format: util.format,
|
|
50742
|
-
resolve:
|
|
52340
|
+
resolve: path4.resolve,
|
|
50743
52341
|
exists: (file) => {
|
|
50744
52342
|
try {
|
|
50745
52343
|
return fs2.statSync(file).isFile();
|
|
@@ -50761,7 +52359,7 @@ var require_build6 = __commonJS({
|
|
|
50761
52359
|
"use strict";
|
|
50762
52360
|
var util = require("util");
|
|
50763
52361
|
var fs2 = require("fs");
|
|
50764
|
-
var
|
|
52362
|
+
var path4 = require("path");
|
|
50765
52363
|
function camelCase(str) {
|
|
50766
52364
|
const isCamelCase = str !== str.toLowerCase() && str !== str.toUpperCase();
|
|
50767
52365
|
if (!isCamelCase) {
|
|
@@ -51687,13 +53285,13 @@ var require_build6 = __commonJS({
|
|
|
51687
53285
|
return env;
|
|
51688
53286
|
},
|
|
51689
53287
|
format: util.format,
|
|
51690
|
-
normalize:
|
|
51691
|
-
resolve:
|
|
51692
|
-
require: (
|
|
53288
|
+
normalize: path4.normalize,
|
|
53289
|
+
resolve: path4.resolve,
|
|
53290
|
+
require: (path5) => {
|
|
51693
53291
|
if (typeof require !== "undefined") {
|
|
51694
|
-
return require(
|
|
51695
|
-
} else if (
|
|
51696
|
-
return fs2.readFileSync(
|
|
53292
|
+
return require(path5);
|
|
53293
|
+
} else if (path5.match(/\.json$/)) {
|
|
53294
|
+
return fs2.readFileSync(path5, "utf8");
|
|
51697
53295
|
} else {
|
|
51698
53296
|
throw Error("only .json config files are supported in ESM");
|
|
51699
53297
|
}
|
|
@@ -52207,14 +53805,14 @@ var require_require_directory = __commonJS({
|
|
|
52207
53805
|
return obj;
|
|
52208
53806
|
}
|
|
52209
53807
|
};
|
|
52210
|
-
function checkFileInclusion(
|
|
52211
|
-
return new RegExp("\\.(" + options.extensions.join("|") + ")$", "i").test(filename) && !(options.include && options.include instanceof RegExp && !options.include.test(
|
|
53808
|
+
function checkFileInclusion(path4, filename, options) {
|
|
53809
|
+
return new RegExp("\\.(" + options.extensions.join("|") + ")$", "i").test(filename) && !(options.include && options.include instanceof RegExp && !options.include.test(path4)) && !(options.include && typeof options.include === "function" && !options.include(path4, filename)) && !(options.exclude && options.exclude instanceof RegExp && options.exclude.test(path4)) && !(options.exclude && typeof options.exclude === "function" && options.exclude(path4, filename));
|
|
52212
53810
|
}
|
|
52213
|
-
function requireDirectory(m,
|
|
53811
|
+
function requireDirectory(m, path4, options) {
|
|
52214
53812
|
var retval = {};
|
|
52215
|
-
if (
|
|
52216
|
-
options =
|
|
52217
|
-
|
|
53813
|
+
if (path4 && !options && typeof path4 !== "string") {
|
|
53814
|
+
options = path4;
|
|
53815
|
+
path4 = null;
|
|
52218
53816
|
}
|
|
52219
53817
|
options = options || {};
|
|
52220
53818
|
for (var prop in defaultOptions) {
|
|
@@ -52222,9 +53820,9 @@ var require_require_directory = __commonJS({
|
|
|
52222
53820
|
options[prop] = defaultOptions[prop];
|
|
52223
53821
|
}
|
|
52224
53822
|
}
|
|
52225
|
-
|
|
52226
|
-
fs2.readdirSync(
|
|
52227
|
-
var joined = join(
|
|
53823
|
+
path4 = !path4 ? dirname(m.filename) : resolve(dirname(m.filename), path4);
|
|
53824
|
+
fs2.readdirSync(path4).forEach(function(filename) {
|
|
53825
|
+
var joined = join(path4, filename), files2, key, obj;
|
|
52228
53826
|
if (fs2.statSync(joined).isDirectory() && options.recurse) {
|
|
52229
53827
|
files2 = requireDirectory(m, joined, options);
|
|
52230
53828
|
if (Object.keys(files2).length) {
|
|
@@ -54092,11 +55690,11 @@ var Workspace = class {
|
|
|
54092
55690
|
static create(workspace) {
|
|
54093
55691
|
return new Workspace(workspace);
|
|
54094
55692
|
}
|
|
54095
|
-
constructor({ directory, name: name2, version: version2, dependencies }) {
|
|
55693
|
+
constructor({ directory, name: name2, version: version2, dependencies: dependencies2 }) {
|
|
54096
55694
|
this.directory = directory;
|
|
54097
55695
|
this.name = name2;
|
|
54098
55696
|
this.version = version2;
|
|
54099
|
-
this.dependencies =
|
|
55697
|
+
this.dependencies = dependencies2;
|
|
54100
55698
|
this.workspaces = /* @__PURE__ */ new Set();
|
|
54101
55699
|
this.id = hash(this.directory);
|
|
54102
55700
|
}
|
|
@@ -54135,13 +55733,13 @@ async function loadWorkspace(directory) {
|
|
|
54135
55733
|
}
|
|
54136
55734
|
const packageJson = await import_fs_extra.default.readJson(packageJsonPath);
|
|
54137
55735
|
const types = ["dependencies", "devDependencies", "peerDependencies"];
|
|
54138
|
-
const
|
|
55736
|
+
const dependencies2 = [];
|
|
54139
55737
|
for (const type of types) {
|
|
54140
55738
|
if (!packageJson[type]) {
|
|
54141
55739
|
continue;
|
|
54142
55740
|
}
|
|
54143
55741
|
for (const [name2, version2] of Object.entries(packageJson[type])) {
|
|
54144
|
-
|
|
55742
|
+
dependencies2.push({
|
|
54145
55743
|
type,
|
|
54146
55744
|
name: name2,
|
|
54147
55745
|
version: version2
|
|
@@ -54163,7 +55761,7 @@ async function loadWorkspace(directory) {
|
|
|
54163
55761
|
return {
|
|
54164
55762
|
type: "worktree",
|
|
54165
55763
|
directory,
|
|
54166
|
-
dependencies,
|
|
55764
|
+
dependencies: dependencies2,
|
|
54167
55765
|
children,
|
|
54168
55766
|
name: packageJson.name,
|
|
54169
55767
|
version: packageJson.version
|
|
@@ -54172,7 +55770,7 @@ async function loadWorkspace(directory) {
|
|
|
54172
55770
|
return {
|
|
54173
55771
|
type: "workspace",
|
|
54174
55772
|
directory,
|
|
54175
|
-
dependencies,
|
|
55773
|
+
dependencies: dependencies2,
|
|
54176
55774
|
name: packageJson.name,
|
|
54177
55775
|
version: packageJson.version
|
|
54178
55776
|
};
|
|
@@ -54321,6 +55919,15 @@ async function upgrade(options, availableUpgrades = []) {
|
|
|
54321
55919
|
logger.log(packageJson.diff());
|
|
54322
55920
|
}
|
|
54323
55921
|
}
|
|
55922
|
+
const migrations = upgrade2.migrations;
|
|
55923
|
+
if (migrations && migrations.length > 0) {
|
|
55924
|
+
for (const migration of migrations) {
|
|
55925
|
+
logger.verbose("running migration: %s", migration.name);
|
|
55926
|
+
await migration.migrate(__spreadProps(__spreadValues({}, options), {
|
|
55927
|
+
workspaceDir: workspace.directory
|
|
55928
|
+
}));
|
|
55929
|
+
}
|
|
55930
|
+
}
|
|
54324
55931
|
}
|
|
54325
55932
|
async function getSelectedWorkspace(workspaces) {
|
|
54326
55933
|
if (workspaces.length === 1) {
|
|
@@ -54374,7 +55981,120 @@ async function getSelectedUpgrade(upgrades2) {
|
|
|
54374
55981
|
});
|
|
54375
55982
|
}
|
|
54376
55983
|
|
|
55984
|
+
// src/commands/migrate.js
|
|
55985
|
+
var import_inquirer2 = __toESM(require_inquirer());
|
|
55986
|
+
async function migrate(options, upgrades2 = []) {
|
|
55987
|
+
logger.verbose("running migrate command with options: %o", options);
|
|
55988
|
+
const migrations = upgrades2.filter((upgrade2) => {
|
|
55989
|
+
return upgrade2.migrations && upgrade2.migrations.length > 0;
|
|
55990
|
+
}).flatMap((upgrade2) => {
|
|
55991
|
+
return upgrade2.migrations;
|
|
55992
|
+
});
|
|
55993
|
+
if (!migrations || migrations.length === 0) {
|
|
55994
|
+
logger.info("No migrations available");
|
|
55995
|
+
return;
|
|
55996
|
+
}
|
|
55997
|
+
if (options.list) {
|
|
55998
|
+
listMigrations(migrations);
|
|
55999
|
+
return;
|
|
56000
|
+
}
|
|
56001
|
+
const workspaces = getAvailableWorkspaces(options.cwd);
|
|
56002
|
+
if (workspaces.length === 0) {
|
|
56003
|
+
throw new UpgradeError("Unable to find a workspace to migrate");
|
|
56004
|
+
}
|
|
56005
|
+
if (options.migration) {
|
|
56006
|
+
const migration = migrations.find((migration2) => {
|
|
56007
|
+
return migration2.name === options.migration;
|
|
56008
|
+
});
|
|
56009
|
+
if (!migration) {
|
|
56010
|
+
logger.error('Sorry, there is no migration with the name "%s"', options.migration);
|
|
56011
|
+
listMigrations(migrations);
|
|
56012
|
+
} else {
|
|
56013
|
+
await runMigration(migration, workspaces, options);
|
|
56014
|
+
}
|
|
56015
|
+
return;
|
|
56016
|
+
} else {
|
|
56017
|
+
logger.error("A migration must be specified");
|
|
56018
|
+
}
|
|
56019
|
+
}
|
|
56020
|
+
function listMigrations(migrations) {
|
|
56021
|
+
logger.log("Available migrations:");
|
|
56022
|
+
for (const migration of migrations) {
|
|
56023
|
+
logger.log(" - %s (%s)", migration.name, migration.description);
|
|
56024
|
+
}
|
|
56025
|
+
}
|
|
56026
|
+
async function runMigration(migration, workspaces, options) {
|
|
56027
|
+
const workspace = await getSelectedWorkspace2(workspaces);
|
|
56028
|
+
logger.verbose("running migration: %s for workspace: %s", migration.name, workspace.directory);
|
|
56029
|
+
await migration.migrate(__spreadProps(__spreadValues({}, options), { workspaceDir: workspace.directory }));
|
|
56030
|
+
}
|
|
56031
|
+
async function getSelectedWorkspace2(workspaces) {
|
|
56032
|
+
if (workspaces.length === 1) {
|
|
56033
|
+
return await Workspace.load(workspaces[0]);
|
|
56034
|
+
}
|
|
56035
|
+
const answers = await import_inquirer2.default.prompt([
|
|
56036
|
+
{
|
|
56037
|
+
type: "list",
|
|
56038
|
+
name: "workspace",
|
|
56039
|
+
message: "What workspace would you like to use?",
|
|
56040
|
+
choices: workspaces
|
|
56041
|
+
}
|
|
56042
|
+
]);
|
|
56043
|
+
return await Workspace.load(answers.workspace);
|
|
56044
|
+
}
|
|
56045
|
+
|
|
56046
|
+
// src/upgrades.js
|
|
56047
|
+
var import_path3 = __toESM(require("path"));
|
|
56048
|
+
|
|
56049
|
+
// src/jscodeshift.js
|
|
56050
|
+
var import_path2 = __toESM(require("path"));
|
|
56051
|
+
var import_execa = __toESM(require_execa2());
|
|
56052
|
+
var _jscodeshift;
|
|
56053
|
+
function getBinPath() {
|
|
56054
|
+
if (!_jscodeshift) {
|
|
56055
|
+
const directory = import_path2.default.dirname(require.resolve("jscodeshift"));
|
|
56056
|
+
_jscodeshift = import_path2.default.join(directory, "bin", "jscodeshift.js");
|
|
56057
|
+
}
|
|
56058
|
+
return _jscodeshift;
|
|
56059
|
+
}
|
|
56060
|
+
async function run(options) {
|
|
56061
|
+
const {
|
|
56062
|
+
cwd,
|
|
56063
|
+
stdio = "inherit",
|
|
56064
|
+
parser = "babel",
|
|
56065
|
+
paths,
|
|
56066
|
+
transform
|
|
56067
|
+
} = options;
|
|
56068
|
+
const args = [
|
|
56069
|
+
paths,
|
|
56070
|
+
`-t=${transform}`,
|
|
56071
|
+
`--parser=${parser}`,
|
|
56072
|
+
`--ignore-pattern=**/build/**`,
|
|
56073
|
+
`--ignore-pattern=**/dist/**`,
|
|
56074
|
+
`--ignore-pattern=**/es/**`,
|
|
56075
|
+
`--ignore-pattern=**/lib/**`,
|
|
56076
|
+
`--ignore-pattern=**/node_modules/**`,
|
|
56077
|
+
`--ignore-pattern=**/storybook-static/**`,
|
|
56078
|
+
`--ignore-pattern=**/umd/**`
|
|
56079
|
+
];
|
|
56080
|
+
if (options.print) {
|
|
56081
|
+
args.push("--print");
|
|
56082
|
+
}
|
|
56083
|
+
if (options.verbose) {
|
|
56084
|
+
args.push("-v");
|
|
56085
|
+
}
|
|
56086
|
+
if (options.dry) {
|
|
56087
|
+
args.push("--dry");
|
|
56088
|
+
}
|
|
56089
|
+
console.log(args);
|
|
56090
|
+
return await (0, import_execa.default)(getBinPath(), args, {
|
|
56091
|
+
cwd,
|
|
56092
|
+
stdio
|
|
56093
|
+
});
|
|
56094
|
+
}
|
|
56095
|
+
|
|
54377
56096
|
// src/upgrades.js
|
|
56097
|
+
var TRANSFORM_DIR = import_path3.default.join(__dirname, "transforms");
|
|
54378
56098
|
var Change = {
|
|
54379
56099
|
install({ name: name2, version: version2 }) {
|
|
54380
56100
|
return {
|
|
@@ -54469,6 +56189,32 @@ var upgrades = [
|
|
|
54469
56189
|
},
|
|
54470
56190
|
changes: [Change.uninstall]
|
|
54471
56191
|
}
|
|
56192
|
+
],
|
|
56193
|
+
migrations: [
|
|
56194
|
+
{
|
|
56195
|
+
name: "icons-react-size-prop",
|
|
56196
|
+
description: "Update imports and size usage for @carbon/icons",
|
|
56197
|
+
migrate: async (options) => {
|
|
56198
|
+
const transform = import_path3.default.join(TRANSFORM_DIR, "icons-react-size-prop.js");
|
|
56199
|
+
await run(__spreadValues({
|
|
56200
|
+
transform,
|
|
56201
|
+
paths: options.workspaceDir,
|
|
56202
|
+
dry: !options.write
|
|
56203
|
+
}, options));
|
|
56204
|
+
}
|
|
56205
|
+
},
|
|
56206
|
+
{
|
|
56207
|
+
name: "update-carbon-components-react-import-to-scoped",
|
|
56208
|
+
description: "Rewrites imports from `carbon-components-react` to `@carbon/react`",
|
|
56209
|
+
migrate: async (options) => {
|
|
56210
|
+
const transform = import_path3.default.join(TRANSFORM_DIR, "update-carbon-components-react-import-to-scoped.js");
|
|
56211
|
+
await run(__spreadValues({
|
|
56212
|
+
transform,
|
|
56213
|
+
paths: options.workspaceDir,
|
|
56214
|
+
dry: !options.write
|
|
56215
|
+
}, options));
|
|
56216
|
+
}
|
|
56217
|
+
}
|
|
54472
56218
|
]
|
|
54473
56219
|
},
|
|
54474
56220
|
{
|
|
@@ -54495,7 +56241,7 @@ var upgrades = [
|
|
|
54495
56241
|
// package.json
|
|
54496
56242
|
var name = "@carbon/upgrade";
|
|
54497
56243
|
var description = "A tool for upgrading Carbon versions";
|
|
54498
|
-
var version = "10.17.0
|
|
56244
|
+
var version = "10.17.0";
|
|
54499
56245
|
var license = "Apache-2.0";
|
|
54500
56246
|
var bin = {
|
|
54501
56247
|
"carbon-upgrade": "./bin/carbon-upgrade.js"
|
|
@@ -54508,7 +56254,8 @@ var repository = {
|
|
|
54508
56254
|
var bugs = "https://github.com/carbon-design-system/carbon/issues";
|
|
54509
56255
|
var files = [
|
|
54510
56256
|
"bin",
|
|
54511
|
-
"cli.js"
|
|
56257
|
+
"cli.js",
|
|
56258
|
+
"transforms"
|
|
54512
56259
|
];
|
|
54513
56260
|
var keywords = [
|
|
54514
56261
|
"carbon",
|
|
@@ -54524,14 +56271,13 @@ var publishConfig = {
|
|
|
54524
56271
|
access: "public"
|
|
54525
56272
|
};
|
|
54526
56273
|
var scripts = {
|
|
54527
|
-
build: "esbuild src/cli.js --bundle --platform=node --outfile=cli.js --target=node14",
|
|
56274
|
+
build: "esbuild src/cli.js --bundle --platform=node --outfile=cli.js --target=node14 --external:jscodeshift",
|
|
54528
56275
|
clean: "rimraf cli.js",
|
|
54529
56276
|
watch: "yarn build --watch"
|
|
54530
56277
|
};
|
|
54531
56278
|
var devDependencies = {
|
|
54532
56279
|
chalk: "^4.1.1",
|
|
54533
56280
|
"change-case": "^4.1.2",
|
|
54534
|
-
"cross-spawn": "^7.0.3",
|
|
54535
56281
|
esbuild: "^0.14.10",
|
|
54536
56282
|
execa: "^5.1.1",
|
|
54537
56283
|
"fast-glob": "^3.2.7",
|
|
@@ -54539,7 +56285,6 @@ var devDependencies = {
|
|
|
54539
56285
|
inquirer: "^8.1.0",
|
|
54540
56286
|
"is-git-clean": "^1.1.0",
|
|
54541
56287
|
"jest-diff": "^27.4.6",
|
|
54542
|
-
jscodeshift: "^0.13.0",
|
|
54543
56288
|
"lodash.clonedeep": "^4.5.0",
|
|
54544
56289
|
"lodash.merge": "^4.6.2",
|
|
54545
56290
|
memfs: "^3.4.0",
|
|
@@ -54549,6 +56294,9 @@ var devDependencies = {
|
|
|
54549
56294
|
semver: "^7.3.5",
|
|
54550
56295
|
yargs: "^17.0.1"
|
|
54551
56296
|
};
|
|
56297
|
+
var dependencies = {
|
|
56298
|
+
jscodeshift: "^0.13.1"
|
|
56299
|
+
};
|
|
54552
56300
|
var package_default = {
|
|
54553
56301
|
name,
|
|
54554
56302
|
description,
|
|
@@ -54561,7 +56309,8 @@ var package_default = {
|
|
|
54561
56309
|
keywords,
|
|
54562
56310
|
publishConfig,
|
|
54563
56311
|
scripts,
|
|
54564
|
-
devDependencies
|
|
56312
|
+
devDependencies,
|
|
56313
|
+
dependencies
|
|
54565
56314
|
};
|
|
54566
56315
|
|
|
54567
56316
|
// src/cli.js
|
|
@@ -54583,7 +56332,7 @@ async function main({ argv, cwd }) {
|
|
|
54583
56332
|
describe: "optionally include additional logs, useful for debugging",
|
|
54584
56333
|
type: "boolean"
|
|
54585
56334
|
});
|
|
54586
|
-
cli.usage("Usage: $0 [options]").command("$0", "upgrade your project", {},
|
|
56335
|
+
cli.usage("Usage: $0 [options]").command(["upgrade", "$0"], "upgrade your project", {}, run2(async (args) => {
|
|
54587
56336
|
const { verbose, write } = args;
|
|
54588
56337
|
const options = {
|
|
54589
56338
|
cwd: cwd(),
|
|
@@ -54592,9 +56341,25 @@ async function main({ argv, cwd }) {
|
|
|
54592
56341
|
};
|
|
54593
56342
|
await upgrade(options, upgrades);
|
|
54594
56343
|
}));
|
|
56344
|
+
cli.command("migrate <migration>", "run a Carbon migration on your source files", async (cli2) => {
|
|
56345
|
+
cli2.command("list", "list all migrations", {}, run2(async (args) => {
|
|
56346
|
+
const { verbose } = args;
|
|
56347
|
+
const options = { cwd: cwd(), verbose, list: true };
|
|
56348
|
+
await migrate(options, upgrades);
|
|
56349
|
+
}, true));
|
|
56350
|
+
}, run2(async (args) => {
|
|
56351
|
+
const { verbose, migration, write } = args;
|
|
56352
|
+
const options = {
|
|
56353
|
+
cwd: cwd(),
|
|
56354
|
+
verbose,
|
|
56355
|
+
write,
|
|
56356
|
+
migration
|
|
56357
|
+
};
|
|
56358
|
+
await migrate(options, upgrades);
|
|
56359
|
+
}));
|
|
54595
56360
|
cli.strict().parse(argv.slice(2));
|
|
54596
56361
|
}
|
|
54597
|
-
function
|
|
56362
|
+
function run2(command, ignoreSafetyChecks = false) {
|
|
54598
56363
|
return async (args) => {
|
|
54599
56364
|
if (args.verbose === true) {
|
|
54600
56365
|
logger.setLevel("verbose");
|
|
@@ -54608,14 +56373,14 @@ function run(command) {
|
|
|
54608
56373
|
clean = true;
|
|
54609
56374
|
}
|
|
54610
56375
|
}
|
|
54611
|
-
if (!clean && args.force !== true) {
|
|
56376
|
+
if (!ignoreSafetyChecks && !clean && args.force !== true) {
|
|
54612
56377
|
logger.log(import_chalk3.default.yellow("[warning]"), "It appears that you have untracked changes in your project. Before we continue, please stash or commit your changes to git.");
|
|
54613
56378
|
logger.log("\nYou may use the --force flag to override this safety check.");
|
|
54614
56379
|
process.exit(1);
|
|
54615
56380
|
}
|
|
54616
56381
|
try {
|
|
54617
56382
|
await command(args);
|
|
54618
|
-
logger.
|
|
56383
|
+
logger.verbose("Done! \u2728");
|
|
54619
56384
|
} catch (error) {
|
|
54620
56385
|
if (error instanceof UpgradeError) {
|
|
54621
56386
|
logger.error(error.message);
|