Skip to content

Commit 18de646

Browse files
Merge pull request #29 from Contentstack-Solutions/bugfix/CS-36588-oclif
Update bin file & refactor command
2 parents 399b84f + 0917afb commit 18de646

File tree

4 files changed

+31
-28
lines changed

4 files changed

+31
-28
lines changed

bin/run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22

33
(async () => {
4-
const oclif = require('@contentstack/cli-utilities/node_modules/@oclif/core')
5-
await oclif.execute({ type: 'cjs', dir: __dirname })
4+
const {execute} = require('@contentstack/cli-utilities')
5+
await execute({ type: 'cjs', dir: __dirname })
66
})()

package-lock.json

Lines changed: 25 additions & 22 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.0",
4+
"version": "2.1.1",
55
"author": "Michael Davis",
66
"bugs": "https://github.com/Contentstack-Solutions/contentstack-cli-tsgen/issues",
77
"dependencies": {
8-
"@contentstack/cli-command": "^1.2.0",
9-
"@contentstack/cli-utilities": "^1.2.0",
8+
"@contentstack/cli-command": "^1.2.1",
9+
"@contentstack/cli-utilities": "^1.3.0",
1010
"lodash": "^4.17.20",
1111
"prettier": "^2.0.5",
1212
"tslib": "^1.13.0"

src/commands/tsgen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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: any = {
16+
static flags = {
1717
'token-alias': flags.string({
1818
char: 'a',
1919
description: 'delivery token alias',

0 commit comments

Comments
 (0)