Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(store,world): explicit mud.config exports #1900

Merged
merged 3 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading