Skip to content

Commit 563002b

Browse files
committed
perf: not need function for get version from pkg
1 parent 44e08e6 commit 563002b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

cli.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ var argv = require('yargs')
1717
.pkgConf('posthtml')
1818
.config()
1919
.alias('c', 'config')
20-
.version(function () {
21-
return require('./package.json').version
22-
})
20+
.version()
2321
.alias('v', 'version')
2422
.help('h')
2523
.alias('h', 'help')

0 commit comments

Comments
 (0)