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? :)
npm run-script
adds a bunch of environment variables when running scripts. Ideally, runningnpx
will enrich the environment before execution, so both child processes and-c
scripts run as if they were called byrun-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? :)