Skip to content
Open
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
32 changes: 32 additions & 0 deletions .changeset/popular-buses-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
"@latticexyz/abi-ts": patch
"@latticexyz/block-logs-stream": patch
"@latticexyz/cli": patch
"@latticexyz/common": patch
"@latticexyz/config": patch
"create-mud": patch
"@latticexyz/dev-tools": patch
"@latticexyz/entrykit": patch
"@latticexyz/explorer": patch
"@latticexyz/faucet": patch
"@latticexyz/gas-report": patch
"@latticexyz/protocol-parser": patch
"@latticexyz/react": patch
"@latticexyz/recs": patch
"@latticexyz/schema-type": patch
"solhint-config-mud": patch
"solhint-plugin-mud": patch
"@latticexyz/stash": patch
"@latticexyz/store-indexer": patch
"@latticexyz/store-sync": patch
"@latticexyz/store": patch
"@latticexyz/utils": patch
"vite-plugin-mud": patch
"@latticexyz/world-module-callwithsignature": patch
"@latticexyz/world-module-erc20": patch
"@latticexyz/world-module-metadata": patch
"@latticexyz/world-modules": patch
"@latticexyz/world": patch
---

Added CJS exports alongside existing ESM exports.
11 changes: 10 additions & 1 deletion packages/abi-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@
"license": "MIT",
"type": "module",
"exports": {
"./internal": "./dist/exports/internal.js"
"./internal": {
"import": {
"import": "./dist/exports/internal.js",
"types": "./dist/exports/internal.d.ts"
},
"require": {
"require": "./dist/exports/internal.cjs",
"types": "./dist/exports/internal.d.cts"
}
}
},
"typesVersions": {
"*": {
Expand Down
11 changes: 10 additions & 1 deletion packages/block-logs-stream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@
"license": "MIT",
"type": "module",
"exports": {
".": "./dist/index.js"
".": {
"import": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"require": {
"require": "./dist/index.cjs",
"types": "./dist/index.d.cts"
}
}
},
"typesVersions": {
"*": {
Expand Down
13 changes: 11 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@
"license": "MIT",
"type": "module",
"exports": {
".": "./dist/index.js"
".": {
"import": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"require": {
"require": "./dist/index.cjs",
"types": "./dist/index.d.cts"
}
}
},
"typesVersions": {
"*": {
Expand All @@ -28,7 +37,7 @@
],
"scripts": {
"build": "pnpm run build:js && pnpm run build:test-tables",
"build:js": "tsup && chmod +x ./dist/mud.js",
"build:js": "tsup",
"build:test-tables": "tsx ./scripts/generate-test-tables.ts",
"clean": "pnpm run clean:js && pnpm run clean:test-tables",
"clean:js": "shx rm -rf dist",
Expand Down
110 changes: 100 additions & 10 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,106 @@
"license": "MIT",
"type": "module",
"exports": {
".": "./dist/index.js",
"./actions": "./dist/actions.js",
"./chains": "./dist/chains.js",
"./codegen": "./dist/codegen.js",
"./errors": "./dist/errors.js",
"./foundry": "./dist/foundry.js",
"./type-utils": "./dist/type-utils.js",
"./utils": "./dist/utils.js",
"./kms": "./dist/kms.js",
"./internal": "./dist/internal.js",
".": {
"import": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"require": {
"require": "./dist/index.cjs",
"types": "./dist/index.d.cts"
}
},
"./actions": {
"import": {
"import": "./dist/actions.js",
"types": "./dist/actions.d.ts"
},
"require": {
"require": "./dist/actions.cjs",
"types": "./dist/actions.d.cts"
}
},
"./chains": {
"import": {
"import": "./dist/chains.js",
"types": "./dist/chains.d.ts"
},
"require": {
"require": "./dist/chains.cjs",
"types": "./dist/chains.d.cts"
}
},
"./codegen": {
"import": {
"import": "./dist/codegen.js",
"types": "./dist/codegen.d.ts"
},
"require": {
"require": "./dist/codegen.cjs",
"types": "./dist/codegen.d.cts"
}
},
"./errors": {
"import": {
"import": "./dist/errors.js",
"types": "./dist/errors.d.ts"
},
"require": {
"require": "./dist/errors.cjs",
"types": "./dist/errors.d.cts"
}
},
"./foundry": {
"import": {
"import": "./dist/foundry.js",
"types": "./dist/foundry.d.ts"
},
"require": {
"require": "./dist/foundry.cjs",
"types": "./dist/foundry.d.cts"
}
},
"./type-utils": {
"import": {
"import": "./dist/type-utils.js",
"types": "./dist/type-utils.d.ts"
},
"require": {
"require": "./dist/type-utils.cjs",
"types": "./dist/type-utils.d.cts"
}
},
"./utils": {
"import": {
"import": "./dist/utils.js",
"types": "./dist/utils.d.ts"
},
"require": {
"require": "./dist/utils.cjs",
"types": "./dist/utils.d.cts"
}
},
"./kms": {
"import": {
"import": "./dist/kms.js",
"types": "./dist/kms.d.ts"
},
"require": {
"require": "./dist/kms.cjs",
"types": "./dist/kms.d.cts"
}
},
"./internal": {
"import": {
"import": "./dist/internal.js",
"types": "./dist/internal.d.ts"
},
"require": {
"require": "./dist/internal.cjs",
"types": "./dist/internal.d.cts"
}
},
"./tsconfig.base.json": "./tsconfig.base.json"
},
"typesVersions": {
Expand Down
33 changes: 30 additions & 3 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,36 @@
"license": "MIT",
"type": "module",
"exports": {
".": "./dist/index.js",
"./internal": "./dist/internal.js",
"./node": "./dist/deprecated/node.js"
".": {
"import": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"require": {
"require": "./dist/index.cjs",
"types": "./dist/index.d.cts"
}
},
"./internal": {
"import": {
"import": "./dist/internal.js",
"types": "./dist/internal.d.ts"
},
"require": {
"require": "./dist/internal.cjs",
"types": "./dist/internal.d.cts"
}
},
"./node": {
"import": {
"import": "./dist/deprecated/node.js",
"types": "./dist/deprecated/node.d.ts"
},
"require": {
"require": "./dist/deprecated/node.cjs",
"types": "./dist/deprecated/node.d.cts"
}
}
},
"typesVersions": {
"*": {
Expand Down
11 changes: 10 additions & 1 deletion packages/dev-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@
"license": "MIT",
"type": "module",
"exports": {
".": "./dist/index.js"
".": {
"import": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"require": {
"require": "./dist/index.cjs",
"types": "./dist/index.d.cts"
}
}
},
"typesVersions": {
"*": {
Expand Down
22 changes: 20 additions & 2 deletions packages/entrykit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,26 @@
"license": "MIT",
"type": "module",
"exports": {
".": "./dist/tsup/exports/index.js",
"./internal": "./dist/tsup/exports/internal.js"
".": {
"import": {
"import": "./dist/tsup/exports/index.js",
"types": "./dist/tsup/exports/index.d.ts"
},
"require": {
"require": "./dist/tsup/exports/index.cjs",
"types": "./dist/tsup/exports/index.d.cts"
}
},
"./internal": {
"import": {
"import": "./dist/tsup/exports/internal.js",
"types": "./dist/tsup/exports/internal.d.ts"
},
"require": {
"require": "./dist/tsup/exports/internal.cjs",
"types": "./dist/tsup/exports/internal.d.cts"
}
}
},
"typesVersions": {
"*": {
Expand Down
Loading
Loading