Read version directly from package.json
This commit is contained in:
		| @@ -8,7 +8,7 @@ import * as yargs from 'yargs'; | |||||||
|  |  | ||||||
| export const cli = yargs | export const cli = yargs | ||||||
| 	.usage('Extract strings from files for translation.\nUsage: $0 [options]') | 	.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') | 	.alias('version', 'v') | ||||||
| 	.help('help') | 	.help('help') | ||||||
| 	.alias('help', 'h') | 	.alias('help', 'h') | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user