cherrypick-interactive 1.13.0 → 1.13.1

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.
Files changed (2) hide show
  1. package/cli.js +5 -1
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -1503,12 +1503,16 @@ async function main() {
1503
1503
 
1504
1504
  // Confirmation (skip in CI)
1505
1505
  if (!argv.ci && !argv['all-yes']) {
1506
+ // Flush stdin buffer to prevent TUI's Enter keypress from leaking into this prompt
1507
+ await new Promise((r) => setTimeout(r, 100));
1508
+ if (process.stdin.readable) process.stdin.read();
1509
+
1506
1510
  const { proceed } = await prompt([
1507
1511
  {
1508
1512
  type: 'confirm',
1509
1513
  name: 'proceed',
1510
1514
  message: 'Proceed with cherry-pick?',
1511
- default: false,
1515
+ default: true,
1512
1516
  },
1513
1517
  ]);
1514
1518
  if (!proceed) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cherrypick-interactive",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "Interactively cherry-pick commits that are in dev but not in main, using subject-based comparison.",
5
5
  "main": "cli.js",
6
6
  "bin": "cli.js",