cherrypick-interactive 1.14.8 → 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 +14 -1
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -1600,6 +1600,18 @@ async function main() {
|
|
|
1600
1600
|
log(chalk.gray(`Pushed ${onBranch} with version bump.`));
|
|
1601
1601
|
}
|
|
1602
1602
|
|
|
1603
|
+
// Clean up temporary changelog file
|
|
1604
|
+
if (argv['create-release']) {
|
|
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
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1603
1615
|
const finalBranch = argv['create-release']
|
|
1604
1616
|
? await gitRaw(['rev-parse', '--abbrev-ref', 'HEAD']) // should be release/*
|
|
1605
1617
|
: currentBranch;
|
|
@@ -1629,8 +1641,9 @@ async function main() {
|
|
|
1629
1641
|
} catch (e) {
|
|
1630
1642
|
err(chalk.red(`\n❌ Error: ${e.message || e}`));
|
|
1631
1643
|
|
|
1632
|
-
// Clean up session on error too
|
|
1644
|
+
// Clean up session and temp files on error too
|
|
1633
1645
|
try { await deleteSession(); } catch { /* ignore cleanup errors */ }
|
|
1646
|
+
try { await fsPromises.unlink('RELEASE_CHANGELOG.md'); } catch { /* ignore if not exists */ }
|
|
1634
1647
|
|
|
1635
1648
|
// Output partial JSON result on error
|
|
1636
1649
|
if (isJsonFormat) {
|
package/package.json
CHANGED