feat: introduce 'location' parameter for npm config command by nlf · Pull Request #3471 · npm/cli (original) (raw)

this may incite some further bike shedding, both for the name of the parameter and its allowed values. for now, i elected to take the simplest solution of having one location parameter instead of making it specific to the use (i.e. --config-location) and for the values i went with what @npmcli/config uses since it means i can just pass the config straight through.

it may warrant some further documentation about exactly what files each value refers to, but i wasn't sure where the appropriate place to put that was so this is a starting point to push the discussion along.