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

Callers 1

Calls 4

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

Tested by

no test coverage detected