diff --git a/.changeset/bright-kiwis-juggle.md b/.changeset/bright-kiwis-juggle.md new file mode 100644 index 00000000..f133db6f --- /dev/null +++ b/.changeset/bright-kiwis-juggle.md @@ -0,0 +1,7 @@ +--- +"@delvtech/evm-client": patch +"@delvtech/evm-client-ethers": patch +"@delvtech/evm-client-viem": patch +--- + +Fix type resolutions by adding a `typeVersions` field to the `package.json`s diff --git a/packages/evm-client-ethers/package.json b/packages/evm-client-ethers/package.json index 690e94ea..f4eb8ee9 100644 --- a/packages/evm-client-ethers/package.json +++ b/packages/evm-client-ethers/package.json @@ -16,6 +16,13 @@ }, "./package.json": "./package.json" }, + "typesVersions": { + "*": { + "stubs": [ + "./dist/stubs.d.ts" + ] + } + }, "scripts": { "build": "tsup", "lint": "eslint .", diff --git a/packages/evm-client-viem/package.json b/packages/evm-client-viem/package.json index 20aa6604..c2a7eef3 100644 --- a/packages/evm-client-viem/package.json +++ b/packages/evm-client-viem/package.json @@ -16,6 +16,13 @@ }, "./package.json": "./package.json" }, + "typesVersions": { + "*": { + "stubs": [ + "./dist/stubs.d.ts" + ] + } + }, "scripts": { "build": "tsup", "lint": "eslint .", diff --git a/packages/evm-client/package.json b/packages/evm-client/package.json index be9345ab..e31bcf98 100644 --- a/packages/evm-client/package.json +++ b/packages/evm-client/package.json @@ -30,6 +30,25 @@ }, "./package.json": "./package.json" }, + "typesVersions": { + "*": { + "cache": [ + "./dist/cache.d.ts" + ], + "contract": [ + "./dist/contract.d.ts" + ], + "errors": [ + "./dist/errors.d.ts" + ], + "network": [ + "./dist/network.d.ts" + ], + "stubs": [ + "./dist/stubs.d.ts" + ] + } + }, "scripts": { "build": "tsup", "lint": "eslint .",