@getjack/jack 0.1.27 → 0.1.28
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/package.json +1 -1
- package/src/lib/hooks.ts +4 -0
package/package.json
CHANGED
package/src/lib/hooks.ts
CHANGED
|
@@ -11,6 +11,10 @@ import { restoreTty } from "./tty";
|
|
|
11
11
|
* User pastes JSON, then presses Enter on empty line to submit
|
|
12
12
|
*/
|
|
13
13
|
async function readMultilineJson(prompt: string): Promise<string> {
|
|
14
|
+
// Ensure TTY is in a clean state before starting readline
|
|
15
|
+
// This prevents conflicts with previous @clack/prompts selections
|
|
16
|
+
restoreTty();
|
|
17
|
+
|
|
14
18
|
console.error(prompt);
|
|
15
19
|
console.error("(Paste JSON, then press Enter on empty line to submit)\n");
|
|
16
20
|
|