@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
|
@@ -30702,16 +30702,15 @@ var require_browser = __commonJS({
|
|
|
30702
30702
|
}
|
|
30703
30703
|
});
|
|
30704
30704
|
|
|
30705
|
-
// ../../node_modules/
|
|
30705
|
+
// ../../node_modules/has-flag/index.js
|
|
30706
30706
|
var require_has_flag = __commonJS({
|
|
30707
|
-
"../../node_modules/
|
|
30707
|
+
"../../node_modules/has-flag/index.js"(exports, module2) {
|
|
30708
30708
|
"use strict";
|
|
30709
|
-
module2.exports = (flag, argv) => {
|
|
30710
|
-
argv = argv || process.argv;
|
|
30709
|
+
module2.exports = (flag, argv = process.argv) => {
|
|
30711
30710
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
30712
|
-
const
|
|
30713
|
-
const
|
|
30714
|
-
return
|
|
30711
|
+
const position = argv.indexOf(prefix + flag);
|
|
30712
|
+
const terminatorPosition = argv.indexOf("--");
|
|
30713
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
30715
30714
|
};
|
|
30716
30715
|
}
|
|
30717
30716
|
});
|
|
@@ -30721,16 +30720,23 @@ var require_supports_color = __commonJS({
|
|
|
30721
30720
|
"../../node_modules/supports-color/index.js"(exports, module2) {
|
|
30722
30721
|
"use strict";
|
|
30723
30722
|
var os = require("os");
|
|
30723
|
+
var tty = require("tty");
|
|
30724
30724
|
var hasFlag = require_has_flag();
|
|
30725
|
-
var env = process
|
|
30725
|
+
var { env } = process;
|
|
30726
30726
|
var forceColor;
|
|
30727
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
30728
|
-
forceColor =
|
|
30727
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
30728
|
+
forceColor = 0;
|
|
30729
30729
|
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
30730
|
-
forceColor =
|
|
30730
|
+
forceColor = 1;
|
|
30731
30731
|
}
|
|
30732
30732
|
if ("FORCE_COLOR" in env) {
|
|
30733
|
-
|
|
30733
|
+
if (env.FORCE_COLOR === "true") {
|
|
30734
|
+
forceColor = 1;
|
|
30735
|
+
} else if (env.FORCE_COLOR === "false") {
|
|
30736
|
+
forceColor = 0;
|
|
30737
|
+
} else {
|
|
30738
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
30739
|
+
}
|
|
30734
30740
|
}
|
|
30735
30741
|
function translateLevel(level) {
|
|
30736
30742
|
if (level === 0) {
|
|
@@ -30743,8 +30749,8 @@ var require_supports_color = __commonJS({
|
|
|
30743
30749
|
has16m: level >= 3
|
|
30744
30750
|
};
|
|
30745
30751
|
}
|
|
30746
|
-
function supportsColor(
|
|
30747
|
-
if (forceColor ===
|
|
30752
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
30753
|
+
if (forceColor === 0) {
|
|
30748
30754
|
return 0;
|
|
30749
30755
|
}
|
|
30750
30756
|
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
@@ -30753,19 +30759,22 @@ var require_supports_color = __commonJS({
|
|
|
30753
30759
|
if (hasFlag("color=256")) {
|
|
30754
30760
|
return 2;
|
|
30755
30761
|
}
|
|
30756
|
-
if (
|
|
30762
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
30757
30763
|
return 0;
|
|
30758
30764
|
}
|
|
30759
|
-
const min = forceColor
|
|
30765
|
+
const min = forceColor || 0;
|
|
30766
|
+
if (env.TERM === "dumb") {
|
|
30767
|
+
return min;
|
|
30768
|
+
}
|
|
30760
30769
|
if (process.platform === "win32") {
|
|
30761
30770
|
const osRelease = os.release().split(".");
|
|
30762
|
-
if (Number(
|
|
30771
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
30763
30772
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
30764
30773
|
}
|
|
30765
30774
|
return 1;
|
|
30766
30775
|
}
|
|
30767
30776
|
if ("CI" in env) {
|
|
30768
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
30777
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
30769
30778
|
return 1;
|
|
30770
30779
|
}
|
|
30771
30780
|
return min;
|
|
@@ -30794,19 +30803,16 @@ var require_supports_color = __commonJS({
|
|
|
30794
30803
|
if ("COLORTERM" in env) {
|
|
30795
30804
|
return 1;
|
|
30796
30805
|
}
|
|
30797
|
-
if (env.TERM === "dumb") {
|
|
30798
|
-
return min;
|
|
30799
|
-
}
|
|
30800
30806
|
return min;
|
|
30801
30807
|
}
|
|
30802
30808
|
function getSupportLevel(stream) {
|
|
30803
|
-
const level = supportsColor(stream);
|
|
30809
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
30804
30810
|
return translateLevel(level);
|
|
30805
30811
|
}
|
|
30806
30812
|
module2.exports = {
|
|
30807
30813
|
supportsColor: getSupportLevel,
|
|
30808
|
-
stdout:
|
|
30809
|
-
stderr:
|
|
30814
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
30815
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
30810
30816
|
};
|
|
30811
30817
|
}
|
|
30812
30818
|
});
|
|
@@ -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/create.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 os2 = require("os");
|
|
7469
|
+
var tty2 = require("tty");
|
|
7470
7470
|
var hasFlag2 = require_has_flag();
|
|
7471
|
-
var env2 = process
|
|
7471
|
+
var { env: env2 } = process;
|
|
7472
7472
|
var forceColor;
|
|
7473
|
-
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false")) {
|
|
7474
|
-
forceColor =
|
|
7473
|
+
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
|
|
7474
|
+
forceColor = 0;
|
|
7475
7475
|
} else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
|
|
7476
|
-
forceColor =
|
|
7476
|
+
forceColor = 1;
|
|
7477
7477
|
}
|
|
7478
7478
|
if ("FORCE_COLOR" in env2) {
|
|
7479
|
-
|
|
7479
|
+
if (env2.FORCE_COLOR === "true") {
|
|
7480
|
+
forceColor = 1;
|
|
7481
|
+
} else if (env2.FORCE_COLOR === "false") {
|
|
7482
|
+
forceColor = 0;
|
|
7483
|
+
} else {
|
|
7484
|
+
forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
|
|
7485
|
+
}
|
|
7480
7486
|
}
|
|
7481
7487
|
function translateLevel2(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 supportsColor2(
|
|
7493
|
-
if (forceColor ===
|
|
7498
|
+
function supportsColor2(haveStream, streamIsTTY) {
|
|
7499
|
+
if (forceColor === 0) {
|
|
7494
7500
|
return 0;
|
|
7495
7501
|
}
|
|
7496
7502
|
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
|
|
@@ -7499,19 +7505,22 @@ var require_supports_color = __commonJS({
|
|
|
7499
7505
|
if (hasFlag2("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 (env2.TERM === "dumb") {
|
|
7513
|
+
return min;
|
|
7514
|
+
}
|
|
7506
7515
|
if (process.platform === "win32") {
|
|
7507
7516
|
const osRelease = os2.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 env2) {
|
|
7514
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
|
|
7523
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env2) || env2.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 env2) {
|
|
7541
7550
|
return 1;
|
|
7542
7551
|
}
|
|
7543
|
-
if (env2.TERM === "dumb") {
|
|
7544
|
-
return min;
|
|
7545
|
-
}
|
|
7546
7552
|
return min;
|
|
7547
7553
|
}
|
|
7548
7554
|
function getSupportLevel(stream) {
|
|
7549
|
-
const level = supportsColor2(stream);
|
|
7555
|
+
const level = supportsColor2(stream, stream && stream.isTTY);
|
|
7550
7556
|
return translateLevel2(level);
|
|
7551
7557
|
}
|
|
7552
7558
|
module2.exports = {
|
|
7553
7559
|
supportsColor: getSupportLevel,
|
|
7554
|
-
stdout:
|
|
7555
|
-
stderr:
|
|
7560
|
+
stdout: translateLevel2(supportsColor2(true, tty2.isatty(1))),
|
|
7561
|
+
stderr: translateLevel2(supportsColor2(true, tty2.isatty(2)))
|
|
7556
7562
|
};
|
|
7557
7563
|
}
|
|
7558
7564
|
});
|
|
@@ -42893,16 +42893,15 @@ var require_browser = __commonJS({
|
|
|
42893
42893
|
}
|
|
42894
42894
|
});
|
|
42895
42895
|
|
|
42896
|
-
// ../../node_modules/
|
|
42896
|
+
// ../../node_modules/has-flag/index.js
|
|
42897
42897
|
var require_has_flag = __commonJS({
|
|
42898
|
-
"../../node_modules/
|
|
42898
|
+
"../../node_modules/has-flag/index.js"(exports, module2) {
|
|
42899
42899
|
"use strict";
|
|
42900
|
-
module2.exports = (flag, argv) => {
|
|
42901
|
-
argv = argv || process.argv;
|
|
42900
|
+
module2.exports = (flag, argv = process.argv) => {
|
|
42902
42901
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
42903
|
-
const
|
|
42904
|
-
const
|
|
42905
|
-
return
|
|
42902
|
+
const position = argv.indexOf(prefix + flag);
|
|
42903
|
+
const terminatorPosition = argv.indexOf("--");
|
|
42904
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
42906
42905
|
};
|
|
42907
42906
|
}
|
|
42908
42907
|
});
|
|
@@ -42912,16 +42911,23 @@ var require_supports_color = __commonJS({
|
|
|
42912
42911
|
"../../node_modules/supports-color/index.js"(exports, module2) {
|
|
42913
42912
|
"use strict";
|
|
42914
42913
|
var os2 = require("os");
|
|
42914
|
+
var tty = require("tty");
|
|
42915
42915
|
var hasFlag = require_has_flag();
|
|
42916
|
-
var env = process
|
|
42916
|
+
var { env } = process;
|
|
42917
42917
|
var forceColor;
|
|
42918
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
42919
|
-
forceColor =
|
|
42918
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
42919
|
+
forceColor = 0;
|
|
42920
42920
|
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
42921
|
-
forceColor =
|
|
42921
|
+
forceColor = 1;
|
|
42922
42922
|
}
|
|
42923
42923
|
if ("FORCE_COLOR" in env) {
|
|
42924
|
-
|
|
42924
|
+
if (env.FORCE_COLOR === "true") {
|
|
42925
|
+
forceColor = 1;
|
|
42926
|
+
} else if (env.FORCE_COLOR === "false") {
|
|
42927
|
+
forceColor = 0;
|
|
42928
|
+
} else {
|
|
42929
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
42930
|
+
}
|
|
42925
42931
|
}
|
|
42926
42932
|
function translateLevel(level) {
|
|
42927
42933
|
if (level === 0) {
|
|
@@ -42934,8 +42940,8 @@ var require_supports_color = __commonJS({
|
|
|
42934
42940
|
has16m: level >= 3
|
|
42935
42941
|
};
|
|
42936
42942
|
}
|
|
42937
|
-
function supportsColor(
|
|
42938
|
-
if (forceColor ===
|
|
42943
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
42944
|
+
if (forceColor === 0) {
|
|
42939
42945
|
return 0;
|
|
42940
42946
|
}
|
|
42941
42947
|
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
@@ -42944,19 +42950,22 @@ var require_supports_color = __commonJS({
|
|
|
42944
42950
|
if (hasFlag("color=256")) {
|
|
42945
42951
|
return 2;
|
|
42946
42952
|
}
|
|
42947
|
-
if (
|
|
42953
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
42948
42954
|
return 0;
|
|
42949
42955
|
}
|
|
42950
|
-
const min = forceColor
|
|
42956
|
+
const min = forceColor || 0;
|
|
42957
|
+
if (env.TERM === "dumb") {
|
|
42958
|
+
return min;
|
|
42959
|
+
}
|
|
42951
42960
|
if (process.platform === "win32") {
|
|
42952
42961
|
const osRelease = os2.release().split(".");
|
|
42953
|
-
if (Number(
|
|
42962
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
42954
42963
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
42955
42964
|
}
|
|
42956
42965
|
return 1;
|
|
42957
42966
|
}
|
|
42958
42967
|
if ("CI" in env) {
|
|
42959
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
42968
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
42960
42969
|
return 1;
|
|
42961
42970
|
}
|
|
42962
42971
|
return min;
|
|
@@ -42985,19 +42994,16 @@ var require_supports_color = __commonJS({
|
|
|
42985
42994
|
if ("COLORTERM" in env) {
|
|
42986
42995
|
return 1;
|
|
42987
42996
|
}
|
|
42988
|
-
if (env.TERM === "dumb") {
|
|
42989
|
-
return min;
|
|
42990
|
-
}
|
|
42991
42997
|
return min;
|
|
42992
42998
|
}
|
|
42993
42999
|
function getSupportLevel(stream) {
|
|
42994
|
-
const level = supportsColor(stream);
|
|
43000
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
42995
43001
|
return translateLevel(level);
|
|
42996
43002
|
}
|
|
42997
43003
|
module2.exports = {
|
|
42998
43004
|
supportsColor: getSupportLevel,
|
|
42999
|
-
stdout:
|
|
43000
|
-
stderr:
|
|
43005
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
43006
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
43001
43007
|
};
|
|
43002
43008
|
}
|
|
43003
43009
|
});
|
|
@@ -216348,8 +216354,11 @@ function filterAbi(abiIn = "./out", abiOut = "./abi", exclude = ["Component", "I
|
|
|
216348
216354
|
const include = ["Component", "System", "World", "LibQuery"];
|
|
216349
216355
|
const contracts = getContractsInDir(abiIn, exclude).filter((item) => include.find((i) => item.includes(i)));
|
|
216350
216356
|
console.log("Selected ABIs: ", contracts);
|
|
216351
|
-
for (const contract of contracts)
|
|
216357
|
+
for (const contract of contracts) {
|
|
216358
|
+
if (contract.includes(".t"))
|
|
216359
|
+
continue;
|
|
216352
216360
|
copyAbi(abiIn, abiOut, contract);
|
|
216361
|
+
}
|
|
216353
216362
|
console.log("Successfully moved selected ABIs to ./abi");
|
|
216354
216363
|
}
|
|
216355
216364
|
|
package/dist/commands/deploy.js
CHANGED
|
@@ -37232,9 +37232,9 @@ var require_has_flag = __commonJS({
|
|
|
37232
37232
|
}
|
|
37233
37233
|
});
|
|
37234
37234
|
|
|
37235
|
-
// ../../node_modules/
|
|
37235
|
+
// ../../node_modules/supports-color/index.js
|
|
37236
37236
|
var require_supports_color = __commonJS({
|
|
37237
|
-
"../../node_modules/
|
|
37237
|
+
"../../node_modules/supports-color/index.js"(exports, module2) {
|
|
37238
37238
|
"use strict";
|
|
37239
37239
|
var os2 = require("os");
|
|
37240
37240
|
var tty2 = require("tty");
|
|
@@ -76541,9 +76541,9 @@ var require_ansi_styles2 = __commonJS({
|
|
|
76541
76541
|
}
|
|
76542
76542
|
});
|
|
76543
76543
|
|
|
76544
|
-
// ../../node_modules/
|
|
76544
|
+
// ../../node_modules/inquirer-prompt-suggest/node_modules/has-flag/index.js
|
|
76545
76545
|
var require_has_flag2 = __commonJS({
|
|
76546
|
-
"../../node_modules/
|
|
76546
|
+
"../../node_modules/inquirer-prompt-suggest/node_modules/has-flag/index.js"(exports, module2) {
|
|
76547
76547
|
"use strict";
|
|
76548
76548
|
module2.exports = (flag, argv2) => {
|
|
76549
76549
|
argv2 = argv2 || process.argv;
|
|
@@ -76555,9 +76555,9 @@ var require_has_flag2 = __commonJS({
|
|
|
76555
76555
|
}
|
|
76556
76556
|
});
|
|
76557
76557
|
|
|
76558
|
-
// ../../node_modules/supports-color/index.js
|
|
76558
|
+
// ../../node_modules/inquirer-prompt-suggest/node_modules/supports-color/index.js
|
|
76559
76559
|
var require_supports_color2 = __commonJS({
|
|
76560
|
-
"../../node_modules/supports-color/index.js"(exports, module2) {
|
|
76560
|
+
"../../node_modules/inquirer-prompt-suggest/node_modules/supports-color/index.js"(exports, module2) {
|
|
76561
76561
|
"use strict";
|
|
76562
76562
|
var os2 = require("os");
|
|
76563
76563
|
var hasFlag = require_has_flag2();
|
|
@@ -94769,7 +94769,7 @@ var require_node2 = __commonJS({
|
|
|
94769
94769
|
);
|
|
94770
94770
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
94771
94771
|
try {
|
|
94772
|
-
const supportsColor =
|
|
94772
|
+
const supportsColor = require_supports_color();
|
|
94773
94773
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
94774
94774
|
exports.colors = [
|
|
94775
94775
|
20,
|
|
@@ -269147,8 +269147,11 @@ function filterAbi(abiIn = "./out", abiOut = "./abi", exclude = ["Component", "I
|
|
|
269147
269147
|
const include = ["Component", "System", "World", "LibQuery"];
|
|
269148
269148
|
const contracts = getContractsInDir(abiIn, exclude).filter((item) => include.find((i) => item.includes(i)));
|
|
269149
269149
|
console.log("Selected ABIs: ", contracts);
|
|
269150
|
-
for (const contract of contracts)
|
|
269150
|
+
for (const contract of contracts) {
|
|
269151
|
+
if (contract.includes(".t"))
|
|
269152
|
+
continue;
|
|
269151
269153
|
copyAbi(abiIn, abiOut, contract);
|
|
269154
|
+
}
|
|
269152
269155
|
console.log("Successfully moved selected ABIs to ./abi");
|
|
269153
269156
|
}
|
|
269154
269157
|
|
|
@@ -270261,7 +270264,8 @@ var builder = (yargs) => yargs.options({
|
|
|
270261
270264
|
netlifySlug: { type: "string" },
|
|
270262
270265
|
netlifyPersonalToken: { type: "string" },
|
|
270263
270266
|
codespace: { type: "boolean" },
|
|
270264
|
-
dry: { type: "boolean" }
|
|
270267
|
+
dry: { type: "boolean" },
|
|
270268
|
+
dev: { type: "boolean", default: true }
|
|
270265
270269
|
});
|
|
270266
270270
|
var handler = (args) => __async(void 0, null, function* () {
|
|
270267
270271
|
const info = yield getDeployInfo(args);
|
|
@@ -270303,7 +270307,8 @@ var getDeployInfo = (args) => __async(void 0, null, function* () {
|
|
|
270303
270307
|
wsRpc: "ws://localhost:8545",
|
|
270304
270308
|
reuseComponents: false,
|
|
270305
270309
|
deployClient: false,
|
|
270306
|
-
clientUrl: "http://localhost:3000"
|
|
270310
|
+
clientUrl: "http://localhost:3000",
|
|
270311
|
+
dev: true
|
|
270307
270312
|
};
|
|
270308
270313
|
const { default: fetch } = yield importFetch;
|
|
270309
270314
|
const answers = args.upgradeSystems && !args.world ? yield import_inquirer.default.prompt([
|
|
@@ -270447,7 +270452,8 @@ var getDeployInfo = (args) => __async(void 0, null, function* () {
|
|
|
270447
270452
|
netlifySlug: (_G = (_F = args.netlifySlug) != null ? _F : config.netlifySlug) != null ? _G : answers.netlifySlug,
|
|
270448
270453
|
netlifyPersonalToken: (_I = (_H = args.netlifyPersonalToken) != null ? _H : config.netlifyPersonalToken) != null ? _I : answers.netlifyPersonalToken,
|
|
270449
270454
|
codespace: args.codespace,
|
|
270450
|
-
dry: args.dry
|
|
270455
|
+
dry: args.dry,
|
|
270456
|
+
dev: args.dev
|
|
270451
270457
|
};
|
|
270452
270458
|
});
|
|
270453
270459
|
var deploy2 = (options) => __async(void 0, null, function* () {
|
|
@@ -270561,7 +270567,7 @@ var deploy2 = (options) => __async(void 0, null, function* () {
|
|
|
270561
270567
|
clientUrl = getCodespaceUrl(3e3);
|
|
270562
270568
|
options.rpc = getCodespaceUrl(8545);
|
|
270563
270569
|
}
|
|
270564
|
-
launcherUrl = `${clientUrl}?chainId=${options.chainId}&worldAddress=${ctx.worldAddress}&rpc=${options.rpc}&wsRpc=${options.wsRpc}&initialBlockNumber=${ctx.initialBlockNumber}&
|
|
270570
|
+
launcherUrl = `${clientUrl}?chainId=${options.chainId}&worldAddress=${ctx.worldAddress}&rpc=${options.rpc}&wsRpc=${options.wsRpc}&initialBlockNumber=${ctx.initialBlockNumber}&snapshot=&stream=&relay=&faucet=${options.dev ? "&dev=true" : ""}`;
|
|
270565
270571
|
import_openurl.default.open(launcherUrl);
|
|
270566
270572
|
}),
|
|
270567
270573
|
options: { bottomBar: 3 }
|