zkat / npx

execute npm package binaries (moved)
https://github.com/npm/npx
Other
2.63k stars 105 forks source link

Add run-script-style env vars #3

Closed zkat closed 7 years ago

zkat commented 7 years ago

npm run-script adds a bunch of environment variables when running scripts. Ideally, running npx will enrich the environment before execution, so both child processes and -c scripts run as if they were called by run-script.

This one's probably a bit of a doozy, since I think it might require yanking out npm's config monstrosity. But hey, if it's a good motivation to do that thing we're already intending to do, hooray? :)