()
| 37 | } |
| 38 | |
| 39 | function usage() { |
| 40 | console.error( |
| 41 | "Usage: build-website-manifest.mjs --out=<path> [--ref=<tag>]\n" + |
| 42 | " --out Output JSON file path (required).\n" + |
| 43 | " --ref Ref/tag to record in the snapshot. Defaults to v<package.json version>.", |
| 44 | ); |
| 45 | } |
| 46 | |
| 47 | async function loadYamlDir(dir) { |
| 48 | const entries = (await readdir(dir)).filter((f) => f.endsWith(".yaml") || f.endsWith(".yml")); |