mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
fix: empty packageRules after applying to update
This commit is contained in:
parent
41b733ce4f
commit
2d4aa131a3
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue