@latticexyz/cli 1.34.0 → 1.36.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.
@@ -16,26 +16,6 @@ var __copyProps = (to, from, except, desc2) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var __async = (__this, __arguments, generator) => {
20
- return new Promise((resolve, reject) => {
21
- var fulfilled = (value) => {
22
- try {
23
- step(generator.next(value));
24
- } catch (e) {
25
- reject(e);
26
- }
27
- };
28
- var rejected = (value) => {
29
- try {
30
- step(generator.throw(value));
31
- } catch (e) {
32
- reject(e);
33
- }
34
- };
35
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
36
- step((generator = generator.apply(__this, __arguments)).next());
37
- });
38
- };
39
19
 
40
20
  // src/commands/bulkupload.ts
41
21
  var bulkupload_exports = {};
@@ -54,14 +34,14 @@ var builder = (yargs) => yargs.options({
54
34
  worldAddress: { type: "string", demandOption: true, desc: "Contract address of the World to upload to" },
55
35
  rpc: { type: "string", demandOption: true, desc: "JSON RPC endpoint" }
56
36
  });
57
- var handler = (argv) => __async(void 0, null, function* () {
58
- const { execa } = yield importExeca;
37
+ var handler = async (argv) => {
38
+ const { execa } = await importExeca;
59
39
  const { statePath, worldAddress, rpc } = argv;
60
40
  console.log("Uploading state at ", statePath, "to", worldAddress, "on", rpc);
61
41
  const url = __dirname + "/../../src/contracts/BulkUpload.sol";
62
42
  console.log("Using BulkUpload script from", url);
63
43
  try {
64
- yield execa("forge", [
44
+ await execa("forge", [
65
45
  "script",
66
46
  "--sig",
67
47
  '"run(string, address)"',
@@ -75,7 +55,7 @@ var handler = (argv) => __async(void 0, null, function* () {
75
55
  console.error(e);
76
56
  }
77
57
  process.exit(0);
78
- });
58
+ };
79
59
  // Annotate the CommonJS export names for ESM import in node:
80
60
  0 && (module.exports = {
81
61
  builder,