(options, host)
| 42489 | } |
| 42490 | ts.getPackageJsonTypesVersionsPaths = getPackageJsonTypesVersionsPaths; |
| 42491 | function getEffectiveTypeRoots(options, host) { |
| 42492 | if (options.typeRoots) { |
| 42493 | return options.typeRoots; |
| 42494 | } |
| 42495 | var currentDirectory; |
| 42496 | if (options.configFilePath) { |
| 42497 | currentDirectory = ts.getDirectoryPath(options.configFilePath); |
| 42498 | } |
| 42499 | else if (host.getCurrentDirectory) { |
| 42500 | currentDirectory = host.getCurrentDirectory(); |
| 42501 | } |
| 42502 | if (currentDirectory !== undefined) { |
| 42503 | return getDefaultTypeRoots(currentDirectory, host); |
| 42504 | } |
| 42505 | } |
| 42506 | ts.getEffectiveTypeRoots = getEffectiveTypeRoots; |
| 42507 | /** |
| 42508 | * Returns the path to every node_modules/@types directory from some ancestor directory. |
no test coverage detected
searching dependent graphs…