@latticexyz/cli 2.2.22-03af917786370b8251542adb3d53099aa85e754f → 2.2.22-091ece6264dd4cdbdc21ea3d22347a6f1043a6a3

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