latticexyz / mud

MUD is a framework for building autonomous worlds
https://mud.dev
MIT License
725 stars 183 forks source link

fix(world): config uses readonly arrays #2805

Closed holic closed 5 months ago

holic commented 5 months ago

If you define a list of modules like

const modules = [...];

then later use them in your mud.config.ts, you'll get an error like this:

image

cc @0xhank

pulled out of https://github.com/latticexyz/mud/pull/2803

changeset-bot[bot] commented 5 months ago

🦋 Changeset detected

Latest commit: 9ef811908faab6c5f325b3e51f282cb938904f58

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 24 packages | Name | Type | | ----------------------------- | ----- | | @latticexyz/world | Patch | | @latticexyz/cli | Patch | | @latticexyz/dev-tools | Patch | | @latticexyz/store-sync | Patch | | @latticexyz/world-modules | Patch | | mock-game-contracts | Patch | | @latticexyz/store-indexer | Patch | | @latticexyz/abi-ts | Patch | | @latticexyz/block-logs-stream | Patch | | @latticexyz/common | Patch | | @latticexyz/config | Patch | | create-mud | Patch | | @latticexyz/faucet | Patch | | @latticexyz/gas-report | Patch | | @latticexyz/protocol-parser | Patch | | @latticexyz/query | Patch | | @latticexyz/react | Patch | | @latticexyz/recs | Patch | | @latticexyz/schema-type | Patch | | @latticexyz/services | Patch | | solhint-config-mud | Patch | | solhint-plugin-mud | Patch | | @latticexyz/store | Patch | | @latticexyz/utils | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR