Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CLI working without an extension #183

Merged
merged 5 commits into from
Dec 10, 2024

Conversation

zzorba
Copy link
Collaborator

@zzorba zzorba commented Dec 9, 2024

No description provided.

@zzorba zzorba changed the title Dsalinas/fix cli without extension Fix CLI working without an extension Dec 9, 2024
@zzorba zzorba force-pushed the dsalinas/fix_cli_without_extension branch from e35982e to 75c1194 Compare December 9, 2024 15:46
@kraenhansen
Copy link
Contributor

kraenhansen commented Dec 9, 2024

It would be sad if the package can't be ESM, just because of this 🤔
How about:

  • pointing to the bin/cli.cjs file,
  • delete the bin/cli file completely
  • prepend the Node shebang (#!/usr/bin/env node) to bin/cli.cjs

@zzorba zzorba requested a review from jhugman December 9, 2024 18:40
Copy link
Owner

@jhugman jhugman left a comment

Choose a reason for hiding this comment

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

This looks fine.

You should also add the .cjs to https://github.com/jhugman/uniffi-bindgen-react-native/blob/main/scripts/test-turbo-modules.sh#L71 and https://github.com/jhugman/uniffi-bindgen-react-native/blob/main/bin/cli.cjs#L35.

I'll approve this now so as not to wait for another round of feedback.

@kraenhansen
Copy link
Contributor

LGTM! :shipit:

@jhugman jhugman merged commit 28ec914 into main Dec 10, 2024
18 checks passed
@jhugman jhugman deleted the dsalinas/fix_cli_without_extension branch December 10, 2024 19:05
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