* Reads optional manually-authored release notes for the root changelog.
()
| 141 | * Reads optional manually-authored release notes for the root changelog. |
| 142 | */ |
| 143 | function readWhatsChangedContent(): string | null { |
| 144 | if (!fs.existsSync(whatsChangedPath)) { |
| 145 | return null; |
| 146 | } |
| 147 | |
| 148 | let content = readFile(whatsChangedPath).trim(); |
| 149 | if (content.length === 0) { |
| 150 | return null; |
| 151 | } |
| 152 | |
| 153 | console.log(` ✓ Found scripts/changes/whats-changed.md`); |
| 154 | return content; |
| 155 | } |
| 156 | |
| 157 | /** |
| 158 | * Formats manually-authored release notes as a "What's Changed" section. |
no test coverage detected