* 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)
| 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 |
no test coverage detected