From f1f88e4443d0d25b0d904caaf8f01fa639d2b120 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Wed, 9 May 2018 09:35:02 +0200
Subject: [PATCH] fix: always write config.npmrc

---
 lib/manager/npm/post-update/index.js | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/lib/manager/npm/post-update/index.js b/lib/manager/npm/post-update/index.js
index 2b02d520c3..d662465ff6 100644
--- a/lib/manager/npm/post-update/index.js
+++ b/lib/manager/npm/post-update/index.js
@@ -170,12 +170,7 @@ async function writeExistingFiles(config, packageFiles) {
     if (packageFile.npmrc) {
       logger.debug(`Writing .npmrc to ${basedir}`);
       await fs.outputFile(upath.join(basedir, '.npmrc'), packageFile.npmrc);
-    } else if (
-      config.npmrc &&
-      (packageFile.hasYarnLock ||
-        packageFile.hasPackageLock ||
-        config.lernaLockFile)
-    ) {
+    } else if (config.npmrc) {
       logger.debug('Writing repo .npmrc to package file dir');
       await fs.outputFile(upath.join(basedir, '.npmrc'), config.npmrc);
     }
-- 
GitLab