Skip to content

Commit ef4ea37

Browse files
Merge pull request #208 from contentstack/enhancement/DX-2968
add support for editable tags
2 parents 85d9dfe + 1dd83ae commit ef4ea37

File tree

4 files changed

+19
-10
lines changed

4 files changed

+19
-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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ export default class TypeScriptCodeGeneratorCommand extends Command {
8787
default: false,
8888
}),
8989

90+
"include-editable-tags": flags.boolean({
91+
description: "include editable tags in generated types",
92+
default: false,
93+
}),
94+
9095
"api-type": flags.string({
9196
default: "rest",
9297
multiple: false,
@@ -111,6 +116,7 @@ export default class TypeScriptCodeGeneratorCommand extends Command {
111116
const filePath = flags.output;
112117
const branch = flags.branch;
113118
const includeSystemFields = flags["include-system-fields"];
119+
const includeEditableTags = flags["include-editable-tags"];
114120
const namespace = flags.namespace;
115121

116122
const outputPath = createOutputPath(filePath);
@@ -193,6 +199,7 @@ export default class TypeScriptCodeGeneratorCommand extends Command {
193199
includeDocumentation: includeDocumentation,
194200
prefix,
195201
systemFields: includeSystemFields,
202+
isEditableTags: includeEditableTags,
196203
});
197204

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

0 commit comments

Comments
 (0)