Skip to content

Commit a771115

Browse files
committed
remove ci-info and change isEnabled setting
1 parent b29877b commit a771115

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

bin/cli.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const version = require('../package.json').version;
99
const ora = require('ora');
1010
const chalk = require('chalk');
1111
const startTime = Date.now();
12-
const ci = require('ci-info');
1312

1413
// Revert https://github.com/tj/commander.js/pull/1409
1514
program.storeOptionsAsProperties();
@@ -76,8 +75,7 @@ const spinner = ora({
7675
text: 'Finding files',
7776
color: 'white',
7877
interval: 100000,
79-
isEnabled: !ci.isCI && program.spinner,
80-
isSilent: ci.isCI
78+
isEnabled: program.spinner === 'false' ? false : null
8179
});
8280

8381
let exitCode = 0;
@@ -139,10 +137,8 @@ function dependencyFilter() {
139137
const dir = path.dirname(relPath) + '/';
140138
const file = path.basename(relPath);
141139

142-
if (program.spinner) {
143-
spinner.text = chalk.grey(dir) + chalk.cyan(file);
144-
spinner.render();
145-
}
140+
spinner.text = chalk.grey(dir) + chalk.cyan(file);
141+
146142
prevFile = traversedFilePath;
147143
}
148144
};

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
},
4646
"dependencies": {
4747
"chalk": "^4.1.1",
48-
"ci-info": "^3.7.1",
4948
"commander": "^7.2.0",
5049
"commondir": "^1.0.1",
5150
"debug": "^4.3.1",

0 commit comments

Comments
 (0)