fix: empty packageRules after applying to update

This commit is contained in:
Rhys Arkins 2018-07-05 22:23:48 +02:00
parent 41b733ce4f
commit 2d4aa131a3

View file

@ -24,11 +24,14 @@ function flattenUpdates(config, packageFiles) {
let updateConfig = mergeChildConfig(depConfig, update); let updateConfig = mergeChildConfig(depConfig, update);
delete updateConfig.updates; delete updateConfig.updates;
updateConfig = applyPackageRules(updateConfig); updateConfig = applyPackageRules(updateConfig);
// Now we're finished with these packageRules
updateConfig.packageRules = [];
// apply major/minor/patch/pin/digest // apply major/minor/patch/pin/digest
updateConfig = mergeChildConfig( updateConfig = mergeChildConfig(
updateConfig, updateConfig,
updateConfig[updateConfig.updateType] updateConfig[updateConfig.updateType]
); );
// Apply again in case any were added by the updateType config
updateConfig = applyPackageRules(updateConfig); updateConfig = applyPackageRules(updateConfig);
updateConfig.depNameSanitized = updateConfig.depName updateConfig.depNameSanitized = updateConfig.depName
? updateConfig.depName ? updateConfig.depName