* Deletes the manually-authored release notes file after consuming it.
()
| 169 | * Deletes the manually-authored release notes file after consuming it. |
| 170 | */ |
| 171 | function deleteWhatsChangedFile() { |
| 172 | if (!fs.existsSync(whatsChangedPath)) { |
| 173 | return; |
| 174 | } |
| 175 | |
| 176 | if (preview) { |
| 177 | console.log(` • Would delete scripts/changes/whats-changed.md`); |
| 178 | return; |
| 179 | } |
| 180 | |
| 181 | fs.unlinkSync(whatsChangedPath); |
| 182 | console.log(` ✓ Deleted scripts/changes/whats-changed.md`); |
| 183 | } |
| 184 | |
| 185 | /** |
| 186 | * Updates package.json version |