UNPKG

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