Skip to content

Commit 7f64edb

Browse files
authored
Merge pull request #356 from tdranv/expose-no-spinner-env-var
Disable spinner when running in CI
2 parents ba2b3e7 + a771115 commit 7f64edb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

bin/cli.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const spinner = ora({
7575
text: 'Finding files',
7676
color: 'white',
7777
interval: 100000,
78-
isEnabled: program.spinner
78+
isEnabled: program.spinner === 'false' ? false : null
7979
});
8080

8181
let exitCode = 0;
@@ -137,10 +137,8 @@ function dependencyFilter() {
137137
const dir = path.dirname(relPath) + '/';
138138
const file = path.basename(relPath);
139139

140-
if (program.spinner) {
141-
spinner.text = chalk.grey(dir) + chalk.cyan(file);
142-
spinner.render();
143-
}
140+
spinner.text = chalk.grey(dir) + chalk.cyan(file);
141+
144142
prevFile = traversedFilePath;
145143
}
146144
};

0 commit comments

Comments
 (0)