Skip to content

Commit 3777b78

Browse files
committed
Added update-notifier package.
1 parent 79b302f commit 3777b78

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

bin/doxdox

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
const fs = require('fs');
66
const chalk = require('chalk');
7+
const updateNotifier = require('update-notifier');
78

89
const doxdox = require('../lib/doxdox');
910

@@ -16,6 +17,8 @@ const args = require('parse-cmd-args')(null, {
1617
'requireUserInput': true
1718
});
1819

20+
updateNotifier({pkg}).notify();
21+
1922
if (args.flags['--version'] || args.flags['-v']) {
2023

2124
process.stdout.write(`${pkg.version}\n`);

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"doxdox-plugin-handlebars": "^1.0.x",
1818
"doxdox-plugin-markdown": "^1.0.x",
1919
"globby": "6.1.0",
20-
"parse-cmd-args": "2.0.0"
20+
"parse-cmd-args": "2.0.0",
21+
"update-notifier": "1.0.2"
2122
},
2223
"devDependencies": {
2324
"@neogeek/eslint-config-standards": "1.7.0",

0 commit comments

Comments
 (0)