[FR]: 'include_npx' for js_binary #1213
Labels
enhancement
New feature or request
funding needed
Contribute to https://opencollective.com/aspect-build
help wanted
Aspect isn't prioritizing this, but the community could
What is the current behavior?
There's currently an
include_npm
attribute for js_binary (https://github.com/aspect-build/rules_js/blob/main/docs/js_binary.md#js_binary-include_npm) to include the npm executable, which is great.However, I'm using a package called icon-font-buildr which actually spawns
npx
at runtime. Currently I'm getting away with this because our CI machine has Node/npm/npx installed so I'm using the system path for it, but would ideally like to get this to work with RBE and systems that don't have Node already.Describe the feature
Wondering if it would be possible to add an
include_npx
attribute for js_binary?Or perhaps it would be better to just add a symlink for
npx
wheninclude_npm
is true? Thoughts?The text was updated successfully, but these errors were encountered: