UNPKG

tscpaths

Version:

Replace absolute paths to relative paths after typescript compilation

24 lines (23 loc) 535 B
export interface IRawTSConfig { extends?: string; compilerOptions?: { baseUrl?: string; outDir?: string; paths?: { [key: string]: string[]; }; }; } export interface ITSConfig { baseUrl?: string; outDir?: string; paths?: { [key: string]: string[]; }; } export declare const mapPaths: (paths: { [key: string]: string[]; }, mapper: (x: string) => string) => { [key: string]: string[]; }; export declare const loadConfig: (file: string) => ITSConfig;