Skip to content

Commit 3375af3

Browse files
committed
fix: made version automatic
using pkginfo for getting module version
1 parent be0db65 commit 3375af3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/gga.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
import * as program from 'commander'
44
import allCommands from './commands/all-commands'
5-
65
require('pkginfo')(module, 'version')
76

8-
program.version(module.exports.version).description('Cli tool for bootstrapping production grade GraphQL server')
7+
program
8+
.version(module.exports.version)
9+
.description('Cli tool for bootstrapping production grade GraphQL server')
910

1011
for (let command of allCommands) {
1112
program

0 commit comments

Comments
 (0)