Skip to content
This repository was archived by the owner on Jan 5, 2025. It is now read-only.

Commit a9ff2f6

Browse files
committed
Add update-notifier checks when run from command line
1 parent 95a0c59 commit a9ff2f6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

bin/bower-npm-install

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
#!/usr/bin/env node
22

3+
var updateNotifier = require('update-notifier'),
4+
notifier = updateNotifier({ packagePath: '../package.json' });
5+
6+
if (notifier.update) {
7+
notifier.notify();
8+
}
9+
310
require('../lib/coa').run();

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"coa": "~0.4.0",
2222
"q-io": "~1.9.1",
2323
"lodash": "~1.3.1",
24-
"cli-color": "~0.2.2"
24+
"cli-color": "~0.2.2",
25+
"update-notifier": "~0.1.3"
2526
},
2627
"peerDependencies": {
2728
"bower": "~0.10.0"

0 commit comments

Comments
 (0)