Skip to content

Commit a6bbf20

Browse files
Merge pull request #62 from Contentstack-Solutions/staging
Merge staging to master
2 parents 6eef9ee + b8de2b3 commit a6bbf20

File tree

8 files changed

+324
-68
lines changed

8 files changed

+324
-68
lines changed

package-lock.json

Lines changed: 110 additions & 59 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.8",
4+
"version": "2.2.0",
55
"author": "Michael Davis",
66
"bugs": "https://github.com/Contentstack-Solutions/contentstack-cli-tsgen/issues",
77
"dependencies": {
8-
"@contentstack/cli-command": "^1.2.9",
9-
"@contentstack/cli-utilities": "^1.4.5",
8+
"@contentstack/cli-command": "^1.2.13",
9+
"@contentstack/cli-utilities": "^1.5.2",
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
@@ -85,7 +85,7 @@ export default class TypeScriptCodeGeneratorCommand extends Command {
8585
branch: branch || null,
8686
}
8787

88-
const [client, globalFields] = await Promise.all([stackConnect(this.deliveryAPIClient.Stack, config), getGlobalFields(config)])
88+
const [client, globalFields] = await Promise.all([stackConnect(this.deliveryAPIClient.Stack, config, this.cdaHost), getGlobalFields(config, this.cdaHost)])
8989

9090
let schemas: ContentType[] = []
9191
if (client.types?.length) {

0 commit comments

Comments
 (0)