import * as pathLib from 'path' ; import { Identity } from '../../types' ; export function formatDisplayName ( path , identity ) { if ( ! identity . targetFile ) { return `${ identity . type } project` ; } return pathLib . relative ( process . cwd ( ) , pathLib . join ( path , identity . targetFile ) ) ; }