import { relative , resolve } from 'path' ; import { cwd } from 'process' ; export type TSFileExtension = '.ts' | '.tsx' | '.d.ts' ; export const FileTypes = new Map < string , TSFileExtension > ( ) ; export function relativePath ( ... pathSegments ) { return relative ( cwd ( ) , resolve ( ... pathSegments ) ) ; }