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.
- package/cli.js +5 -1
- 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:
|
|
1515
|
+
default: true,
|
|
1512
1516
|
},
|
|
1513
1517
|
]);
|
|
1514
1518
|
if (!proceed) {
|
package/package.json
CHANGED