1 | #!/usr/bin/env node
|
2 |
|
3 | // Dependencies
|
4 | var cli = require('../index.js');
|
5 | var pkg = require('../package.json');
|
6 | var updateNotifier = require('update-notifier');
|
7 |
|
8 |
|
9 | // Check for update
|
10 | var notifier = updateNotifier({
|
11 | packageName: pkg.name,
|
12 | packageVersion: pkg.version,
|
13 | updateCheckInterval: 1000 * 60 * 60 * 24 * 7
|
14 | });
|
15 |
|
16 | // Notify if update available
|
17 | if (notifier.update) {
|
18 | notifier.notify();
|
19 | }
|
20 |
|
21 | // Run the command
|
22 | cli.run(process.argv);
|