Brandon Roberts 6516176b65 feat(nx): update to NgRx 8 and add schematics support for creators and entities
Move addUpdateTask util function to @nrwl/workspace to run updates from @nrwl/angular migrations
Run update migration to latest version for NgRx if installed
2019-07-17 14:42:54 -04:00

19 lines
529 B
TypeScript

import { Rule, chain, externalSchematic } from '@angular-devkit/schematics';
import { updateJsonInTree, addUpdateTask } from '@nrwl/workspace';
const updateAngularCLI = addUpdateTask('@angular/cli', '7.2.2');
const updateTypescript = updateJsonInTree('package.json', json => {
json.devDependencies = json.devDependencies || {};
json.devDependencies = {
...json.devDependencies,
typescript: '~3.2.2'
};
return json;
});
export default function(): Rule {
return chain([updateTypescript, updateAngularCLI]);
}