Skip to content

Commit 881c32f

Browse files
committed
Fix: --version command was wrong (fixes #70)
1 parent 3038a53 commit 881c32f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/common/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const {sync: readPkgUp} = require("read-pkg-up")
2424
* @private
2525
*/
2626
module.exports = function printVersion(output) {
27-
const version = readPkgUp(__dirname).pkg.version
27+
const version = readPkgUp({cwd: __dirname}).pkg.version
2828

2929
output.write(`v${version}\n`)
3030

0 commit comments

Comments
 (0)