Skip to content

Commit

Permalink
Pick version from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
sanemat authored and tjunnone committed Dec 7, 2014
1 parent 994050a commit 7888d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/npm-check-updates.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function printDependencyUpgrades(currentDependencies, upgradedDependencies, inst
}

program
.version('1.2.0')
.version(require('../package').version)
.usage('[options] <package.json or dir>')
.option('-g, --global', 'check global packages instead of in the current project')
.option('-s, --silent', "don't output anything")
Expand Down

0 comments on commit 7888d70

Please sign in to comment.