diff --git a/bin/index.js b/bin/index.js index 57f1724..f69306c 100755 --- a/bin/index.js +++ b/bin/index.js @@ -4,6 +4,10 @@ const chalk = require('chalk'); const inquirer = require('inquirer'); const clipboardy = require('clipboardy'); const nfh = require('@jswork/node-fetch-html'); +const updateNotifier = require('update-notifier'); +const pkg = require('../package.json'); + +updateNotifier({ pkg }).notify(); // next packages: require('@jswork/next'); diff --git a/package.json b/package.json index 9151fca..15b8d55 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "gulp-rename": "^2.0.0", "inquirer": "^8.2.4", "require-dir": "^1.2.0", + "update-notifier": "^5.1.0", "yargs": "^13.2.4" }, "devDependencies": {