@latticexyz/cli 2.2.22-490159e880e2ac0e1ce8f5785873a25b99fb7668 → 2.2.22-504def97a7c4d34bc80557316a590f5314ab01c2
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.
| @@ -23,7 +23,8 @@ function printCommand(proc) { | |
| 23 23 |  | 
| 24 24 | 
             
            // src/build.ts
         | 
| 25 25 | 
             
            async function build({ rootDir, config, foundryProfile }) {
         | 
| 26 | 
            -
              await  | 
| 26 | 
            +
              await tablegen({ rootDir, config });
         | 
| 27 | 
            +
              await worldgen({ rootDir, config });
         | 
| 27 28 | 
             
              await printCommand(
         | 
| 28 29 | 
             
                execa("forge", ["build"], {
         | 
| 29 30 | 
             
                  stdio: "inherit",
         | 
| @@ -1647,7 +1648,7 @@ function getContractData(filename, contractName, forgeOutDirectory) { | |
| 1647 1648 | 
             
            }
         | 
| 1648 1649 |  | 
| 1649 1650 | 
             
            // src/deploy/resolveConfig.ts
         | 
| 1650 | 
            -
            import { groupBy } from "@latticexyz/common/utils";
         | 
| 1651 | 
            +
            import { groupBy, isDefined as isDefined5 } from "@latticexyz/common/utils";
         | 
| 1651 1652 |  | 
| 1652 1653 | 
             
            // src/deploy/findLibraries.ts
         | 
| 1653 1654 | 
             
            import { readFileSync as readFileSync2 } from "fs";
         | 
| @@ -1745,6 +1746,10 @@ async function resolveConfig({ | |
| 1745 1746 | 
             
                  );
         | 
| 1746 1747 | 
             
                }
         | 
| 1747 1748 | 
             
                const contractData = getContractData(`${system.label}.sol`, system.label, forgeOutDir);
         | 
| 1749 | 
            +
                if (!contractData.deployedBytecodeSize) {
         | 
| 1750 | 
            +
                  debug2(`skipping ${system.label} system with no bytecode`);
         | 
| 1751 | 
            +
                  return;
         | 
| 1752 | 
            +
                }
         | 
| 1748 1753 | 
             
                const worldFunctions = system.deploy.registerWorldFunctions ? contractData.abi.filter((item) => item.type === "function").map(toFunctionSignature).filter((sig) => !baseSystemFunctions.includes(sig)).map((sig) => {
         | 
| 1749 1754 | 
             
                  const worldSignature = system.namespace === "" ? sig : `${system.namespace}__${sig}`;
         | 
| 1750 1755 | 
             
                  return {
         | 
| @@ -1774,7 +1779,7 @@ async function resolveConfig({ | |
| 1774 1779 | 
             
                    worldAbi: manifest.worldAbi
         | 
| 1775 1780 | 
             
                  }
         | 
| 1776 1781 | 
             
                };
         | 
| 1777 | 
            -
              });
         | 
| 1782 | 
            +
              }).filter(isDefined5);
         | 
| 1778 1783 | 
             
              const systemsById = groupBy(systems, (system) => system.systemId);
         | 
| 1779 1784 | 
             
              const overlappingSystems = Array.from(systemsById.values()).filter((matches) => matches.length > 1).flat();
         | 
| 1780 1785 | 
             
              if (overlappingSystems.length) {
         | 
| @@ -2515,7 +2520,7 @@ import path13 from "path"; | |
| 2515 2520 | 
             
            import { homedir as homedir2 } from "os";
         | 
| 2516 2521 | 
             
            import { rmSync as rmSync2 } from "fs";
         | 
| 2517 2522 | 
             
            import { BehaviorSubject, debounceTime, exhaustMap, filter } from "rxjs";
         | 
| 2518 | 
            -
            import { isDefined as  | 
| 2523 | 
            +
            import { isDefined as isDefined6 } from "@latticexyz/common/utils";
         | 
| 2519 2524 | 
             
            import { execa as execa6 } from "execa";
         | 
| 2520 2525 | 
             
            var devOptions = {
         | 
| 2521 2526 | 
             
              rpc: deployOptions.rpc,
         | 
| @@ -2597,7 +2602,7 @@ var commandModule10 = { | |
| 2597 2602 | 
             
                      console.log(chalk5.gray("\nWaiting for file changes\u2026\n"));
         | 
| 2598 2603 | 
             
                    }
         | 
| 2599 2604 | 
             
                  }),
         | 
| 2600 | 
            -
                  filter( | 
| 2605 | 
            +
                  filter(isDefined6)
         | 
| 2601 2606 | 
             
                );
         | 
| 2602 2607 | 
             
                deploys$.subscribe();
         | 
| 2603 2608 | 
             
              }
         | 
| @@ -2901,7 +2906,7 @@ error3.log = console.error.bind(console); | |
| 2901 2906 | 
             
            // src/pull/pull.ts
         | 
| 2902 2907 | 
             
            import { defineWorld } from "@latticexyz/world";
         | 
| 2903 2908 | 
             
            import { findUp as findUp3 } from "find-up";
         | 
| 2904 | 
            -
            import { isDefined as  | 
| 2909 | 
            +
            import { isDefined as isDefined7 } from "@latticexyz/common/utils";
         | 
| 2905 2910 | 
             
            var ignoredNamespaces = /* @__PURE__ */ new Set(["store", "world", "metadata"]);
         | 
| 2906 2911 | 
             
            function namespaceToHex(namespace) {
         | 
| 2907 2912 | 
             
              return resourceToHex5({ type: "namespace", namespace, name: "" });
         | 
| @@ -2968,14 +2973,14 @@ async function pull({ rootDir, client, worldAddress, replace, indexerUrl, chainI | |
| 2968 2973 | 
             
                    } catch {
         | 
| 2969 2974 | 
             
                      debug3(`Skipping invalid system signature: ${sig}`);
         | 
| 2970 2975 | 
             
                    }
         | 
| 2971 | 
            -
                  }).filter( | 
| 2976 | 
            +
                  }).filter(isDefined7);
         | 
| 2972 2977 | 
             
                  const worldAbi3 = (metadataWorldAbi.length ? metadataWorldAbi : functions.map((func) => `function ${func.signature}`)).map((sig) => {
         | 
| 2973 2978 | 
             
                    try {
         | 
| 2974 2979 | 
             
                      return parseAbiItem(sig);
         | 
| 2975 2980 | 
             
                    } catch {
         | 
| 2976 2981 | 
             
                      debug3(`Skipping invalid world signature: ${sig}`);
         | 
| 2977 2982 | 
             
                    }
         | 
| 2978 | 
            -
                  }).filter( | 
| 2983 | 
            +
                  }).filter(isDefined7);
         | 
| 2979 2984 | 
             
                  return {
         | 
| 2980 2985 | 
             
                    namespaceId,
         | 
| 2981 2986 | 
             
                    namespaceLabel: labels[namespaceId] ?? namespace,
         | 
| @@ -3154,4 +3159,4 @@ var commands = [ | |
| 3154 3159 | 
             
            export {
         | 
| 3155 3160 | 
             
              commands
         | 
| 3156 3161 | 
             
            };
         | 
| 3157 | 
            -
            //# sourceMappingURL=commands- | 
| 3162 | 
            +
            //# sourceMappingURL=commands-LIFHLRCS.js.map
         |