codama-idl / codama

Generate clients, CLIs, documentation and more from your Solana programs
MIT License
73 stars 16 forks source link

feat: support verbatimModuleSyntax for renderers-js #48

Closed lithdew closed 4 months ago

lithdew commented 4 months ago

Prefix type-only imports with 'type' for renderers-js so that generated code is compliant with the 'verbatimModuleSyntax' option.

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: 78d2841cff78e846c7c70056721931d9346e4b33

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

This PR includes changesets to release 2 packages | Name | Type | | ----------------------- | ----- | | @kinobi-so/renderers-js | Patch | | @kinobi-so/renderers | 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

lithdew commented 4 months ago

All tests are passing on my side, and the E2E test generated output is compliant with "verbatimModuleSyntax". tsconfig.json for E2E tests includes "verbatimModuleSyntax": true.

image
lithdew commented 4 months ago

👍 Ran prettier lint and added a patch changeset for renderers-js.