Skip to content
Snippets Groups Projects
Commit 665ede84 authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix: migrate excludedPackageNames to excludePackageNames (#961)

parent 78cff771
No related branches found
No related tags found
No related merge requests found
...@@ -87,6 +87,10 @@ function migrateConfig(config, parentConfig) { ...@@ -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 { ...@@ -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', () => { ...@@ -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'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment