diff --git a/.changeset/happy-guests-add.md b/.changeset/happy-guests-add.md new file mode 100644 index 0000000000..73b63b9d42 --- /dev/null +++ b/.changeset/happy-guests-add.md @@ -0,0 +1,5 @@ +--- +"@latticexyz/world-modules": patch +--- + +Exported mud config as internal. diff --git a/packages/world-modules/package.json b/packages/world-modules/package.json index 09b2e392db..6875d686b1 100644 --- a/packages/world-modules/package.json +++ b/packages/world-modules/package.json @@ -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", diff --git a/packages/world-modules/tsup.config.ts b/packages/world-modules/tsup.config.ts index b9ae6d4212..997df67bba 100644 --- a/packages/world-modules/tsup.config.ts +++ b/packages/world-modules/tsup.config.ts @@ -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,