Skip to content

Commit

Permalink
fix(world-modules): explicitly export mud config (#2598)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored Apr 4, 2024
1 parent 91b0655 commit e3c3a11
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/happy-guests-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@latticexyz/world-modules": patch
---

Exported mud config as internal.
11 changes: 9 additions & 2 deletions packages/world-modules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,15 @@
"license": "MIT",
"type": "module",
"exports": {
"./out/*": "./out/*",
"./*": "./dist/*"
"./internal/mud.config": "./dist/mud.config.js",
"./out/*": "./out/*"
},
"typesVersions": {
"*": {
"internal/mud.config": [
"./mud.config.ts"
]
}
},
"scripts": {
"build": "pnpm run build:mud && pnpm run build:abi && pnpm run build:abi-ts && pnpm run build:js",
Expand Down
4 changes: 3 additions & 1 deletion packages/world-modules/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { defineConfig } from "tsup";

export default defineConfig({
entry: ["mud.config.ts"],
entry: {
"mud.config": "mud.config.ts",
},
target: "esnext",
format: ["esm"],
dts: true,
Expand Down

0 comments on commit e3c3a11

Please sign in to comment.