All files / src/migrations 3.2.1.ts

100% Statements 6/6
100% Branches 0/0
100% Functions 1/1
100% Lines 6/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 261x 1x 1x   1x               1x 1x                        
import { addDevDependency, removeDevDependency, addDependency } from './utils/package-json';
import { tryRule } from './utils/rules';
import { Rule, chain } from '@angular-devkit/schematics';
 
const manualProcess = `
Fix the dependencies in the project's package:
 
  $ npm install --save-exact @ngrx/store@8.1.0 @ngrx/effects@8.1.0
  $ npm install --save-dev tslib@^1.9.0
  $ npm uninstall @angular-devkit/schematics @schematics/angular tsickle
`;
 
export default function (): Rule {
  return tryRule(
    chain([
      addDependency('@ngrx/store', '8.1.0'),
      addDependency('@ngrx/effects', '8.1.0'),
      addDevDependency('tslib', '^1.9.0'),
      removeDevDependency('@angular-devkit/schematics'),
      removeDevDependency('@schematics/angular'),
      removeDevDependency('tsickle'),
    ]),
    manualProcess,
  );
}