Skip to content

Commit bb30992

Browse files
committed
fix: command usage fix
Made npm bin definition work with gga
1 parent 5a61346 commit bb30992

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
"node": ">=6.0.0"
2626
},
2727
"preferGlobal": true,
28-
"bin": "./dist/lib/gga.js",
28+
"bin": {
29+
"gga": "./dist/lib/gga.js"
30+
},
2931
"scripts": {
3032
"lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
3133
"prebuild": "rimraf dist",

src/gga.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import * as program from 'commander'
44
import allCommands from './commands/all-commands'
55

6-
program.version('1.2.0').description('Cli tool for bootstrapping production grade GraphQL server')
6+
program.version('1.2.2').description('Cli tool for bootstrapping production grade GraphQL server')
77

88
for (let command of allCommands) {
99
program

0 commit comments

Comments
 (0)