Skip to content

Commit

Permalink
fix: fixed 'program.name(...).version is not a function'
Browse files Browse the repository at this point in the history
  • Loading branch information
tgbv committed Sep 29, 2024
1 parent 65fe7e6 commit 31d4be7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "git",
"url": "https://github.com/tgbv/cognigy-vg.git"
},
"version": "1.1.0",
"version": "1.1.1",
"description": "CLI to interact with Cognigy Voice Gateway.",
"keywords": [
"cli", "cognigy", "cognigy-vg", "voice-gateway"
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ import pushCommand from "./commands/push";
import cloneCommand from "./commands/clone";
import snapshotCommand from "./commands/snapshot";
import setToken from "./commands/set-token";
import { loadJsonFile } from "./lib";

const resourceTypesArg = new Argument('<resoureType>', 'Resource type to pull from API.')
.choices(['app', 'carrier', 'speech', 'phone', 'obroutes']);

const program = new Command();

const packageJson = JSON.parse(readFileSync('./package.json').toString());
const packageJson = loadJsonFile(`${__dirname}/../package.json`);

program
.name(packageJson.name)
Expand Down

0 comments on commit 31d4be7

Please sign in to comment.