diff --git a/core/cli/src/utils/updateNotifier.ts b/core/cli/src/utils/updateNotifier.ts index f6f8802..727f9a3 100644 --- a/core/cli/src/utils/updateNotifier.ts +++ b/core/cli/src/utils/updateNotifier.ts @@ -2,16 +2,16 @@ import * as updateNotifier from 'update-notifier'; import chalk from 'chalk'; const pkg = require('../../package.json'); -const notifier = updateNotifier({ +const { update } = updateNotifier({ pkg, shouldNotifyInNpmScript: true, updateCheckInterval: 30 * 60 * 1000 }); export default () => { - if (notifier.update) { + if (update && update.latest !== pkg.version) { return `${chalk.yellowBright('Update available:')} ${chalk.greenBright( - notifier.update.latest + update.latest )}\n`; } return '';