Skip to content

Commit d9b2854

Browse files
committed
Prevent update notification from displaying when piping output.
1 parent 3f8b46a commit d9b2854

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/doxdox

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ const args = require('parse-cmd-args')(null, {
1717
'requireUserInput': true
1818
});
1919

20-
updateNotifier({pkg}).notify();
20+
updateNotifier({
21+
'defer': true,
22+
pkg
23+
}).notify();
2124

2225
if (args.flags['--version'] || args.flags['-v']) {
2326

0 commit comments

Comments
 (0)