sindresorhus/ora

ora v8 breaks prompts

peterpeterparker opened this issue · 2 comments

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

Fixed in a dependency. Just reinstall Ora to get it.

https://github.com/sindresorhus/stdin-discarder/releases/tag/v0.2.2

It works out, thanks!