cleanup(angular): remove unnecessary migration
We no longer support ng update, so we don't have to update packages in a migration. This happens automatically.,
This commit is contained in:
parent
93031143e3
commit
a0d8b27cfa
@ -55,11 +55,6 @@
|
|||||||
"version": "11.0.0-beta.13",
|
"version": "11.0.0-beta.13",
|
||||||
"description": "Update builder configurations and dependencies",
|
"description": "Update builder configurations and dependencies",
|
||||||
"factory": "./src/migrations/update-11-0-0/update-builders-config"
|
"factory": "./src/migrations/update-11-0-0/update-builders-config"
|
||||||
},
|
|
||||||
"update-11-1-0": {
|
|
||||||
"version": "11.1.0-beta.0",
|
|
||||||
"description": "Update @angular-eslint dependencies to v1",
|
|
||||||
"factory": "./src/migrations/update-11-1-0/update-11-1-0"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"packageJsonUpdates": {
|
"packageJsonUpdates": {
|
||||||
|
|||||||
@ -1,35 +0,0 @@
|
|||||||
import { Tree } from '@angular-devkit/schematics';
|
|
||||||
import { readJsonInTree, updateJsonInTree } from '@nrwl/workspace';
|
|
||||||
import { callRule, runMigration } from '../../utils/testing';
|
|
||||||
|
|
||||||
describe('update-11-1-0', () => {
|
|
||||||
let tree: Tree;
|
|
||||||
beforeEach(async () => {
|
|
||||||
tree = Tree.empty();
|
|
||||||
tree = await callRule(
|
|
||||||
updateJsonInTree('package.json', () => ({
|
|
||||||
devDependencies: {
|
|
||||||
'@angular-eslint/eslint-plugin': '~1.0.0',
|
|
||||||
'@angular-eslint/eslint-plugin-template': '~1.0.0',
|
|
||||||
'@angular-eslint/template-parser': '~1.0.0',
|
|
||||||
},
|
|
||||||
})),
|
|
||||||
tree
|
|
||||||
);
|
|
||||||
});
|
|
||||||
it('should update @angular-eslint dependencies to v1', async () => {
|
|
||||||
const result = await runMigration('update-11-1-0', {}, tree);
|
|
||||||
|
|
||||||
const packageJson = readJsonInTree(result, 'package.json');
|
|
||||||
|
|
||||||
expect(packageJson).toMatchInlineSnapshot(`
|
|
||||||
Object {
|
|
||||||
"devDependencies": Object {
|
|
||||||
"@angular-eslint/eslint-plugin": "~1.0.0",
|
|
||||||
"@angular-eslint/eslint-plugin-template": "~1.0.0",
|
|
||||||
"@angular-eslint/template-parser": "~1.0.0",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
`);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
@ -1,13 +0,0 @@
|
|||||||
import { chain } from '@angular-devkit/schematics';
|
|
||||||
import { formatFiles, updatePackagesInPackageJson } from '@nrwl/workspace';
|
|
||||||
import { join } from 'path';
|
|
||||||
|
|
||||||
export default function () {
|
|
||||||
return chain([
|
|
||||||
updatePackagesInPackageJson(
|
|
||||||
join(__dirname, '../../../migrations.json'),
|
|
||||||
'11.1.0'
|
|
||||||
),
|
|
||||||
formatFiles(),
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user