(localPath: string)
| 14 | * @returns A list of absolute paths. |
| 15 | */ |
| 16 | export async function resolveLocalPaths(localPath: string): Promise<string[]> { |
| 17 | const absolute = expandLeadingTilde(localPath); |
| 18 | const expanded = await expandLocalPathIfGlobbed(absolute); |
| 19 | return expanded.map((p) => path.resolve(p)); |
| 20 | } |
| 21 | |
| 22 | async function expandLocalPathIfGlobbed(localPath: string): Promise<string[]> { |
| 23 | if (!LOCAL_PATH_LOOKS_GLOBBED.test(localPath)) { |
no test coverage detected