From 7fe7f86658798db6667df89afc75588c0e43bc94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Thu, 1 Jun 2017 21:47:36 -0700 Subject: build: get npm to write the builtin config even if npm binary name changes --- lib/build.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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) { -- cgit v1.2.3