Skip to content

Fix npx CLI issue by using a more robust entrypoint#15

Merged
lorisleiva merged 1 commit intomainfrom
loris/cli-entrypoint
Apr 29, 2025
Merged

Fix npx CLI issue by using a more robust entrypoint#15
lorisleiva merged 1 commit intomainfrom
loris/cli-entrypoint

Conversation

@lorisleiva
Copy link
Member

@lorisleiva lorisleiva commented Apr 29, 2025

The current CLI export works with pnpx ... but not npx .... This PR aims to fix this by exporting a static bin/cli.cjs executable script that make use of the built CLI instead of using the built files directly.

It also mimics the createProgram pattern introduced in the Codama CLI for consistency and better testability in the future.

@lorisleiva lorisleiva merged commit 3666961 into main Apr 29, 2025
8 of 9 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.

1 participant