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

Function readJsonConfigFile

test/fixtures/snapshot/typescript.js:40807–40810  ·  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

40805 * @param fileName The path to the config file
40806 */
40807 function readJsonConfigFile(fileName, readFile) {
40808 var textOrDiagnostic = tryReadFile(fileName, readFile);
40809 return ts.isString(textOrDiagnostic) ? ts.parseJsonText(fileName, textOrDiagnostic) : { fileName: fileName, parseDiagnostics: [textOrDiagnostic] };
40810 }
40811 ts.readJsonConfigFile = readJsonConfigFile;
40812 /*@internal*/
40813 function tryReadFile(fileName, readFile) {

Callers 1

getExtendedConfigFunction · 0.85

Calls 1

tryReadFileFunction · 0.85

Tested by

no test coverage detected