Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
fix(version): hand version to yargs directly
Browse files Browse the repository at this point in the history
This fixes an issue where other things using libnpx would
report the parent package's version instead of the npx version
  • Loading branch information
zkat committed Jul 8, 2017
1 parent 2d42248 commit e0b5eeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ function yargsParser (argv, defaultNpm) {
type: 'string',
default: defaultNpm || 'npm'
})
.version()
.version(() => require('./package.json').version)
.alias('version', 'v')
.help()
.alias('help', 'h')
Expand Down

0 comments on commit e0b5eeb

Please sign in to comment.