We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b2254b4 + ddb8bed commit ae1912eCopy full SHA for ae1912e
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "fbkpm",
3
- "version": "0.3.0",
+ "version": "0.4.0",
4
"license": "BSD-3-Clause",
5
"preferGlobal": true,
6
"main": "./index.js",
src/registries/npm.js
@@ -48,6 +48,11 @@ export default class NpmRegistry extends Registry {
48
path.join(userHome, ".npmrc"),
49
path.join(this.cwd, ".npmrc"),
50
];
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
+ }
56
57
this.mergeEnv("npm_config_");
58
0 commit comments