(filePath: string)
| 127 | * `ui/index.ts`, `pkg` → `pkg/__init__.py`) or as a Go package. |
| 128 | */ |
| 129 | export function importPathKeys(filePath: string): string[] { |
| 130 | const parts = filePath.split('/'); |
| 131 | const keys = new Set<string>(); |
| 132 | for (const name of parts.slice(-2)) { |
| 133 | keys.add(name); |
| 134 | keys.add(fileNameStem(name)); |
| 135 | } |
| 136 | return [...keys]; |
| 137 | } |
| 138 | |
| 139 | /** |
| 140 | * The keys a module reference the file at `filePath` could satisfy is parked |
no test coverage detected