(startDirectory, host, stopDirectory)
| 129150 | } |
| 129151 | ts.tryIOAndConsumeErrors = tryIOAndConsumeErrors; |
| 129152 | function findPackageJsons(startDirectory, host, stopDirectory) { |
| 129153 | var paths = []; |
| 129154 | ts.forEachAncestorDirectory(startDirectory, function (ancestor) { |
| 129155 | if (ancestor === stopDirectory) { |
| 129156 | return true; |
| 129157 | } |
| 129158 | var currentConfigPath = ts.combinePaths(ancestor, "package.json"); |
| 129159 | if (tryFileExists(host, currentConfigPath)) { |
| 129160 | paths.push(currentConfigPath); |
| 129161 | } |
| 129162 | }); |
| 129163 | return paths; |
| 129164 | } |
| 129165 | ts.findPackageJsons = findPackageJsons; |
| 129166 | function findPackageJson(directory, host) { |
| 129167 | var packageJson; |
nothing calls this directly
no test coverage detected