(compilerOptions: PartialCompilerOptions, relativeTo: string)
| 15 | * @param relativeTo Paths are resolved relative to this path. |
| 16 | */ |
| 17 | export function makePathsAbsolute(compilerOptions: PartialCompilerOptions, relativeTo: string) { |
| 18 | for (const pathProp of DIRECTORY_PROPS) { |
| 19 | if (compilerOptions[pathProp]) { |
| 20 | compilerOptions[pathProp] = resolve(relativeTo, compilerOptions[pathProp] as string); |
| 21 | } |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Mutates the compiler options to normalize some values for Rollup. |
no test coverage detected