Skip to content

Commit

Permalink
Upgrade update-notifier logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Dec 8, 2019
1 parent cc586dc commit 439a233
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/bin/main.js
@@ -1,5 +1,5 @@
#!/usr/bin/env node
import { exit, env } from 'process'
import { exit } from 'process'

import UpdateNotifier from 'update-notifier'
import readPkgUp from 'read-pkg-up'
Expand All @@ -25,8 +25,7 @@ const runCli = async function() {

const checkUpdate = async function() {
const { packageJson } = await readPkgUp({ cwd: __dirname, normalize: false })
const disabled = env.NODE_ENV === 'test'
UpdateNotifier({ pkg: packageJson, disabled }).notify()
UpdateNotifier({ pkg: packageJson }).notify()
}

const runCommand = async function(code, opts) {
Expand Down

0 comments on commit 439a233

Please sign in to comment.