Skip to content

Commit fd84ffd

Browse files
committed
deps: replace ora with yocto-spinner
1 parent 92bf51c commit fd84ffd

3 files changed

Lines changed: 23 additions & 90 deletions

File tree

lib/cli.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import ora from 'ora';
21
import { styleText } from 'node:util';
2+
import yoctoSpinner from 'yocto-spinner';
33
import * as inquirer from '@inquirer/prompts';
44

55
import { warning, error, info, success } from './figures.js';
@@ -29,7 +29,7 @@ export default class CLI {
2929
constructor(stream, options = {}) {
3030
const spinnerOptions = options.spinner ?? {};
3131
this.stream = stream || process.stderr;
32-
this.spinner = ora({ stream: this.stream, ...spinnerOptions });
32+
this.spinner = yoctoSpinner({ stream: this.stream, ...spinnerOptions });
3333
this.SPINNER_STATUS = SPINNER_STATUS;
3434
this.QUESTION_TYPE = QUESTION_TYPE;
3535
this.figureIndent = ' ';
@@ -154,10 +154,7 @@ export default class CLI {
154154
case INFO:
155155
symbol = info;
156156
}
157-
const text = ' ' + rawText;
158-
this.spinner.stopAndPersist({
159-
symbol, text
160-
});
157+
this.spinner.stop(`${symbol} ${rawText}`);
161158
}
162159

163160
write(text) {

package-lock.json

Lines changed: 19 additions & 83 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"git-secure-tag": "^2.3.1",
4747
"js-yaml": "^5.2.1",
4848
"listr2": "^11.1.0",
49-
"ora": "^9.0.0",
49+
"yocto-spinner": "^1.2.2",
5050
"semver": "^7.7.1",
5151
"smol-toml": "^1.7.0",
5252
"undici": "^8.3.0",

0 commit comments

Comments
 (0)