diff --git a/.changeset/lovely-bobcats-joke.md b/.changeset/lovely-bobcats-joke.md new file mode 100644 index 0000000000..d7a8ef0c62 --- /dev/null +++ b/.changeset/lovely-bobcats-joke.md @@ -0,0 +1,6 @@ +--- +"@latticexyz/store": patch +"@latticexyz/world": patch +--- + +Added an explicit package export for `mud.config` diff --git a/packages/cli/src/commands/trace.ts b/packages/cli/src/commands/trace.ts index 2c7f5b3eee..e6d55a9ece 100644 --- a/packages/cli/src/commands/trace.ts +++ b/packages/cli/src/commands/trace.ts @@ -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"; diff --git a/packages/cli/src/deploy/common.ts b/packages/cli/src/deploy/common.ts index 26a81638dd..298a109c92 100644 --- a/packages/cli/src/deploy/common.ts +++ b/packages/cli/src/deploy/common.ts @@ -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"; diff --git a/packages/store/package.json b/packages/store/package.json index 2eb5299df0..ae7c667b95 100644 --- a/packages/store/package.json +++ b/packages/store/package.json @@ -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": { "*": { diff --git a/packages/world/package.json b/packages/world/package.json index 87b97d9e94..e02e2082bf 100644 --- a/packages/world/package.json +++ b/packages/world/package.json @@ -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": { "*": {