(program: ts.Program)
| 213 | } |
| 214 | |
| 215 | export function getSourceDir(program: ts.Program): string { |
| 216 | const rootDir = program.getCompilerOptions().rootDir; |
| 217 | if (rootDir && rootDir.length > 0) { |
| 218 | return path.isAbsolute(rootDir) ? rootDir : path.resolve(getProjectRoot(program), rootDir); |
| 219 | } |
| 220 | |
| 221 | // If no rootDir is given, source is relative to the project root |
| 222 | return getProjectRoot(program); |
| 223 | } |
| 224 | |
| 225 | export function getEmitOutDir(program: ts.Program): string { |
| 226 | const outDir = program.getCompilerOptions().outDir; |
no test coverage detected