@latticexyz/cli 1.31.3 → 1.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/call-system.js +30 -24
- package/dist/commands/codegen-libdeploy.js +30 -24
- package/dist/commands/create.js +30 -24
- package/dist/commands/deploy-contracts.js +34 -25
- package/dist/commands/deploy.js +18 -12
- package/dist/commands/devnode.js +31 -32
- package/dist/commands/diamond-abi.js +30 -24
- package/dist/commands/sync-art.js +30 -24
- package/dist/commands/system-types.js +30 -24
- package/dist/commands/test.js +30 -24
- package/dist/commands/trace.js +30 -24
- package/dist/commands/types.js +34 -25
- package/dist/index.js +2 -2
- package/package.json +6 -6
- package/src/commands/deploy.ts +10 -1
- package/src/commands/devnode.ts +1 -8
- package/src/utils/build.ts +4 -1
- package/LICENSE +0 -21
package/dist/commands/devnode.js
CHANGED
|
@@ -7448,16 +7448,15 @@ var require_browser = __commonJS({
|
|
|
7448
7448
|
}
|
|
7449
7449
|
});
|
|
7450
7450
|
|
|
7451
|
-
// ../../node_modules/
|
|
7451
|
+
// ../../node_modules/has-flag/index.js
|
|
7452
7452
|
var require_has_flag = __commonJS({
|
|
7453
|
-
"../../node_modules/
|
|
7453
|
+
"../../node_modules/has-flag/index.js"(exports, module2) {
|
|
7454
7454
|
"use strict";
|
|
7455
|
-
module2.exports = (flag, argv) => {
|
|
7456
|
-
argv = argv || process.argv;
|
|
7455
|
+
module2.exports = (flag, argv = process.argv) => {
|
|
7457
7456
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
7458
|
-
const
|
|
7459
|
-
const
|
|
7460
|
-
return
|
|
7457
|
+
const position = argv.indexOf(prefix + flag);
|
|
7458
|
+
const terminatorPosition = argv.indexOf("--");
|
|
7459
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
7461
7460
|
};
|
|
7462
7461
|
}
|
|
7463
7462
|
});
|
|
@@ -7467,16 +7466,23 @@ var require_supports_color = __commonJS({
|
|
|
7467
7466
|
"../../node_modules/supports-color/index.js"(exports, module2) {
|
|
7468
7467
|
"use strict";
|
|
7469
7468
|
var os = require("os");
|
|
7469
|
+
var tty = require("tty");
|
|
7470
7470
|
var hasFlag = require_has_flag();
|
|
7471
|
-
var env = process
|
|
7471
|
+
var { env } = process;
|
|
7472
7472
|
var forceColor;
|
|
7473
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
7474
|
-
forceColor =
|
|
7473
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
7474
|
+
forceColor = 0;
|
|
7475
7475
|
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
7476
|
-
forceColor =
|
|
7476
|
+
forceColor = 1;
|
|
7477
7477
|
}
|
|
7478
7478
|
if ("FORCE_COLOR" in env) {
|
|
7479
|
-
|
|
7479
|
+
if (env.FORCE_COLOR === "true") {
|
|
7480
|
+
forceColor = 1;
|
|
7481
|
+
} else if (env.FORCE_COLOR === "false") {
|
|
7482
|
+
forceColor = 0;
|
|
7483
|
+
} else {
|
|
7484
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
7485
|
+
}
|
|
7480
7486
|
}
|
|
7481
7487
|
function translateLevel(level) {
|
|
7482
7488
|
if (level === 0) {
|
|
@@ -7489,8 +7495,8 @@ var require_supports_color = __commonJS({
|
|
|
7489
7495
|
has16m: level >= 3
|
|
7490
7496
|
};
|
|
7491
7497
|
}
|
|
7492
|
-
function supportsColor(
|
|
7493
|
-
if (forceColor ===
|
|
7498
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
7499
|
+
if (forceColor === 0) {
|
|
7494
7500
|
return 0;
|
|
7495
7501
|
}
|
|
7496
7502
|
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
@@ -7499,19 +7505,22 @@ var require_supports_color = __commonJS({
|
|
|
7499
7505
|
if (hasFlag("color=256")) {
|
|
7500
7506
|
return 2;
|
|
7501
7507
|
}
|
|
7502
|
-
if (
|
|
7508
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
7503
7509
|
return 0;
|
|
7504
7510
|
}
|
|
7505
|
-
const min = forceColor
|
|
7511
|
+
const min = forceColor || 0;
|
|
7512
|
+
if (env.TERM === "dumb") {
|
|
7513
|
+
return min;
|
|
7514
|
+
}
|
|
7506
7515
|
if (process.platform === "win32") {
|
|
7507
7516
|
const osRelease = os.release().split(".");
|
|
7508
|
-
if (Number(
|
|
7517
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
7509
7518
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
7510
7519
|
}
|
|
7511
7520
|
return 1;
|
|
7512
7521
|
}
|
|
7513
7522
|
if ("CI" in env) {
|
|
7514
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
7523
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
7515
7524
|
return 1;
|
|
7516
7525
|
}
|
|
7517
7526
|
return min;
|
|
@@ -7540,19 +7549,16 @@ var require_supports_color = __commonJS({
|
|
|
7540
7549
|
if ("COLORTERM" in env) {
|
|
7541
7550
|
return 1;
|
|
7542
7551
|
}
|
|
7543
|
-
if (env.TERM === "dumb") {
|
|
7544
|
-
return min;
|
|
7545
|
-
}
|
|
7546
7552
|
return min;
|
|
7547
7553
|
}
|
|
7548
7554
|
function getSupportLevel(stream) {
|
|
7549
|
-
const level = supportsColor(stream);
|
|
7555
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
7550
7556
|
return translateLevel(level);
|
|
7551
7557
|
}
|
|
7552
7558
|
module2.exports = {
|
|
7553
7559
|
supportsColor: getSupportLevel,
|
|
7554
|
-
stdout:
|
|
7555
|
-
stderr:
|
|
7560
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
7561
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
7556
7562
|
};
|
|
7557
7563
|
}
|
|
7558
7564
|
});
|
|
@@ -181306,14 +181312,7 @@ var handler = (argv) => __async(void 0, null, function* () {
|
|
|
181306
181312
|
console.log("Clearing devnode history");
|
|
181307
181313
|
const userHomeDir = (0, import_os3.homedir)();
|
|
181308
181314
|
(0, import_fs.rmSync)(import_path2.default.join(userHomeDir, ".foundry", "anvil", "tmp"), { recursive: true, force: true });
|
|
181309
|
-
const { child } = yield execLog("anvil", [
|
|
181310
|
-
"-b",
|
|
181311
|
-
String(blocktime),
|
|
181312
|
-
"--block-base-fee-per-gas",
|
|
181313
|
-
"0",
|
|
181314
|
-
"--gas-limit",
|
|
181315
|
-
"100000000"
|
|
181316
|
-
]);
|
|
181315
|
+
const { child } = yield execLog("anvil", ["-b", String(blocktime), "--block-base-fee-per-gas", "0"]);
|
|
181317
181316
|
process.on("SIGINT", () => {
|
|
181318
181317
|
console.log("\ngracefully shutting down from SIGINT (Crtl-C)");
|
|
181319
181318
|
child.kill();
|
|
@@ -9752,16 +9752,15 @@ var require_browser = __commonJS({
|
|
|
9752
9752
|
}
|
|
9753
9753
|
});
|
|
9754
9754
|
|
|
9755
|
-
// ../../node_modules/
|
|
9755
|
+
// ../../node_modules/has-flag/index.js
|
|
9756
9756
|
var require_has_flag = __commonJS({
|
|
9757
|
-
"../../node_modules/
|
|
9757
|
+
"../../node_modules/has-flag/index.js"(exports, module2) {
|
|
9758
9758
|
"use strict";
|
|
9759
|
-
module2.exports = (flag, argv) => {
|
|
9760
|
-
argv = argv || process.argv;
|
|
9759
|
+
module2.exports = (flag, argv = process.argv) => {
|
|
9761
9760
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
9762
|
-
const
|
|
9763
|
-
const
|
|
9764
|
-
return
|
|
9761
|
+
const position = argv.indexOf(prefix + flag);
|
|
9762
|
+
const terminatorPosition = argv.indexOf("--");
|
|
9763
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
9765
9764
|
};
|
|
9766
9765
|
}
|
|
9767
9766
|
});
|
|
@@ -9771,16 +9770,23 @@ var require_supports_color = __commonJS({
|
|
|
9771
9770
|
"../../node_modules/supports-color/index.js"(exports, module2) {
|
|
9772
9771
|
"use strict";
|
|
9773
9772
|
var os = require("os");
|
|
9773
|
+
var tty = require("tty");
|
|
9774
9774
|
var hasFlag = require_has_flag();
|
|
9775
|
-
var env = process
|
|
9775
|
+
var { env } = process;
|
|
9776
9776
|
var forceColor;
|
|
9777
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
9778
|
-
forceColor =
|
|
9777
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
9778
|
+
forceColor = 0;
|
|
9779
9779
|
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
9780
|
-
forceColor =
|
|
9780
|
+
forceColor = 1;
|
|
9781
9781
|
}
|
|
9782
9782
|
if ("FORCE_COLOR" in env) {
|
|
9783
|
-
|
|
9783
|
+
if (env.FORCE_COLOR === "true") {
|
|
9784
|
+
forceColor = 1;
|
|
9785
|
+
} else if (env.FORCE_COLOR === "false") {
|
|
9786
|
+
forceColor = 0;
|
|
9787
|
+
} else {
|
|
9788
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
9789
|
+
}
|
|
9784
9790
|
}
|
|
9785
9791
|
function translateLevel(level) {
|
|
9786
9792
|
if (level === 0) {
|
|
@@ -9793,8 +9799,8 @@ var require_supports_color = __commonJS({
|
|
|
9793
9799
|
has16m: level >= 3
|
|
9794
9800
|
};
|
|
9795
9801
|
}
|
|
9796
|
-
function supportsColor(
|
|
9797
|
-
if (forceColor ===
|
|
9802
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
9803
|
+
if (forceColor === 0) {
|
|
9798
9804
|
return 0;
|
|
9799
9805
|
}
|
|
9800
9806
|
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
@@ -9803,19 +9809,22 @@ var require_supports_color = __commonJS({
|
|
|
9803
9809
|
if (hasFlag("color=256")) {
|
|
9804
9810
|
return 2;
|
|
9805
9811
|
}
|
|
9806
|
-
if (
|
|
9812
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
9807
9813
|
return 0;
|
|
9808
9814
|
}
|
|
9809
|
-
const min = forceColor
|
|
9815
|
+
const min = forceColor || 0;
|
|
9816
|
+
if (env.TERM === "dumb") {
|
|
9817
|
+
return min;
|
|
9818
|
+
}
|
|
9810
9819
|
if (process.platform === "win32") {
|
|
9811
9820
|
const osRelease = os.release().split(".");
|
|
9812
|
-
if (Number(
|
|
9821
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
9813
9822
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
9814
9823
|
}
|
|
9815
9824
|
return 1;
|
|
9816
9825
|
}
|
|
9817
9826
|
if ("CI" in env) {
|
|
9818
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
9827
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
9819
9828
|
return 1;
|
|
9820
9829
|
}
|
|
9821
9830
|
return min;
|
|
@@ -9844,19 +9853,16 @@ var require_supports_color = __commonJS({
|
|
|
9844
9853
|
if ("COLORTERM" in env) {
|
|
9845
9854
|
return 1;
|
|
9846
9855
|
}
|
|
9847
|
-
if (env.TERM === "dumb") {
|
|
9848
|
-
return min;
|
|
9849
|
-
}
|
|
9850
9856
|
return min;
|
|
9851
9857
|
}
|
|
9852
9858
|
function getSupportLevel(stream) {
|
|
9853
|
-
const level = supportsColor(stream);
|
|
9859
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
9854
9860
|
return translateLevel(level);
|
|
9855
9861
|
}
|
|
9856
9862
|
module2.exports = {
|
|
9857
9863
|
supportsColor: getSupportLevel,
|
|
9858
|
-
stdout:
|
|
9859
|
-
stderr:
|
|
9864
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
9865
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
9860
9866
|
};
|
|
9861
9867
|
}
|
|
9862
9868
|
});
|
|
@@ -7448,16 +7448,15 @@ var require_browser = __commonJS({
|
|
|
7448
7448
|
}
|
|
7449
7449
|
});
|
|
7450
7450
|
|
|
7451
|
-
// ../../node_modules/
|
|
7451
|
+
// ../../node_modules/has-flag/index.js
|
|
7452
7452
|
var require_has_flag = __commonJS({
|
|
7453
|
-
"../../node_modules/
|
|
7453
|
+
"../../node_modules/has-flag/index.js"(exports, module2) {
|
|
7454
7454
|
"use strict";
|
|
7455
|
-
module2.exports = (flag, argv) => {
|
|
7456
|
-
argv = argv || process.argv;
|
|
7455
|
+
module2.exports = (flag, argv = process.argv) => {
|
|
7457
7456
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
7458
|
-
const
|
|
7459
|
-
const
|
|
7460
|
-
return
|
|
7457
|
+
const position = argv.indexOf(prefix + flag);
|
|
7458
|
+
const terminatorPosition = argv.indexOf("--");
|
|
7459
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
7461
7460
|
};
|
|
7462
7461
|
}
|
|
7463
7462
|
});
|
|
@@ -7467,16 +7466,23 @@ var require_supports_color = __commonJS({
|
|
|
7467
7466
|
"../../node_modules/supports-color/index.js"(exports, module2) {
|
|
7468
7467
|
"use strict";
|
|
7469
7468
|
var os = require("os");
|
|
7469
|
+
var tty = require("tty");
|
|
7470
7470
|
var hasFlag = require_has_flag();
|
|
7471
|
-
var env = process
|
|
7471
|
+
var { env } = process;
|
|
7472
7472
|
var forceColor;
|
|
7473
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
7474
|
-
forceColor =
|
|
7473
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
7474
|
+
forceColor = 0;
|
|
7475
7475
|
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
7476
|
-
forceColor =
|
|
7476
|
+
forceColor = 1;
|
|
7477
7477
|
}
|
|
7478
7478
|
if ("FORCE_COLOR" in env) {
|
|
7479
|
-
|
|
7479
|
+
if (env.FORCE_COLOR === "true") {
|
|
7480
|
+
forceColor = 1;
|
|
7481
|
+
} else if (env.FORCE_COLOR === "false") {
|
|
7482
|
+
forceColor = 0;
|
|
7483
|
+
} else {
|
|
7484
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
7485
|
+
}
|
|
7480
7486
|
}
|
|
7481
7487
|
function translateLevel(level) {
|
|
7482
7488
|
if (level === 0) {
|
|
@@ -7489,8 +7495,8 @@ var require_supports_color = __commonJS({
|
|
|
7489
7495
|
has16m: level >= 3
|
|
7490
7496
|
};
|
|
7491
7497
|
}
|
|
7492
|
-
function supportsColor(
|
|
7493
|
-
if (forceColor ===
|
|
7498
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
7499
|
+
if (forceColor === 0) {
|
|
7494
7500
|
return 0;
|
|
7495
7501
|
}
|
|
7496
7502
|
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
@@ -7499,19 +7505,22 @@ var require_supports_color = __commonJS({
|
|
|
7499
7505
|
if (hasFlag("color=256")) {
|
|
7500
7506
|
return 2;
|
|
7501
7507
|
}
|
|
7502
|
-
if (
|
|
7508
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
7503
7509
|
return 0;
|
|
7504
7510
|
}
|
|
7505
|
-
const min = forceColor
|
|
7511
|
+
const min = forceColor || 0;
|
|
7512
|
+
if (env.TERM === "dumb") {
|
|
7513
|
+
return min;
|
|
7514
|
+
}
|
|
7506
7515
|
if (process.platform === "win32") {
|
|
7507
7516
|
const osRelease = os.release().split(".");
|
|
7508
|
-
if (Number(
|
|
7517
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
7509
7518
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
7510
7519
|
}
|
|
7511
7520
|
return 1;
|
|
7512
7521
|
}
|
|
7513
7522
|
if ("CI" in env) {
|
|
7514
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
7523
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
7515
7524
|
return 1;
|
|
7516
7525
|
}
|
|
7517
7526
|
return min;
|
|
@@ -7540,19 +7549,16 @@ var require_supports_color = __commonJS({
|
|
|
7540
7549
|
if ("COLORTERM" in env) {
|
|
7541
7550
|
return 1;
|
|
7542
7551
|
}
|
|
7543
|
-
if (env.TERM === "dumb") {
|
|
7544
|
-
return min;
|
|
7545
|
-
}
|
|
7546
7552
|
return min;
|
|
7547
7553
|
}
|
|
7548
7554
|
function getSupportLevel(stream) {
|
|
7549
|
-
const level = supportsColor(stream);
|
|
7555
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
7550
7556
|
return translateLevel(level);
|
|
7551
7557
|
}
|
|
7552
7558
|
module2.exports = {
|
|
7553
7559
|
supportsColor: getSupportLevel,
|
|
7554
|
-
stdout:
|
|
7555
|
-
stderr:
|
|
7560
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
7561
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
7556
7562
|
};
|
|
7557
7563
|
}
|
|
7558
7564
|
});
|
|
@@ -7448,16 +7448,15 @@ var require_browser = __commonJS({
|
|
|
7448
7448
|
}
|
|
7449
7449
|
});
|
|
7450
7450
|
|
|
7451
|
-
// ../../node_modules/
|
|
7451
|
+
// ../../node_modules/has-flag/index.js
|
|
7452
7452
|
var require_has_flag = __commonJS({
|
|
7453
|
-
"../../node_modules/
|
|
7453
|
+
"../../node_modules/has-flag/index.js"(exports, module2) {
|
|
7454
7454
|
"use strict";
|
|
7455
|
-
module2.exports = (flag, argv) => {
|
|
7456
|
-
argv = argv || process.argv;
|
|
7455
|
+
module2.exports = (flag, argv = process.argv) => {
|
|
7457
7456
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
7458
|
-
const
|
|
7459
|
-
const
|
|
7460
|
-
return
|
|
7457
|
+
const position = argv.indexOf(prefix + flag);
|
|
7458
|
+
const terminatorPosition = argv.indexOf("--");
|
|
7459
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
7461
7460
|
};
|
|
7462
7461
|
}
|
|
7463
7462
|
});
|
|
@@ -7467,16 +7466,23 @@ var require_supports_color = __commonJS({
|
|
|
7467
7466
|
"../../node_modules/supports-color/index.js"(exports, module2) {
|
|
7468
7467
|
"use strict";
|
|
7469
7468
|
var os = require("os");
|
|
7469
|
+
var tty = require("tty");
|
|
7470
7470
|
var hasFlag = require_has_flag();
|
|
7471
|
-
var env = process
|
|
7471
|
+
var { env } = process;
|
|
7472
7472
|
var forceColor;
|
|
7473
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
7474
|
-
forceColor =
|
|
7473
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
7474
|
+
forceColor = 0;
|
|
7475
7475
|
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
7476
|
-
forceColor =
|
|
7476
|
+
forceColor = 1;
|
|
7477
7477
|
}
|
|
7478
7478
|
if ("FORCE_COLOR" in env) {
|
|
7479
|
-
|
|
7479
|
+
if (env.FORCE_COLOR === "true") {
|
|
7480
|
+
forceColor = 1;
|
|
7481
|
+
} else if (env.FORCE_COLOR === "false") {
|
|
7482
|
+
forceColor = 0;
|
|
7483
|
+
} else {
|
|
7484
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
7485
|
+
}
|
|
7480
7486
|
}
|
|
7481
7487
|
function translateLevel(level) {
|
|
7482
7488
|
if (level === 0) {
|
|
@@ -7489,8 +7495,8 @@ var require_supports_color = __commonJS({
|
|
|
7489
7495
|
has16m: level >= 3
|
|
7490
7496
|
};
|
|
7491
7497
|
}
|
|
7492
|
-
function supportsColor(
|
|
7493
|
-
if (forceColor ===
|
|
7498
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
7499
|
+
if (forceColor === 0) {
|
|
7494
7500
|
return 0;
|
|
7495
7501
|
}
|
|
7496
7502
|
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
@@ -7499,19 +7505,22 @@ var require_supports_color = __commonJS({
|
|
|
7499
7505
|
if (hasFlag("color=256")) {
|
|
7500
7506
|
return 2;
|
|
7501
7507
|
}
|
|
7502
|
-
if (
|
|
7508
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
7503
7509
|
return 0;
|
|
7504
7510
|
}
|
|
7505
|
-
const min = forceColor
|
|
7511
|
+
const min = forceColor || 0;
|
|
7512
|
+
if (env.TERM === "dumb") {
|
|
7513
|
+
return min;
|
|
7514
|
+
}
|
|
7506
7515
|
if (process.platform === "win32") {
|
|
7507
7516
|
const osRelease = os.release().split(".");
|
|
7508
|
-
if (Number(
|
|
7517
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
7509
7518
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
7510
7519
|
}
|
|
7511
7520
|
return 1;
|
|
7512
7521
|
}
|
|
7513
7522
|
if ("CI" in env) {
|
|
7514
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
7523
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
7515
7524
|
return 1;
|
|
7516
7525
|
}
|
|
7517
7526
|
return min;
|
|
@@ -7540,19 +7549,16 @@ var require_supports_color = __commonJS({
|
|
|
7540
7549
|
if ("COLORTERM" in env) {
|
|
7541
7550
|
return 1;
|
|
7542
7551
|
}
|
|
7543
|
-
if (env.TERM === "dumb") {
|
|
7544
|
-
return min;
|
|
7545
|
-
}
|
|
7546
7552
|
return min;
|
|
7547
7553
|
}
|
|
7548
7554
|
function getSupportLevel(stream) {
|
|
7549
|
-
const level = supportsColor(stream);
|
|
7555
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
7550
7556
|
return translateLevel(level);
|
|
7551
7557
|
}
|
|
7552
7558
|
module2.exports = {
|
|
7553
7559
|
supportsColor: getSupportLevel,
|
|
7554
|
-
stdout:
|
|
7555
|
-
stderr:
|
|
7560
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
7561
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
7556
7562
|
};
|
|
7557
7563
|
}
|
|
7558
7564
|
});
|
package/dist/commands/test.js
CHANGED
|
@@ -7448,16 +7448,15 @@ var require_browser = __commonJS({
|
|
|
7448
7448
|
}
|
|
7449
7449
|
});
|
|
7450
7450
|
|
|
7451
|
-
// ../../node_modules/
|
|
7451
|
+
// ../../node_modules/has-flag/index.js
|
|
7452
7452
|
var require_has_flag = __commonJS({
|
|
7453
|
-
"../../node_modules/
|
|
7453
|
+
"../../node_modules/has-flag/index.js"(exports, module2) {
|
|
7454
7454
|
"use strict";
|
|
7455
|
-
module2.exports = (flag, argv) => {
|
|
7456
|
-
argv = argv || process.argv;
|
|
7455
|
+
module2.exports = (flag, argv = process.argv) => {
|
|
7457
7456
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
7458
|
-
const
|
|
7459
|
-
const
|
|
7460
|
-
return
|
|
7457
|
+
const position = argv.indexOf(prefix + flag);
|
|
7458
|
+
const terminatorPosition = argv.indexOf("--");
|
|
7459
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
7461
7460
|
};
|
|
7462
7461
|
}
|
|
7463
7462
|
});
|
|
@@ -7467,16 +7466,23 @@ var require_supports_color = __commonJS({
|
|
|
7467
7466
|
"../../node_modules/supports-color/index.js"(exports, module2) {
|
|
7468
7467
|
"use strict";
|
|
7469
7468
|
var os = require("os");
|
|
7469
|
+
var tty = require("tty");
|
|
7470
7470
|
var hasFlag = require_has_flag();
|
|
7471
|
-
var env = process
|
|
7471
|
+
var { env } = process;
|
|
7472
7472
|
var forceColor;
|
|
7473
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
7474
|
-
forceColor =
|
|
7473
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
7474
|
+
forceColor = 0;
|
|
7475
7475
|
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
7476
|
-
forceColor =
|
|
7476
|
+
forceColor = 1;
|
|
7477
7477
|
}
|
|
7478
7478
|
if ("FORCE_COLOR" in env) {
|
|
7479
|
-
|
|
7479
|
+
if (env.FORCE_COLOR === "true") {
|
|
7480
|
+
forceColor = 1;
|
|
7481
|
+
} else if (env.FORCE_COLOR === "false") {
|
|
7482
|
+
forceColor = 0;
|
|
7483
|
+
} else {
|
|
7484
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
7485
|
+
}
|
|
7480
7486
|
}
|
|
7481
7487
|
function translateLevel(level) {
|
|
7482
7488
|
if (level === 0) {
|
|
@@ -7489,8 +7495,8 @@ var require_supports_color = __commonJS({
|
|
|
7489
7495
|
has16m: level >= 3
|
|
7490
7496
|
};
|
|
7491
7497
|
}
|
|
7492
|
-
function supportsColor(
|
|
7493
|
-
if (forceColor ===
|
|
7498
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
7499
|
+
if (forceColor === 0) {
|
|
7494
7500
|
return 0;
|
|
7495
7501
|
}
|
|
7496
7502
|
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
@@ -7499,19 +7505,22 @@ var require_supports_color = __commonJS({
|
|
|
7499
7505
|
if (hasFlag("color=256")) {
|
|
7500
7506
|
return 2;
|
|
7501
7507
|
}
|
|
7502
|
-
if (
|
|
7508
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
7503
7509
|
return 0;
|
|
7504
7510
|
}
|
|
7505
|
-
const min = forceColor
|
|
7511
|
+
const min = forceColor || 0;
|
|
7512
|
+
if (env.TERM === "dumb") {
|
|
7513
|
+
return min;
|
|
7514
|
+
}
|
|
7506
7515
|
if (process.platform === "win32") {
|
|
7507
7516
|
const osRelease = os.release().split(".");
|
|
7508
|
-
if (Number(
|
|
7517
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
7509
7518
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
7510
7519
|
}
|
|
7511
7520
|
return 1;
|
|
7512
7521
|
}
|
|
7513
7522
|
if ("CI" in env) {
|
|
7514
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
7523
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
7515
7524
|
return 1;
|
|
7516
7525
|
}
|
|
7517
7526
|
return min;
|
|
@@ -7540,19 +7549,16 @@ var require_supports_color = __commonJS({
|
|
|
7540
7549
|
if ("COLORTERM" in env) {
|
|
7541
7550
|
return 1;
|
|
7542
7551
|
}
|
|
7543
|
-
if (env.TERM === "dumb") {
|
|
7544
|
-
return min;
|
|
7545
|
-
}
|
|
7546
7552
|
return min;
|
|
7547
7553
|
}
|
|
7548
7554
|
function getSupportLevel(stream) {
|
|
7549
|
-
const level = supportsColor(stream);
|
|
7555
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
7550
7556
|
return translateLevel(level);
|
|
7551
7557
|
}
|
|
7552
7558
|
module2.exports = {
|
|
7553
7559
|
supportsColor: getSupportLevel,
|
|
7554
|
-
stdout:
|
|
7555
|
-
stderr:
|
|
7560
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
7561
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
7556
7562
|
};
|
|
7557
7563
|
}
|
|
7558
7564
|
});
|