ember-cli-update
Version:
Update Ember CLI projects
26 lines (23 loc) • 573 B
JavaScript
;
require('yargs')
.commandDir('commands')
.parserConfiguration({
'populate--': true,
'unknown-options-as-args': true
})
.argv;
// Displays a message on the terminal if a new version of the package is available.
const updateNotifier = require('update-notifier');
const pkg = require('../package.json');
updateNotifier({
pkg,
updateCheckInterval: 1000 * 60 * 60 * 24 * 14, // 2 weeks
boxenOpts: {
padding: 1,
margin: 1,
align: 'center',
borderColor: 'yellow',
borderStyle: 'round'
}
}).notify();