Skip to content

Commit

Permalink
remove ci-info and change isEnabled setting
Browse files Browse the repository at this point in the history
  • Loading branch information
todor-a committed Feb 6, 2023
1 parent b29877b commit a771115
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
10 changes: 3 additions & 7 deletions bin/cli.js
Expand Up @@ -9,7 +9,6 @@ const version = require('../package.json').version;
const ora = require('ora');
const chalk = require('chalk');
const startTime = Date.now();
const ci = require('ci-info');

// Revert https://github.com/tj/commander.js/pull/1409
program.storeOptionsAsProperties();
Expand Down Expand Up @@ -76,8 +75,7 @@ const spinner = ora({
text: 'Finding files',
color: 'white',
interval: 100000,
isEnabled: !ci.isCI && program.spinner,
isSilent: ci.isCI
isEnabled: program.spinner === 'false' ? false : null
});

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

if (program.spinner) {
spinner.text = chalk.grey(dir) + chalk.cyan(file);
spinner.render();
}
spinner.text = chalk.grey(dir) + chalk.cyan(file);

prevFile = traversedFilePath;
}
};
Expand Down
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -45,7 +45,6 @@
},
"dependencies": {
"chalk": "^4.1.1",
"ci-info": "^3.7.1",
"commander": "^7.2.0",
"commondir": "^1.0.1",
"debug": "^4.3.1",
Expand Down

0 comments on commit a771115

Please sign in to comment.