import { Rule , SchematicContext , Tree , chain } from '@angular-devkit/schematics' ; import { getPackageJson , overwritePackageJson } from '../../utils' ; export default ( _options ) : Rule => { return chain ( [ updateDependencies ] ) ; } ; const updateDependencies = ( ) => ( tree , context ) => { context . logger . info ( 'Updates npm packages as dev dependencies' ) ; const packageJson = getPackageJson ( tree ) ; delete packageJson . dependencies [ 'ngx-semantic-version' ] ; overwritePackageJson ( tree , packageJson ) ; } ;