Read version directly from package.json

This commit is contained in:
Kim Biesbjerg 2017-03-21 15:27:24 +01:00
parent 4537c1224a
commit 371a14d73e

View File

@ -8,7 +8,7 @@ import * as yargs from 'yargs';
export const cli = yargs
.usage('Extract strings from files for translation.\nUsage: $0 [options]')
.version('2.0.0') // TODO: Read from package.json
.version(require(__dirname + '/../../package.json').version)
.alias('version', 'v')
.help('help')
.alias('help', 'h')