import * as path from 'path' ; import NormalizedPath from '../types/NormalizedPath' ; export default function normalizePath ( ... pathSegments ) { let normalizedPath = path . resolve . apply ( null , pathSegments ) ; if ( normalizedPath . match ( /^[a-z]:/ ) ) { normalizedPath = normalizedPath . substr ( 0 , 1 ) . toUpperCase ( ) + normalizedPath . substr ( 1 ) ; } return < NormalizedPath > normalizedPath ; }