mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 14:36:25 +00:00
fix: migrate excludedPackageNames to excludePackageNames (#961)
This commit is contained in:
parent
78cff771af
commit
665ede8475
3 changed files with 6 additions and 0 deletions
|
@ -87,6 +87,10 @@ function migrateConfig(config, parentConfig) {
|
||||||
p => migrateConfig(p).migratedConfig
|
p => migrateConfig(p).migratedConfig
|
||||||
);
|
);
|
||||||
delete migratedConfig.packages;
|
delete migratedConfig.packages;
|
||||||
|
} else if (key === 'excludedPackageNames') {
|
||||||
|
isMigrated = true;
|
||||||
|
migratedConfig.excludePackageNames = val;
|
||||||
|
delete migratedConfig.excludedPackageNames;
|
||||||
} else if (key === 'packageName') {
|
} else if (key === 'packageName') {
|
||||||
isMigrated = true;
|
isMigrated = true;
|
||||||
migratedConfig.packageNames = [val];
|
migratedConfig.packageNames = [val];
|
||||||
|
|
|
@ -46,6 +46,7 @@ Object {
|
||||||
},
|
},
|
||||||
"packageRules": Array [
|
"packageRules": Array [
|
||||||
Object {
|
Object {
|
||||||
|
"excludePackageNames": "foo",
|
||||||
"groupName": "angular packages",
|
"groupName": "angular packages",
|
||||||
"packagePatterns": "^(@angular|typescript)",
|
"packagePatterns": "^(@angular|typescript)",
|
||||||
},
|
},
|
||||||
|
|
|
@ -23,6 +23,7 @@ describe('config/migration', () => {
|
||||||
{
|
{
|
||||||
packagePatterns: '^(@angular|typescript)',
|
packagePatterns: '^(@angular|typescript)',
|
||||||
groupName: ['angular packages'],
|
groupName: ['angular packages'],
|
||||||
|
excludedPackageNames: 'foo',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
packagePatterns: ['^foo'],
|
packagePatterns: ['^foo'],
|
||||||
|
|
Loading…
Reference in a new issue