File tree Expand file tree Collapse file tree 4 files changed +41
-7
lines changed
Expand file tree Collapse file tree 4 files changed +41
-7
lines changed Original file line number Diff line number Diff 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
1111version: "1.0"
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff 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 || "" ) ;
You can’t perform that action at this time.
0 commit comments