dominictarr / rc

The non-configurable configuration loader for lazy people.
Other
1.02k stars 97 forks source link

Making rc more configurable #92

Closed zkochan closed 7 years ago

zkochan commented 7 years ago

We use rc for pnpm but we need the configs look exactly as they do with npm. Would you consider making rc more configurable to allow us rewrite some of the things?

Currently we need the possibility to use --userconfig instead of --config as the parameter for the config file. Related issue at pnpm https://github.com/pnpm/pnpm/issues/40. Can this be made configurable?

Also rc currently uses the ${appname}_ prefix for env variables. It would be great to be able to specify this prefix as we need the npm_config_ prefix instead.

dominictarr commented 7 years ago

Aha, well you should just use the config module that npm uses. https://www.npmjs.com/package/npm-config then you'll catch all the weird edgecases that npm uses for legacy reasons, but most importantly you'll do exactly what npm does.

zkochan commented 7 years ago

yeah, maybe we'll do just that