Skip to content

Commit

Permalink
Create chatty-frogs-smash.md
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored May 10, 2024
1 parent fb733f1 commit 3db3439
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .changeset/chatty-frogs-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
"@latticexyz/cli": patch
"@latticexyz/world": patch
---

Worlds can now be deployed with external modules, defined by a module's `artifactPath` in your MUD config, resolved with Node's module resolution. This allows for modules to be published to and imported from npm.

```diff
defineWorld({
// …
modules: [
{
- name: "KeysWithValueModule",
+ artifactPath: "@latticexyz/world-modules/out/KeysWithValueModule.sol/KeysWithValueModule.json",
root: true,
args: [resolveTableId("Inventory")],
},
],
});
```

Note that the above assumes `@latticexyz/world-modules` is included as a dependency of your project.

0 comments on commit 3db3439

Please sign in to comment.