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

How to handle corepack and future command line executables in nodejs-cmd? #19

Open
samwillis opened this issue Nov 10, 2022 · 0 comments

Comments

@samwillis
Copy link
Owner

We have a separate nodejs-cmd package that is installed as an option (pip install nodejs-bin[cmd]) to get the normal command line commands for node.

Corepack is an experimental new command from Node, nodejs-cmd doesn't yet add it. It is however available on all node versions we currently plan to distribute. But it may not be in future.

There are two ways we could handle commands:

  • Have a single nodejs-cmd (as we currently do), that has support for all commands but throws an error if the installed nodejs-bin doesn't have that command available.

  • Have a separate matching nodejs-cmd version for every released nodejs-bin wheel, adding only command line commands for those that the package has. Effectively releasing two packaging for each node version.

The former is simpler, but a little messy, the latter more complex but doesn't litter unavailable commands on your path.

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

No branches or pull requests

1 participant