MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / main

Function main

apps/api/scripts/check-scripts-docs.ts:58–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56}
57
58function 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
80main();

Callers 1

Calls 4

errorMethod · 0.80
readPackageScriptKeysFunction · 0.70
readReadmeCommandKeysFunction · 0.70
hasMethod · 0.45

Tested by

no test coverage detected