From 1b31573919184cc7ad47c359c40a7a0241a5a956 Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Wed, 1 Mar 2023 09:53:14 +0000 Subject: [PATCH 1/2] fix: this.parse is a asyncfunction --- .gitignore | 1 + package.json | 2 +- src/commands/tsgen.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a96fd72..f2190a4 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /tmp /yarn.lock node_modules +.vscode/ diff --git a/package.json b/package.json index 96950ed..5b0c4cf 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "contentstack-cli-tsgen", "description": "Generate TypeScript typings from a Stack.", - "version": "1.0.13", + "version": "1.0.14", "author": "Michael Davis", "bugs": "https://github.com/Contentstack-Solutions/contentstack-cli-tsgen/issues", "dependencies": { diff --git a/src/commands/tsgen.ts b/src/commands/tsgen.ts index 4ae5873..471c0bd 100644 --- a/src/commands/tsgen.ts +++ b/src/commands/tsgen.ts @@ -47,7 +47,7 @@ export default class TypeScriptCodeGeneratorCommand extends Command { async run() { try { - const {flags} = this.parse(TypeScriptCodeGeneratorCommand) + const {flags} = await this.parse(TypeScriptCodeGeneratorCommand) const token = this.getToken(flags['token-alias']) const prefix = flags.prefix From 5e5cb60750c1cb29022d7d50dfa3d05f6db3f0dc Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Fri, 3 Mar 2023 14:41:16 +0000 Subject: [PATCH 2/2] fix: updated license --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 9f2c887..2ecf839 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 Contentstack Solutions +Copyright (c) 2023 Contentstack Solutions Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal