import { relative, resolve } from 'path'; import { cwd } from 'process'; export type TSFileExtension = '.ts' | '.tsx' | '.d.ts'; // Used to keep track what extension output files should get export const FileTypes = new Map(); export function relativePath(...pathSegments: string[]): string { return relative(cwd(), resolve(...pathSegments)); }