solana-program / create-solana-program

pnpm create solana-program
Apache License 2.0
72 stars 9 forks source link

Mark the generated client as an ES Module #21

Closed steveluscher closed 6 months ago

steveluscher commented 6 months ago

Without this, you essentially can't import generated clients into a project that, itself, is an ESModule.

changeset-bot[bot] commented 6 months ago

🦋 Changeset detected

Latest commit: d358ee65ecaef77fc28e8f44bd5009c0ce236fb3

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

This PR includes changesets to release 1 package | Name | Type | | --------------------- | ----- | | create-solana-program | 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

lorisleiva commented 6 months ago

The tests are failing I'm afraid. It might be best to change the build script to export .mjs files for ESM instead.

steveluscher commented 6 months ago

How about now?