cherrypick-interactive 1.14.9 → 1.14.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +11 -3
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -1600,9 +1600,16 @@ async function main() {
|
|
|
1600
1600
|
log(chalk.gray(`Pushed ${onBranch} with version bump.`));
|
|
1601
1601
|
}
|
|
1602
1602
|
|
|
1603
|
-
// Clean up temporary changelog file
|
|
1603
|
+
// Clean up temporary changelog file
|
|
1604
1604
|
if (argv['create-release']) {
|
|
1605
|
-
try {
|
|
1605
|
+
try {
|
|
1606
|
+
await fsPromises.unlink('RELEASE_CHANGELOG.md');
|
|
1607
|
+
log(chalk.gray('Cleaned up RELEASE_CHANGELOG.md'));
|
|
1608
|
+
} catch (e) {
|
|
1609
|
+
if (e.code !== 'ENOENT') {
|
|
1610
|
+
err(chalk.gray(`Could not remove RELEASE_CHANGELOG.md: ${e.message}`));
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1606
1613
|
}
|
|
1607
1614
|
|
|
1608
1615
|
const finalBranch = argv['create-release']
|
|
@@ -1634,8 +1641,9 @@ async function main() {
|
|
|
1634
1641
|
} catch (e) {
|
|
1635
1642
|
err(chalk.red(`\n❌ Error: ${e.message || e}`));
|
|
1636
1643
|
|
|
1637
|
-
// Clean up session on error too
|
|
1644
|
+
// Clean up session and temp files on error too
|
|
1638
1645
|
try { await deleteSession(); } catch { /* ignore cleanup errors */ }
|
|
1646
|
+
try { await fsPromises.unlink('RELEASE_CHANGELOG.md'); } catch { /* ignore if not exists */ }
|
|
1639
1647
|
|
|
1640
1648
|
// Output partial JSON result on error
|
|
1641
1649
|
if (isJsonFormat) {
|
package/package.json
CHANGED