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

Function main

apps/ui/scripts/check-scripts-docs.ts:50–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50function 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
72main();

Callers 1

Calls 4

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

Tested by

no test coverage detected