Skip to content

Commit d31fb7c

Browse files
author
naman-contentstack
committed
add support for editable tags
1 parent 4696b49 commit d31fb7c

File tree

4 files changed

+41
-7
lines changed

4 files changed

+41
-7
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: 041d601bc767ec76b5df6107579154e15003cf7059da990c43f325130e4db532
1111
version: "1.0"

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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": {

src/commands/tsgen.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ export default class TypeScriptCodeGeneratorCommand extends Command {
8686
default: false,
8787
}),
8888

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

115121
const outputPath = createOutputPath(filePath);
@@ -192,6 +198,7 @@ export default class TypeScriptCodeGeneratorCommand extends Command {
192198
includeDocumentation: includeDocumentation,
193199
prefix,
194200
systemFields: includeSystemFields,
201+
isEditableTags: includeEditableTags,
195202
});
196203

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

0 commit comments

Comments
 (0)