license import { Path , basename , dirname , join , normalize } from '@angular-devkit/core' ; export interface Location { name : string ; path : Path ; } export function parseName ( path , name ) { const nameWithoutPath = basename ( normalize ( name ) ) ; const namePath = dirname ( join ( normalize ( path ) , name ) as Path ) ; return { name : nameWithoutPath , path : normalize ( '/' + namePath ) , } ; }