MCPcopy Create free account
hub / github.com/react-hook-form/react-hook-form / loadExtractorConfig

Function loadExtractorConfig

scripts/apiExtractor.js:96–107  ·  view source on GitHub ↗

* Finds and loads the API Extractor config relative to the * current working directory. * @returns {ExtractorConfig}

()

Source from the content-addressed store, hash-verified

94 * @returns {ExtractorConfig}
95 */
96function 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

Callers 1

apiExtractor.jsFile · 0.85

Calls 1

exitFunction · 0.85

Tested by

no test coverage detected