message: refactor(migration): make cuter
diff: import { Rule, SchematicContext, Tree, SchematicsException, chain, } from '@angular-devkit/schematics';
  import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks';
  -export function rxjsV6MigrationSchematic(_options: any): Rule {
  - return chain([
  - addDependencies()
  - ]);
  -}
  -
  const rxjsCompatVersion = '^6.0.0-rc.0';
  -function addDependencies() {
  +export function rxjsV6MigrationSchematic(_options: any): Rule {
  return (tree: Tree, context: SchematicContext) => {
  const pkgPath = '/package.json';
  const buffer = tree.read(pkgPath);
  @@ -26,33 +20,12 @@ function addDependencies() {
  if (!pkg.dependencies) {
  pkg.dependencies = {};
  }
  - if (!pkg.devDependencies) {
  - pkg.devDependencies = {};
  - }
  pkg.dependencies['rxjs-compat'] = rxjsCompatVersion;
  tree.overwrite(pkgPath, JSON.stringify(pkg, null, 2));
  context.addTask(new NodePackageInstallTask());
  - return tree;
  + return tree; // <3
  };
  }
  -
  -export function getWorkspacePath(tree: Tree): string {
  - const possibleFiles = [ '/angular.json', '/.angular.json' ];
  - const path = possibleFiles.filter(path => tree.exists(path))[0];
  -
  - return path;
  -}
  -
  -export function getWorkspace(tree: Tree): any {
  - const path = getWorkspacePath(tree);
  - const configBuffer = tree.read(path);
  - if (configBuffer === null) {
  - throw new SchematicsException(`Could not find (${path})`);
  - }
  - const config = configBuffer.toString();
  -
  - return JSON.parse(config);
  -}
  