dethcrypto / TypeChain

🔌 TypeScript bindings for Ethereum smart contracts
MIT License
2.76k stars 365 forks source link

Fix for barrel file codegen of type-only files #898

Open jmrossy opened 7 months ago

jmrossy commented 7 months ago

Fix the import syntax for barrel file imports referring to type-only files. Fixes a problem with ESM compatibility when using the --node16-modules flag.

A follow-up to fix #848

See related comments here and here

changeset-bot[bot] commented 7 months ago

🦋 Changeset detected

Latest commit: 302134acbfd8b8b297c3becb27714eb027bc53de

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages | Name | Type | | --------------------- | ----- | | typechain | Patch | | @typechain/hardhat | Patch | | @typechain/ethers-v5 | Patch | | @typechain/ethers-v6 | Patch | | @typechain/starknet | Patch | | @typechain/truffle-v5 | Patch | | @typechain/web3-v1 | Patch | | test-e2e | Patch | | example-truffle-v5 | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR