Open asibilia opened 1 year ago
I've replicated this
I've had the same issue!
This comment seems to work for me, though obviously not ideal.
Adding await void(0);
between prompts
await text({
...
});
await void(0);
await text({
...
});
Looks like this issue has already been addressed in the latest release of Bun, v1.0.18. You can find more details about the fix in the release notes: Bun v1.0.18 Release Notes.
What version of Bun is running?
1.0.3
What platform is your computer?
Darwin 22.6.0 arm64 arm
What steps can reproduce the bug?
What is the expected behavior?
When running a file that prompts a user via the command line, Bun should allow the user to input more than one response consecutively.
What do you see instead?
Bun always exits after the first input.
Additional information
I've set up a simple example repo here: https://github.com/asibilia/cli-tool