MCPcopy Index your code
hub / github.com/nodejs/node / readConfigFile

Function readConfigFile

test/fixtures/snapshot/typescript.js:40785–40788  ·  view source on GitHub ↗

* Read tsconfig.json file * @param fileName The path to the config file

(fileName, readFile)

Source from the content-addressed store, hash-verified

40783 * @param fileName The path to the config file
40784 */
40785 function readConfigFile(fileName, readFile) {
40786 var textOrDiagnostic = tryReadFile(fileName, readFile);
40787 return ts.isString(textOrDiagnostic) ? parseConfigFileTextToJson(fileName, textOrDiagnostic) : { config: {}, error: textOrDiagnostic };
40788 }
40789 ts.readConfigFile = readConfigFile;
40790 /**
40791 * Parse the text of the tsconfig.json file

Callers

nothing calls this directly

Calls 2

tryReadFileFunction · 0.85

Tested by

no test coverage detected