Skip to content

Commit 42520a9

Browse files
Merge pull request #22 from Contentstack-Solutions/fix/flags_undefined_fix
fix: this.parse is a asyncfunction
2 parents 122141b + 5e5cb60 commit 42520a9

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
/tmp
77
/yarn.lock
88
node_modules
9+
.vscode/

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Contentstack Solutions
3+
Copyright (c) 2023 Contentstack Solutions
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "contentstack-cli-tsgen",
33
"description": "Generate TypeScript typings from a Stack.",
4-
"version": "1.0.13",
4+
"version": "1.0.14",
55
"author": "Michael Davis",
66
"bugs": "https://github.com/Contentstack-Solutions/contentstack-cli-tsgen/issues",
77
"dependencies": {

src/commands/tsgen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default class TypeScriptCodeGeneratorCommand extends Command {
4747

4848
async run() {
4949
try {
50-
const {flags} = this.parse(TypeScriptCodeGeneratorCommand)
50+
const {flags} = await this.parse(TypeScriptCodeGeneratorCommand)
5151

5252
const token = this.getToken(flags['token-alias'])
5353
const prefix = flags.prefix

0 commit comments

Comments
 (0)