Skip to content

Commit

Permalink
fix(store,world): explicit mud.config exports (#1900)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Nov 10, 2023
1 parent 22ea2c5 commit b2d2aa7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .changeset/lovely-bobcats-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@latticexyz/store": patch
"@latticexyz/world": patch
---

Added an explicit package export for `mud.config`
2 changes: 1 addition & 1 deletion packages/cli/src/commands/trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { cast, getRpcUrl, getSrcDirectory } from "@latticexyz/common/foundry";
import { StoreConfig } from "@latticexyz/store";
import { resolveWorldConfig, WorldConfig } from "@latticexyz/world";
import IBaseWorldAbi from "@latticexyz/world/out/IBaseWorld.sol/IBaseWorld.abi.json" assert { type: "json" };
import worldConfig from "@latticexyz/world/mud.config.js";
import worldConfig from "@latticexyz/world/mud.config";
import { resourceToHex } from "@latticexyz/common";
import { getExistingContracts } from "../utils/getExistingContracts";
import { createClient, http } from "viem";
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/deploy/common.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Abi, Address, Hex, padHex } from "viem";
import storeConfig from "@latticexyz/store/mud.config.js";
import worldConfig from "@latticexyz/world/mud.config.js";
import storeConfig from "@latticexyz/store/mud.config";
import worldConfig from "@latticexyz/world/mud.config";
import IBaseWorldAbi from "@latticexyz/world/out/IBaseWorld.sol/IBaseWorld.abi.json" assert { type: "json" };
import IModuleAbi from "@latticexyz/world-modules/out/IModule.sol/IModule.abi.json" assert { type: "json" };
import { Tables, configToTables } from "./configToTables";
Expand Down
4 changes: 2 additions & 2 deletions packages/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"type": "module",
"exports": {
".": "./dist/ts/index.js",
"./mud.config": "./dist/mud.config.js",
"./codegen": "./dist/ts/codegen/index.js",
"./config": "./dist/ts/config/index.js",
"./register": "./dist/ts/register/index.js",
"./out/*": "./out/*",
"./*": "./dist/*"
"./out/*": "./out/*"
},
"typesVersions": {
"*": {
Expand Down
4 changes: 2 additions & 2 deletions packages/world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"type": "module",
"exports": {
".": "./dist/ts/index.js",
"./mud.config": "./dist/mud.config.js",
"./register": "./dist/ts/register/index.js",
"./node": "./dist/ts/node/index.js",
"./out/*": "./out/*",
"./*": "./dist/*"
"./out/*": "./out/*"
},
"typesVersions": {
"*": {
Expand Down

0 comments on commit b2d2aa7

Please sign in to comment.