(
configPath: string,
emitted: readonly { fileName: string }[],
options: SourceRootOptions
)
| 283 | } |
| 284 | |
| 285 | export const sourceRootOf = ( |
| 286 | configPath: string, |
| 287 | emitted: readonly { fileName: string }[], |
| 288 | options: SourceRootOptions |
| 289 | ): string => |
| 290 | options.rootDir ?? |
| 291 | (options.composite ? |
| 292 | dirname(tsPath(configPath)) |
| 293 | : commonDirOf( |
| 294 | emitted.map(file => dirname(tsPath(file.fileName))), |
| 295 | dirname(tsPath(configPath)) |
| 296 | )) |
| 297 | |
| 298 | const emitDeclarationsJs = ( |
| 299 | cwd: string, |
no test coverage detected