Skip to content

Commit 2abad13

Browse files
authored
Merge pull request #32 from Contentstack-Solutions/feat/CS-32562
Type fix and version bumped
2 parents 18de646 + c3b971b commit 2abad13

File tree

3 files changed

+67
-30
lines changed

3 files changed

+67
-30
lines changed

package-lock.json

Lines changed: 62 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "contentstack-cli-tsgen",
33
"description": "Generate TypeScript typings from a Stack.",
4-
"version": "2.1.1",
4+
"version": "2.1.2",
55
"author": "Michael Davis",
66
"bugs": "https://github.com/Contentstack-Solutions/contentstack-cli-tsgen/issues",
77
"dependencies": {
8-
"@contentstack/cli-command": "^1.2.1",
9-
"@contentstack/cli-utilities": "^1.3.0",
8+
"@contentstack/cli-command": "^1.2.7",
9+
"@contentstack/cli-utilities": "^1.4.3",
1010
"lodash": "^4.17.20",
1111
"prettier": "^2.0.5",
1212
"tslib": "^1.13.0"

src/commands/tsgen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Command} from '@contentstack/cli-command'
2-
import {flags} from '@contentstack/cli-utilities'
2+
import {FlagInput, flags} from '@contentstack/cli-utilities'
33
import {getGlobalFields, stackConnect, StackConnectionConfig} from '../lib/stack/client'
44
import {ContentType} from '../lib/stack/schema'
55
import tsgenRunner from '../lib/tsgen/runner'
@@ -13,7 +13,7 @@ export default class TypeScriptCodeGeneratorCommand extends Command {
1313
'$ csdx tsgen -a "delivery token alias" -o "contentstack/generated.d.ts" --no-doc',
1414
];
1515

16-
static flags = {
16+
static flags: FlagInput = {
1717
'token-alias': flags.string({
1818
char: 'a',
1919
description: 'delivery token alias',

0 commit comments

Comments
 (0)