Add command line tool from npm package to environment #793
-
I'm currently evaluating So let's say I want to use firebase-tools.
or
but can I also make it available in the current environment as if it was installed globally?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
I believe this would be: |
Beta Was this translation helpful? Give feedback.
-
This would be a neat feature for sure. One way would be to allow firebase() {
npx -- firebase "$@"
} Could be defined inside that working directory. This isn’t ideal since it means the tool only works at your prompt and not deeper, but it may be enough for your needs. Another way would be to make a shim env:
PATH: {{srcroot}}/.bin:${{PATH} A third (more official) way is to package firebase for the pantry, we've already done this for a few npm packages and have no issue adding such things. I would like if npm (etc) tools could be added to the dev env automatically since this is part of the appeal of |
Beta Was this translation helpful? Give feedback.
At least for
firebase
there is now a solution: this is packaged as google.com/firebase-tools.