Skip to content

Commit ae1912e

Browse files
committed
t push
Merge branch 'master' of github.com:facebook/fbkpm
2 parents b2254b4 + ddb8bed commit ae1912e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fbkpm",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"license": "BSD-3-Clause",
55
"preferGlobal": true,
66
"main": "./index.js",

src/registries/npm.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ export default class NpmRegistry extends Registry {
4848
path.join(userHome, ".npmrc"),
4949
path.join(this.cwd, ".npmrc"),
5050
];
51+
let foldersFromRootToCwd = this.cwd.split(path.sep);
52+
while (foldersFromRootToCwd.length > 1) {
53+
possibles.push(path.join(foldersFromRootToCwd.join(path.sep), ".npmrc"));
54+
foldersFromRootToCwd.pop();
55+
}
5156

5257
this.mergeEnv("npm_config_");
5358

0 commit comments

Comments
 (0)