()
| 56 | } |
| 57 | |
| 58 | function main(): void { |
| 59 | const wired = readPackageScriptKeys(); |
| 60 | const documented = readReadmeCommandKeys(); |
| 61 | const missing = wired.filter((key) => !documented.has(key)); |
| 62 | |
| 63 | if (missing.length > 0) { |
| 64 | console.error( |
| 65 | "[check:scripts-docs] scripts/README.md is missing package.json commands:\n" |
| 66 | ); |
| 67 | |
| 68 | for (const key of missing) { |
| 69 | console.error(` - bun run ${key}`); |
| 70 | } |
| 71 | |
| 72 | process.exit(1); |
| 73 | } |
| 74 | |
| 75 | console.log( |
| 76 | "[check:scripts-docs] scripts/README.md covers all wired commands." |
| 77 | ); |
| 78 | } |
| 79 | |
| 80 | main(); |
no test coverage detected