netlify-cli
Version:
Netlify command line tool
19 lines (14 loc) • 366 B
JavaScript
const updateNotifier = require('update-notifier')
const pkg = require('../package.json')
// 12 hours
const UPDATE_CHECK_INTERVAL = 432e5
try {
updateNotifier({
pkg,
updateCheckInterval: UPDATE_CHECK_INTERVAL,
}).notify()
} catch (error) {
console.log('Error checking for updates:')
console.log(error)
}
module.exports = require('@oclif/command')