Skip to content

Commit

Permalink
Add support for NPM_CONFIG_USERCONFIG env variable - fixes yarnpkg#1512
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian McKenzie committed Oct 27, 2016
1 parent 484f05a commit e207009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/registries/npm-registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default class NpmRegistry extends Registry {
async getPossibleConfigLocations(filename: string): Promise<Array<[boolean, string, string]>> {
const possibles = [
[false, path.join(this.cwd, filename)],
[true, path.join(userHome, filename)],
[true, this.config.userconfig || path.join(userHome, filename)],
[false, path.join(getGlobalPrefix(), filename)],
];

Expand Down

0 comments on commit e207009

Please sign in to comment.