|
1
|
import { crawl } from "../utils" |
|
2
|
|
|
3
|
export async function getWidgetFilesFromSources( |
|
4
|
sources: Set<string> |
|
5
|
): Promise<string[]> { |
|
6
|
return ( |
|
7
|
await Promise.all( |
|
8
|
Array.from(sources).map(async (source) => crawl(`${source}/widgets`)) |
|
9
|
) |
|
10
|
).flat() |
|
11
|
} |