(option, value, toAbsolutePath)
| 41401 | } |
| 41402 | ts.convertToOptionsWithAbsolutePaths = convertToOptionsWithAbsolutePaths; |
| 41403 | function convertToOptionValueWithAbsolutePaths(option, value, toAbsolutePath) { |
| 41404 | if (option && !isNullOrUndefined(value)) { |
| 41405 | if (option.type === "list") { |
| 41406 | var values = value; |
| 41407 | if (option.element.isFilePath && values.length) { |
| 41408 | return values.map(toAbsolutePath); |
| 41409 | } |
| 41410 | } |
| 41411 | else if (option.isFilePath) { |
| 41412 | return toAbsolutePath(value); |
| 41413 | } |
| 41414 | } |
| 41415 | return value; |
| 41416 | } |
| 41417 | /** |
| 41418 | * Parse the contents of a config file (tsconfig.json). |
| 41419 | * @param json The contents of the config file to parse |
no test coverage detected
searching dependent graphs…