Skip to content

Conversation

@lorisleiva
Copy link
Member

@lorisleiva lorisleiva commented Feb 3, 2025

This PR changes the way we export CLI binaries by using CJS instead of ESM so that dynamically importing modules (e.g. JavaScript config files or visitors) works for both CJS and ESM modules.

It also improves the error handling when failing to import a module.

@changeset-bot
Copy link

changeset-bot bot commented Feb 3, 2025

🦋 Changeset detected

Latest commit: 00efbb4

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

This PR includes changesets to release 17 packages
Name Type
codama Patch
@codama/errors Patch
@codama/cli Patch
@codama/dynamic-codecs Patch
@codama/dynamic-parsers Patch
@codama/nodes-from-anchor Patch
@codama/nodes Patch
@codama/renderers-core Patch
@codama/renderers-js-umi Patch
@codama/renderers-js Patch
@codama/renderers-rust Patch
@codama/renderers-vixen-parser Patch
@codama/validators Patch
@codama/visitors-core Patch
@codama/visitors Patch
@codama/renderers Patch
@codama/node-types 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 lorisleiva merged commit 4ceeb5e into main Feb 3, 2025
4 checks passed
@lorisleiva lorisleiva deleted the loris/cli-improvements branch February 3, 2025 12:11
@github-actions github-actions bot mentioned this pull request Feb 3, 2025
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.

2 participants