diff --git a/lib/manager/npm/extract/__snapshots__/index.spec.ts.snap b/lib/manager/npm/extract/__snapshots__/index.spec.ts.snap
index a00e9bb99c958e30a9d066973438c6cdf261e30d..035deb0bc166f3045cc0dbdffa8c1d79f32f1686 100644
--- a/lib/manager/npm/extract/__snapshots__/index.spec.ts.snap
+++ b/lib/manager/npm/extract/__snapshots__/index.spec.ts.snap
@@ -18,6 +18,7 @@ Object {
   },
   "npmLock": undefined,
   "npmrc": undefined,
+  "packageFile": "package.json",
   "packageFileVersion": undefined,
   "packageJsonName": undefined,
   "packageJsonType": "app",
@@ -141,6 +142,7 @@ Object {
   },
   "npmLock": undefined,
   "npmrc": undefined,
+  "packageFile": "package.json",
   "packageFileVersion": undefined,
   "packageJsonName": undefined,
   "packageJsonType": "library",
@@ -304,6 +306,7 @@ Object {
   },
   "npmLock": undefined,
   "npmrc": undefined,
+  "packageFile": "package.json",
   "packageFileVersion": undefined,
   "packageJsonName": undefined,
   "packageJsonType": "app",
@@ -353,6 +356,7 @@ Object {
   },
   "npmLock": undefined,
   "npmrc": undefined,
+  "packageFile": "package.json",
   "packageFileVersion": undefined,
   "packageJsonName": undefined,
   "packageJsonType": "app",
@@ -413,6 +417,7 @@ Object {
   },
   "npmLock": undefined,
   "npmrc": undefined,
+  "packageFile": "package.json",
   "packageFileVersion": undefined,
   "packageJsonName": undefined,
   "packageJsonType": "library",
@@ -467,6 +472,7 @@ Object {
   },
   "npmLock": undefined,
   "npmrc": undefined,
+  "packageFile": "package.json",
   "packageFileVersion": undefined,
   "packageJsonName": undefined,
   "packageJsonType": "library",
@@ -603,6 +609,7 @@ Object {
   },
   "npmLock": undefined,
   "npmrc": undefined,
+  "packageFile": "package.json",
   "packageFileVersion": "1.0.0",
   "packageJsonName": "renovate",
   "packageJsonType": "app",
@@ -739,6 +746,7 @@ Object {
   },
   "npmLock": undefined,
   "npmrc": undefined,
+  "packageFile": "package.json",
   "packageFileVersion": "1.0.0",
   "packageJsonName": "renovate",
   "packageJsonType": "app",
@@ -875,6 +883,7 @@ Object {
   },
   "npmLock": undefined,
   "npmrc": undefined,
+  "packageFile": "package.json",
   "packageFileVersion": "1.0.0",
   "packageJsonName": "renovate",
   "packageJsonType": "app",
@@ -897,6 +906,7 @@ Object {
   },
   "npmLock": undefined,
   "npmrc": undefined,
+  "packageFile": "package.json",
   "packageFileVersion": "0.0.8",
   "packageJsonName": "@a/b",
   "packageJsonType": "app",
@@ -1035,6 +1045,7 @@ Object {
   },
   "npmLock": undefined,
   "npmrc": undefined,
+  "packageFile": "package.json",
   "packageFileVersion": "1.0.0",
   "packageJsonName": "renovate",
   "packageJsonType": "app",
@@ -1057,6 +1068,7 @@ Object {
   },
   "npmLock": undefined,
   "npmrc": undefined,
+  "packageFile": "package.json",
   "packageFileVersion": "0.0.8",
   "packageJsonName": "@a/b",
   "packageJsonType": "app",
@@ -1081,6 +1093,7 @@ Object {
   },
   "npmLock": undefined,
   "npmrc": undefined,
+  "packageFile": "package.json",
   "packageFileVersion": "0.0.8",
   "packageJsonName": "@a/b",
   "packageJsonType": "app",
@@ -1219,6 +1232,7 @@ Object {
   },
   "npmLock": undefined,
   "npmrc": undefined,
+  "packageFile": "package.json",
   "packageFileVersion": "1.0.0",
   "packageJsonName": "renovate",
   "packageJsonType": "app",
diff --git a/lib/manager/npm/extract/index.ts b/lib/manager/npm/extract/index.ts
index 838127aaa19fee655bf866acfaafe19e2994fd6d..56bb8e110e73b742ce14007ac7020bca18ebabc7 100644
--- a/lib/manager/npm/extract/index.ts
+++ b/lib/manager/npm/extract/index.ts
@@ -360,6 +360,7 @@ export async function extractPackageFile(
   }
 
   return {
+    packageFile: fileName,
     deps,
     packageJsonName,
     packageFileVersion,
@@ -392,15 +393,13 @@ export async function extractAllPackageFiles(
 ): Promise<PackageFile[]> {
   const npmFiles: PackageFile[] = [];
   for (const packageFile of packageFiles) {
+    // const npmrc = ini.parse((config.npmrc || '').replace(/\\n/g, '\n'));
     const content = await readLocalFile(packageFile, 'utf8');
     // istanbul ignore else
     if (content) {
-      const deps = await extractPackageFile(content, packageFile, config);
-      if (deps) {
-        npmFiles.push({
-          packageFile,
-          ...deps,
-        });
+      const res = await extractPackageFile(content, packageFile, config);
+      if (res) {
+        npmFiles.push(res);
       }
     } else {
       logger.debug({ packageFile }, 'packageFile has no content');