diff --git a/bin/cmd.js b/bin/cmd.js index 4a001ec..7ebc7ce 100755 --- a/bin/cmd.js +++ b/bin/cmd.js @@ -2,6 +2,8 @@ 'use strict'; const meow = require('meow'); const chalk = require('chalk'); +const updateNotifier = require('update-notifier'); +const pkg = require('../package.json'); const cliHandler = require('../lib/cli-handler'); const cli = meow(` Usage @@ -26,6 +28,11 @@ const cli = meow(` ... } */ +updateNotifier({ + pkg: pkg, + updateCheckInterval: 1000 * 60 * 60 * 24 * 7 +}).notify(); + if (cli.input.length === 0 || cli.flags.help) { cli.showHelp(); } else { diff --git a/package.json b/package.json index 8fd243f..bc0b0d4 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ "cross-spawn": "^5.0.1", "cross-spawn-promise": "^0.9.0", "meow": "^3.7.0", - "rimraf": "^2.5.4" + "rimraf": "^2.5.4", + "update-notifier": "^1.0.3" } }