Skip to content

Commit 0d30d63

Browse files
committed
Setup update-notifier
1 parent d7c3ac5 commit 0d30d63

File tree

3 files changed

+28
-70
lines changed

3 files changed

+28
-70
lines changed

cli.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
'use strict';
33
const meow = require('meow');
44
const logSymbols = require('log-symbols');
5+
const updateNotifier = require('update-notifier');
6+
const pkg = require('./package.json');
57

68
const errorNotifier = require('./error-notifier');
79

@@ -51,6 +53,8 @@ const cli = meow(`
5153
}
5254
});
5355

56+
updateNotifier({pkg}).notify();
57+
5458
if (cli.input.length !== 1) {
5559
console.log(`\n${logSymbols.error} Invalid input. Please check the help below:`);
5660
cli.showHelp(2);

0 commit comments

Comments
 (0)