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(ts-bindings): package.json needs type: module #1333

Merged
merged 1 commit into from
May 21, 2024

Conversation

chadoh
Copy link
Contributor

@chadoh chadoh commented May 20, 2024

What

Since we started using module: nodenext in tsconfig.json, we need to
tell libraries that import these ones that the exported code is an ES
Module.

Why

This fixes github.com/stellar/soroban-astro-template to work with
libraries generated with soroban contract bindings typescript

Known limitations

N/A

@chadoh chadoh marked this pull request as draft May 20, 2024 20:03
Since we started using `module: nodenext` in tsconfig.json, we need to
tell libraries that import these ones that the exported code is an ES
Module.

This fixes github.com/stellar/soroban-astro-template to work with
libraries generated with `soroban contract bindings typescript`
@chadoh chadoh force-pushed the fix/package-json-needs-type-module branch from a6b35b2 to ac46671 Compare May 20, 2024 20:07
@chadoh chadoh marked this pull request as ready for review May 20, 2024 20:07
@chadoh chadoh requested a review from BlaineHeffron May 20, 2024 20:08
Copy link
Contributor

@BlaineHeffron BlaineHeffron left a comment

Choose a reason for hiding this comment

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

I just validated that it works with the astro template. Looks good.

@chadoh chadoh enabled auto-merge May 21, 2024 14:32
@chadoh chadoh merged commit 56db678 into stellar:main May 21, 2024
18 checks passed
@chadoh chadoh deleted the fix/package-json-needs-type-module branch May 21, 2024 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants