The folder of the package `dir` is in: the nearest at or above it with a package of its own, '' for the repository's.
(dir: string, context: ResolutionContext)
| 744 | |
| 745 | /** The folder of the package `dir` is in: the nearest at or above it with a package of its own, '' for the repository's. */ |
| 746 | function packageFolder(dir: string, context: ResolutionContext): string { |
| 747 | return dir === '' || packageManifest(dir, context) ? dir : packageFolder(dirOf(dir), context); |
| 748 | } |
| 749 | |
| 750 | /** |
| 751 | * Whether a `declare module` in `file` can be in the program `fromFile` is in. |
no test coverage detected