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

Function parseConfigFileTextToJson

test/fixtures/snapshot/typescript.js:40795–40801  ·  view source on GitHub ↗

* Parse the text of the tsconfig.json file * @param fileName The path to the config file * @param jsonText The text of the config file

(fileName, jsonText)

Source from the content-addressed store, hash-verified

40793 * @param jsonText The text of the config file
40794 */
40795 function parseConfigFileTextToJson(fileName, jsonText) {
40796 var jsonSourceFile = ts.parseJsonText(fileName, jsonText);
40797 return {
40798 config: convertConfigFileToObject(jsonSourceFile, jsonSourceFile.parseDiagnostics, /*reportOptionsErrors*/ false, /*optionsIterator*/ undefined),
40799 error: jsonSourceFile.parseDiagnostics.length ? jsonSourceFile.parseDiagnostics[0] : undefined
40800 };
40801 }
40802 ts.parseConfigFileTextToJson = parseConfigFileTextToJson;
40803 /**
40804 * Read tsconfig.json file

Callers 1

readConfigFileFunction · 0.85

Calls 1

Tested by

no test coverage detected