fix(prompt): add stdin.pause() to prevent process hang after password input

Fixes #236. The password() method called resume() on stdin but never
paused it in cleanup, keeping the event loop alive indefinitely.
This commit is contained in:
kaitranntt
2025-12-31 19:12:55 -05:00
parent a24ae6ab3b
commit f30d0c1239
+1
View File
@@ -174,6 +174,7 @@ export class InteractivePrompt {
process.stdin.setRawMode(false);
}
process.stdin.removeListener('data', onData);
process.stdin.pause();
};
const onData = (data: Buffer): void => {