INNER CODE UNIT · TypeScript
reportMissingSummaries
cyanheads/pubmed-mcp-server · scripts/build-changelog.ts:194
function reportMissingSummaries(missing: string[]): void {
if (missing.length === 0) return;
const shown = missing.slice(0, 10);
const extra = missing.length - shown.length;
console.warn(`\nWarning: ${missing.length} file(s) missing 'summary' frontmatter:`);
for (const file of shown) console.warn(` - ${file}`);
if (extra > 0) console.warn(` ... and ${extra} more`);
console.warn(
`\nBackfill these — see CLAUDE.md/AGENTS.md § Changelog for the frontmatter format.`,
);
}
function main(): void {
const checkOnly = process.argv.includes('--check');
if (!existsSync(CHANGELOG_DIR)) {
console.log(`Skipped: ${CHANGELOG_DIR} does not exist (single-file CHANGELOG.md project).`);
process.exit(0);