MCPcopy Create free account
hub / github.com/remix-run/react-router / deleteWhatsChangedFile

Function deleteWhatsChangedFile

scripts/changes/version.ts:171–183  ·  view source on GitHub ↗

* Deletes the manually-authored release notes file after consuming it.

()

Source from the content-addressed store, hash-verified

169 * Deletes the manually-authored release notes file after consuming it.
170 */
171function 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

Callers 1

version.tsFile · 0.85

Calls 1

logMethod · 0.80

Tested by

no test coverage detected