Skip to content

Commit

Permalink
Only show update message in production
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Jan 28, 2017
1 parent 5480881 commit 516ad20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/now.js
Expand Up @@ -26,7 +26,7 @@ if (nodeVersion.major < 6) {
}

// Only check for updates in the npm version
if (!process.pkg) {
if (!process.pkg && pkg.dist) {
updateNotifier({pkg}).notify()
}

Expand Down

0 comments on commit 516ad20

Please sign in to comment.