* Finds and loads the API Extractor config relative to the * current working directory. * @returns {ExtractorConfig}
()
| 94 | * @returns {ExtractorConfig} |
| 95 | */ |
| 96 | function loadExtractorConfig() { |
| 97 | const rawConfig = ExtractorConfig.tryLoadForFolder({ |
| 98 | startingFolder: process.cwd(), |
| 99 | }); |
| 100 | if (!rawConfig) { |
| 101 | exit( |
| 102 | `No API Extractor config could be found for the`, |
| 103 | `current working directory.`, |
| 104 | ); |
| 105 | } |
| 106 | return ExtractorConfig.prepare(rawConfig); |
| 107 | } |
| 108 | |
| 109 | /** |
| 110 | * Surrounds the message with control characters to display red text on a |