Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jmrossy
Copy link

@jmrossy jmrossy commented Apr 1, 2024

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

Copy link

changeset-bot bot commented Apr 1, 2024

🦋 Changeset detected

Latest commit: 302134a

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

Copy link

@nbayindirli nbayindirli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

jmrossy added a commit to hyperlane-xyz/hyperlane-monorepo that referenced this pull request Apr 9, 2024
### Description

- Reconfigure tsconfig and package.json for the utils, core, sdk, and helloworld packages
- Update imports to use ESM syntax
- Add patch for typechain to address [issue 898](dethcrypto/TypeChain#898)

### Drive-by changes

Improve package Readme content

### Related issues

Fixes #1354

### Backward compatibility

No: package consumers using CJS will need to modify their imports or
update to ESM. See [this popular
gist](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#pure-esm-package)
for details.

### Testing

- [x] CI test coverage which invokes a lot of code via the CLI e2e
- [x] Manually test in Warp UI by copying packages
- [x] Publish beta packages and test in a few popular bundlers
yorhodes pushed a commit to hyperlane-xyz/hyperlane-monorepo that referenced this pull request Apr 14, 2024
### Description

- Reconfigure tsconfig and package.json for the utils, core, sdk, and helloworld packages
- Update imports to use ESM syntax
- Add patch for typechain to address [issue 898](dethcrypto/TypeChain#898)

### Drive-by changes

Improve package Readme content

### Related issues

Fixes #1354

### Backward compatibility

No: package consumers using CJS will need to modify their imports or
update to ESM. See [this popular
gist](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#pure-esm-package)
for details.

### Testing

- [x] CI test coverage which invokes a lot of code via the CLI e2e
- [x] Manually test in Warp UI by copying packages
- [x] Publish beta packages and test in a few popular bundlers
letonchanh pushed a commit to letonchanh/hyperlane-monorepo that referenced this pull request Apr 25, 2024
### Description

- Reconfigure tsconfig and package.json for the utils, core, sdk, and helloworld packages
- Update imports to use ESM syntax
- Add patch for typechain to address [issue 898](dethcrypto/TypeChain#898)

### Drive-by changes

Improve package Readme content

### Related issues

Fixes hyperlane-xyz#1354

### Backward compatibility

No: package consumers using CJS will need to modify their imports or
update to ESM. See [this popular
gist](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#pure-esm-package)
for details.

### Testing

- [x] CI test coverage which invokes a lot of code via the CLI e2e
- [x] Manually test in Warp UI by copying packages
- [x] Publish beta packages and test in a few popular bundlers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants