()
| 363 | |
| 364 | // determine the tsconfig.json path for a given folder |
| 365 | function detectConfig(): string | undefined { |
| 366 | let configFileName: string | undefined = undefined; |
| 367 | |
| 368 | // Read project configuration when available. |
| 369 | configFileName = options.project |
| 370 | ? ts.findConfigFile(normalizeSlashes(options.project), fileExists) |
| 371 | : ts.findConfigFile(normalizeSlashes(cwd), fileExists); |
| 372 | |
| 373 | if (configFileName) return normalizeSlashes(configFileName); |
| 374 | } |
| 375 | |
| 376 | /** |
| 377 | * Load TypeScript configuration. |
no test coverage detected