-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
docs: recommend using libexec.glob() for symlinking binaries from npm modules
#21318
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
docs: recommend using libexec.glob() for symlinking binaries from npm modules
#21318
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the documentation to recommend using the libexec.glob() method instead of Dir[] for symlinking binaries from npm modules, aligning with patterns used in newer npm module formulae.
- Changes the recommended approach for symlinking npm module executables from
Dir["#{libexec}/bin/*"]tolibexec.glob("bin/*")
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
While inspecting several npm module formulae, I noticed cases where Since calling |
Reflect the pattern commonly used in newer npm module formulae
ff36750 to
6fd5326
Compare
|
CI failed due to timeout |
ZhongRuoyu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
If we're going this route, we should also update brew/Library/Homebrew/formula_creator.rb Lines 244 to 246 in ff14abc
|
Yup 👍🏻 |
This reflecting documentation changes from Node-for-Formula-Authors.md
098ac73 to
e71dfda
Compare
|
@p-linnane It has been fixed in e71dfda. |
p-linnane
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Reflect the pattern commonly used in newer npm module formulae
brew lgtm(style, typechecking and tests) with your changes locally?