ora v8 breaks prompts
peterpeterparker opened this issue · 2 comments
peterpeterparker commented
Hi,
The latest release of ora breaks the usage of prompts When starting and stopping a spinner and then using prompts afterward, the prompts are automatically closed. There is no such issue when using ora v7.
Here is a sample repo to reproduce the issue:
git clone https://github.com/peterpeterparker/promptstest
cd promptstest
npm ci
node index.mjs
![Capture d’écran 2024-01-06 à 09 25 03](https://private-user-images.githubusercontent.com/16886711/294659950-001eba4b-eff9-4d05-9091-1ab4caf53817.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDU3MjIyOTcsIm5iZiI6MTcwNTcyMTk5NywicGF0aCI6Ii8xNjg4NjcxMS8yOTQ2NTk5NTAtMDAxZWJhNGItZWZmOS00ZDA1LTkwOTEtMWFiNGNhZjUzODE3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAxMjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMTIwVDAzMzk1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJkNzJkYzZjMmQzOWRhZGIxY2NiZDA5N2U4MGU1ZDkyZDQxZjc3ZTYxMDQ0Mjk1Y2UwNGQyM2I3MmE2NWEzZDMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.5GIwta3HmXJGoZIpbGMqZQc2fIMRX2LPxV0PehF4BWY)
sindresorhus commented
Fixed in a dependency. Just reinstall Ora to get it.
https://github.com/sindresorhus/stdin-discarder/releases/tag/v0.2.2
peterpeterparker commented
It works out, thanks!