12 lines
258 B
TypeScript
12 lines
258 B
TypeScript
import { crawl } from "../utils"
|
|
|
|
export async function getWidgetFilesFromSources(
|
|
sources: Set<string>
|
|
): Promise<string[]> {
|
|
return (
|
|
await Promise.all(
|
|
Array.from(sources).map(async (source) => crawl(`${source}/widgets`))
|
|
)
|
|
).flat()
|
|
}
|