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