From b8a97e5d66ab114ce506489ef6f56b8f934c1598 Mon Sep 17 00:00:00 2001 From: Ryan Goree Date: Mon, 12 Feb 2024 18:41:02 -0600 Subject: [PATCH 1/2] Add typeVersions field --- packages/evm-client-ethers/package.json | 7 +++++++ packages/evm-client-viem/package.json | 7 +++++++ packages/evm-client/package.json | 19 +++++++++++++++++++ 3 files changed, 33 insertions(+) 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 .", From 39cfdb7eda2a28da1901fe344657a5dc6678a62d Mon Sep 17 00:00:00 2001 From: Ryan Goree Date: Mon, 12 Feb 2024 18:44:09 -0600 Subject: [PATCH 2/2] Add changeset --- .changeset/bright-kiwis-juggle.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changeset/bright-kiwis-juggle.md 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