Skip to content

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
@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.

4 participants