@latticexyz/cli 2.0.0-alpha.88 → 2.0.0-alpha.89

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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  deploy,
3
3
  logError
4
- } from "./chunk-XRLENQAU.js";
4
+ } from "./chunk-AG7LVPVF.js";
5
5
  import {
6
6
  execLog
7
7
  } from "./chunk-VQTZJIFF.js";
@@ -17,10 +17,10 @@ import {
17
17
  renderList,
18
18
  renderedSolidityHeader,
19
19
  tablegen
20
- } from "./chunk-K25KS5QJ.js";
20
+ } from "./chunk-RHW6LAL3.js";
21
21
  import {
22
22
  tsgen
23
- } from "./chunk-SADK4UCO.js";
23
+ } from "./chunk-6V563IAZ.js";
24
24
  import {
25
25
  formatAndWriteSolidity
26
26
  } from "./chunk-SKNB74MT.js";
@@ -3498,10 +3498,10 @@ async function worldgen(config, existingContracts, outputBaseDirectory) {
3498
3498
  usedInPath: worldgenBaseDirectory
3499
3499
  }));
3500
3500
  const systemInterfaceName = `I${system.basename}`;
3501
- const { fileSelector } = config.systems[system.basename];
3501
+ const { name } = config.systems[system.basename];
3502
3502
  const output2 = renderSystemInterface({
3503
3503
  name: systemInterfaceName,
3504
- functionPrefix: config.namespace === "" ? "" : `${config.namespace}_${fileSelector}_`,
3504
+ functionPrefix: config.namespace === "" ? "" : `${config.namespace}_${name}_`,
3505
3505
  functions,
3506
3506
  imports
3507
3507
  });
@@ -3565,7 +3565,7 @@ import { MUDError as MUDError3 } from "@latticexyz/config";
3565
3565
  // package.json
3566
3566
  var package_default = {
3567
3567
  name: "@latticexyz/cli",
3568
- version: "2.0.0-alpha.88+4fcf6eba",
3568
+ version: "2.0.0-alpha.89+53df4745",
3569
3569
  description: "Command line interface for mud",
3570
3570
  main: "dist/index.js",
3571
3571
  types: "dist/index.d.ts",
@@ -3605,13 +3605,13 @@ var package_default = {
3605
3605
  "@ethersproject/providers": "^5.7.2",
3606
3606
  "@improbable-eng/grpc-web": "^0.15.0",
3607
3607
  "@improbable-eng/grpc-web-node-http-transport": "^0.15.0",
3608
- "@latticexyz/config": "2.0.0-alpha.88+4fcf6eba",
3609
- "@latticexyz/schema-type": "2.0.0-alpha.88+4fcf6eba",
3610
- "@latticexyz/services": "2.0.0-alpha.88+4fcf6eba",
3611
- "@latticexyz/solecs": "2.0.0-alpha.88+4fcf6eba",
3612
- "@latticexyz/std-contracts": "2.0.0-alpha.88+4fcf6eba",
3613
- "@latticexyz/store": "2.0.0-alpha.88+4fcf6eba",
3614
- "@latticexyz/world": "2.0.0-alpha.88+4fcf6eba",
3608
+ "@latticexyz/config": "2.0.0-alpha.89+53df4745",
3609
+ "@latticexyz/schema-type": "2.0.0-alpha.89+53df4745",
3610
+ "@latticexyz/services": "2.0.0-alpha.89+53df4745",
3611
+ "@latticexyz/solecs": "2.0.0-alpha.89+53df4745",
3612
+ "@latticexyz/std-contracts": "2.0.0-alpha.89+53df4745",
3613
+ "@latticexyz/store": "2.0.0-alpha.89+53df4745",
3614
+ "@latticexyz/world": "2.0.0-alpha.89+53df4745",
3615
3615
  "@solidity-parser/parser": "^0.16.0",
3616
3616
  "@typechain/ethers-v5": "^10.2.0",
3617
3617
  chalk: "^5.0.1",
@@ -3635,7 +3635,7 @@ var package_default = {
3635
3635
  zod: "^3.21.4",
3636
3636
  "zod-validation-error": "^1.3.0"
3637
3637
  },
3638
- gitHead: "4fcf6eba5e602ec6e07c69fc6f975d857547522e"
3638
+ gitHead: "53df4745449015c8b09e0a234fa6ba2dcba4577b"
3639
3639
  };
3640
3640
 
3641
3641
  // src/commands/set-version.ts
@@ -224,7 +224,7 @@ function getRecsV1TableOptions(config) {
224
224
  continue;
225
225
  const staticResourceData = {
226
226
  namespace: config.namespace,
227
- fileSelector: tableData.fileSelector
227
+ name: tableData.name
228
228
  };
229
229
  tableOptions.push({
230
230
  tableName,
@@ -253,12 +253,12 @@ export function defineContractComponents(world: World) {
253
253
  `;
254
254
  }
255
255
  function renderDefineComponent(table) {
256
- const { namespace, fileSelector } = table.staticResourceData;
256
+ const { namespace, name } = table.staticResourceData;
257
257
  return `
258
258
  (() => {
259
- const tableId = new TableId("${namespace}", "${fileSelector}");
259
+ const tableId = new TableId("${namespace}", "${name}");
260
260
  return defineComponent(world, {
261
- ${table.fields.map(({ name, recsTypeString }) => `${name}: ${recsTypeString},`).join("")}
261
+ ${table.fields.map(({ name: name2, recsTypeString }) => `${name2}: ${recsTypeString},`).join("")}
262
262
  }, {
263
263
  metadata: { contractId: tableId.toHexString(), tableId: tableId.toString() },
264
264
  });