Skip to content

Conversation

@lorisleiva
Copy link
Member

@lorisleiva lorisleiva commented Dec 2, 2025

This PR uses the latest version of the Rust renderer that accepts a new packageFolder option. When that option is provided, we can auto-resolve Prettier configurations (instead of manually parsing and passing them to the renderer) and synchronise package.json dependencies based on the renderer requirements.

In this PR, I make use of all these new features for the JS client of the System program and change the Prettier options so it uses the ones defined in the @solana/prettier-config-solana. That way, we keep all our JS linting consistent with the rest of the Solana ecosystem. This unfortunately means a lot of the changes in that PR are linting changes.

See codama-idl/renderers-js#70 and codama-idl/renderers-js#81 for more details on the new JS renderer features.

@lorisleiva lorisleiva marked this pull request as draft December 2, 2025 14:29
@lorisleiva lorisleiva marked this pull request as ready for review December 3, 2025 12:28
@lorisleiva lorisleiva changed the title Bump JS renderer and use new syncPackageJson option Use new JS renderer syncPackageJson and Prettier auto-resolve features Dec 3, 2025
@lorisleiva lorisleiva requested a review from joncinque December 4, 2025 16:32
Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Tough to really review closely, but most of the changes appear to just be white-space / formatting. Let's ship!

@lorisleiva lorisleiva merged commit 2b1126d into main Dec 4, 2025
5 checks passed
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.

3 participants