Skip to content
Snippets Groups Projects
Commit 2d4aa131 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: empty packageRules after applying to update

parent 41b733ce
No related branches found
No related tags found
No related merge requests found
......@@ -24,11 +24,14 @@ function flattenUpdates(config, packageFiles) {
let updateConfig = mergeChildConfig(depConfig, update);
delete updateConfig.updates;
updateConfig = applyPackageRules(updateConfig);
// Now we're finished with these packageRules
updateConfig.packageRules = [];
// apply major/minor/patch/pin/digest
updateConfig = mergeChildConfig(
updateConfig,
updateConfig[updateConfig.updateType]
);
// Apply again in case any were added by the updateType config
updateConfig = applyPackageRules(updateConfig);
updateConfig.depNameSanitized = updateConfig.depName
? updateConfig.depName
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment