(root: string)
| 520 | }; |
| 521 | |
| 522 | export const listSubsetIds = async (root: string): Promise<string[]> => { |
| 523 | const subsetsRoot = join(root, 'subsets'); |
| 524 | if (!(await pathExists(subsetsRoot))) return []; |
| 525 | return (await readdir(subsetsRoot)) |
| 526 | .filter((filename) => filename.endsWith('.json')) |
| 527 | .map((filename) => filename.slice(0, -5)) |
| 528 | .toSorted(compareStrings); |
| 529 | }; |
| 530 | |
| 531 | export const validateRegistry = async (root: string): Promise<void> => { |
| 532 | await validateCanonicalJson(join(root, 'upstreams.json'), upstreamsSchema); |
no test coverage detected