Skip to content

Commit

Permalink
Remove update-notifier.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Nov 22, 2019
1 parent ef97657 commit c8dfb34
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
6 changes: 0 additions & 6 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
const meow = require('meow');
const _ = require('lodash');
const stdin = require('get-stdin');
const updateNotifier = require('update-notifier');
const filterCss = require('./');
const pkg = require('./package.json');
let ok;

const help = `
Expand Down Expand Up @@ -33,10 +31,6 @@ const cli = meow(
}
);

if (cli.flags['update-notifier'] !== false) {
updateNotifier({pkg: pkg}).notify();
}

function go(data) {
ok = true;
if (_.isString(cli.flags.ignore) || _.isRegExp(cli.flags.ignore)) {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
"css": "^2.2.0",
"get-stdin": "^5.0.1",
"lodash": "^4.13.1",
"meow": "^3.1.0",
"update-notifier": "^0.7.0"
"meow": "^3.1.0"
},
"devDependencies": {
"chai": "^3.5.0",
Expand Down
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ describe('Module', () => {
describe('CLI', () => {
// empty stdout on appveyor? runs correct on manual test with Windows 7
skipWin('should return the version', done => {
execFile('node', [path.join(__dirname, '../', pkg.bin.filtercss), '--version', '--no-update-notifier'], (error, stdout) => {
execFile('node', [path.join(__dirname, '../', pkg.bin.filtercss), '--version'], (error, stdout) => {
expect(stdout.replace(/\r\n|\n/g, '')).to.eql(pkg.version);
done();
});
Expand Down

0 comments on commit c8dfb34

Please sign in to comment.