-
Notifications
You must be signed in to change notification settings - Fork 129
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
scripts defined in bin are not added to the node_modules/.bin directory #636
Comments
I'm not a contributor but I found this code that creates a modified version of the package.json for npm compatibility purpose. It doesn't actually change the package.json file you upload, it just creates another version (that overrides your file) when request by an npm client. The doc does slightly touch this concept here I think we can ask them to add the |
hi @dsherret, is this something the team is working on or we should add a repro here? |
Thanks for pointing out the docs @tungv, looks like this is the step where the package json for npm is generated. Definitely having the bin included in there would be great. I can create a repro later on today but probably is not needed due to the clear nature of the issue, @dsherret let me know if needed and I'll provide it, thanks a lot |
Duplicate of #157 |
When publishing packages to the jsr package registry, it appears that the package.json is being modified, and several fields are being stripped out, including the crucial bin field. This behavior affects the usability of packages intended to provide command-line tools or executables. I couldn't find any information about this behavior in jsr docs, am I missing something?
The text was updated successfully, but these errors were encountered: