Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2017-06-02 07:47:36 +0300
committerKat Marchán <kzm@sykosomatic.org>2017-06-02 07:47:36 +0300
commit7fe7f86658798db6667df89afc75588c0e43bc94 (patch)
tree4a299229da9d8905b3f30a86564025c0889d811f /lib
parent85ea1e0b9478551265d03d545e7dc750b9edf547 (diff)
build: get npm to write the builtin config even if npm binary name changes
Diffstat (limited to 'lib')
-rw-r--r--lib/build.js3
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) {