Skip to content

Commit beba249

Browse files
Merge pull request #210 from contentstack/staging
DX | 07-07-2025 | Release
2 parents e6a478b + 2a28c3f commit beba249

File tree

4 files changed

+20
-10
lines changed

4 files changed

+20
-10
lines changed

.talismanrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ fileignoreconfig:
77
- filename: src/commands/tsgen.ts
88
checksum: b797eacb07acbf02dc0092c2453a6e13360f3b4c5fb54dc7f9a762cdd092fd0a
99
- filename: package-lock.json
10-
checksum: 306cc0f75f3685ad2651283d15db8052026e9c65314e009b6a3e5fc26a872bbc
10+
checksum: 47f65f035595b46e68adc7baba9fcad24e41453057a3cfd1eeace54a8e93d34c
1111
version: "1.0"

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "contentstack-cli-tsgen",
33
"description": "Generate TypeScript typings from a Stack.",
4-
"version": "4.1.0",
4+
"version": "4.2.0",
55
"author": "Michael Davis",
66
"bugs": "https://github.com/Contentstack-Solutions/contentstack-cli-tsgen/issues",
77
"dependencies": {
88
"@contentstack/cli-command": "^1.5.0",
99
"@contentstack/cli-utilities": "^1.11.0",
10-
"@contentstack/types-generator": "^3.2.0",
10+
"@contentstack/types-generator": "^3.3.0",
1111
"dotenv": "^16.4.7"
1212
},
1313
"devDependencies": {

src/commands/tsgen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export default class TypeScriptCodeGeneratorCommand extends Command {
3434
const defaultRegions = [
3535
"US",
3636
"EU",
37+
"AU",
3738
"AZURE_NA",
3839
"AZURE_EU",
3940
"GCP_NA",
@@ -86,6 +87,11 @@ export default class TypeScriptCodeGeneratorCommand extends Command {
8687
default: false,
8788
}),
8889

90+
"include-editable-tags": flags.boolean({
91+
description: "include editable tags in generated types",
92+
default: false,
93+
}),
94+
8995
"api-type": flags.string({
9096
default: "rest",
9197
multiple: false,
@@ -110,6 +116,7 @@ export default class TypeScriptCodeGeneratorCommand extends Command {
110116
const filePath = flags.output;
111117
const branch = flags.branch;
112118
const includeSystemFields = flags["include-system-fields"];
119+
const includeEditableTags = flags["include-editable-tags"];
113120
const namespace = flags.namespace;
114121

115122
const outputPath = createOutputPath(filePath);
@@ -192,6 +199,7 @@ export default class TypeScriptCodeGeneratorCommand extends Command {
192199
includeDocumentation: includeDocumentation,
193200
prefix,
194201
systemFields: includeSystemFields,
202+
isEditableTags: includeEditableTags,
195203
});
196204

197205
fs.writeFileSync(outputPath, result || "");

0 commit comments

Comments
 (0)