INNER CODE UNIT · TypeScript

buildRollup

cyanheads/pubmed-mcp-server · scripts/build-changelog.ts:165

function buildRollup(): { content: string; missingSummary: string[] } {
  const entries = collectVersionFiles();

  if (entries.length === 0) {
    throw new Error(`No per-version changelog files found under ${CHANGELOG_DIR}/<major.minor>.x/`);
  }

  const missingSummary: string[] = [];
  const sections: string[] = [];

  for (const entry of entries) {
    const fileLabel = `changelog/${entry.series}/${entry.version}.md`;
    const content = readFileSync(entry.path, 'utf-8');
    const fm = parseFrontmatter(content, fileLabel);
    const date = extractDate(content, fileLabel);

    if (!fm.summary) {
      missingSummary.push(fileLabel);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…