diff options
author | Kat Marchán <kzm@sykosomatic.org> | 2017-06-02 07:47:36 +0300 |
---|---|---|
committer | Kat Marchán <kzm@sykosomatic.org> | 2017-06-02 07:47:36 +0300 |
commit | 7fe7f86658798db6667df89afc75588c0e43bc94 (patch) | |
tree | 4a299229da9d8905b3f30a86564025c0889d811f /lib | |
parent | 85ea1e0b9478551265d03d545e7dc750b9edf547 (diff) |
build: get npm to write the builtin config even if npm binary name changes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/build.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/build.js b/lib/build.js index 5dd243a79..c2acc0066 100644 --- a/lib/build.js +++ b/lib/build.js @@ -79,7 +79,8 @@ var writeBuiltinConf = build.writeBuiltinConf = function (pkg, folder, cb) { var parent = path.dirname(folder) var dir = npm.globalDir - if (pkg.name !== 'npm' || + // Make this count for canary, too + if ((pkg.name !== 'npm' && pkg.name !== 'npmc') || !npm.config.get('global') || !npm.config.usingBuiltin || dir !== parent) { |