diff --git a/lib/workers/repository/upgrades.js b/lib/workers/repository/upgrades.js index 243039e284d01128c708fa7ddc5ebd17270a1502..cc8cf4a752080b03f18b22f4561187791c5508c6 100644 --- a/lib/workers/repository/upgrades.js +++ b/lib/workers/repository/upgrades.js @@ -63,11 +63,6 @@ function getPackageFileConfig(repoConfig, index) { let packageFile = repoConfig.packageFiles[index]; if (typeof packageFile === 'string') { packageFile = { packageFile }; - } else if (packageFile.fileName) { - // Retained deprecated 'fileName' for backwards compatibility - // TODO: Remove in renovate 9 - packageFile.packageFile = packageFile.fileName; - delete packageFile.fileName; } const packageFileConfig = Object.assign({}, repoConfig, packageFile); repoConfig.logger.trace({ config: repoConfig }, 'repoConfig'); diff --git a/test/workers/repository/upgrades.spec.js b/test/workers/repository/upgrades.spec.js index 2a27d13f80a6ec97cd5655733fa8260c6602e31f..c2daf9ffc7690d9cf1349c12f73ca776b6b78e22 100644 --- a/test/workers/repository/upgrades.spec.js +++ b/test/workers/repository/upgrades.spec.js @@ -35,7 +35,7 @@ describe('workers/repository/upgrades', () => { packageFile: 'backend/package.json', }, { - fileName: 'frontend/package.json', + packageFile: 'frontend/package.json', }, ]; packageFileWorker.findUpgrades.mockReturnValueOnce(['a']);