Re:Show HN: Run NPM Scripts with .envs
by kraenhansen on Wednesday January 26, 2022 @05:02AM
(#30083652)
Thanks for sharing this. Thats sure looks like a great alternative.
Fun fact: I actually lived with Casey (the maintainer) in a co-living space about 7 years ago. Small world ...
Add these two lines to the top to use node executables and load the dotenv:
``` set dotenv-load := true export PATH := "./node_modules/.bin:" + env_var('PATH') ```