(sub: string, file: string)
| 93 | } |
| 94 | |
| 95 | async function read(sub: string, file: string) { |
| 96 | const item = Bun.file(path.join(root, sub, file)) |
| 97 | if (!(await item.exists())) return undefined |
| 98 | return parse(await item.text()) |
| 99 | } |
| 100 | |
| 101 | function pick(list: Item[], exts: string[]) { |
| 102 | for (const ext of exts) { |
no test coverage detected