Skip to content

add support for editable tags #208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ fileignoreconfig:
- filename: src/commands/tsgen.ts
checksum: b797eacb07acbf02dc0092c2453a6e13360f3b4c5fb54dc7f9a762cdd092fd0a
- filename: package-lock.json
checksum: 306cc0f75f3685ad2651283d15db8052026e9c65314e009b6a3e5fc26a872bbc
checksum: 041d601bc767ec76b5df6107579154e15003cf7059da990c43f325130e4db532
version: "1.0"
37 changes: 32 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "contentstack-cli-tsgen",
"description": "Generate TypeScript typings from a Stack.",
"version": "4.1.0",
"version": "4.2.0",
"author": "Michael Davis",
"bugs": "https://github.com/Contentstack-Solutions/contentstack-cli-tsgen/issues",
"dependencies": {
Expand Down
7 changes: 7 additions & 0 deletions src/commands/tsgen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@
default: false,
}),

"include-editable-tags": flags.boolean({
description: "include editable tags in generated types",
default: false,
}),

"api-type": flags.string({
default: "rest",
multiple: false,
Expand All @@ -110,6 +115,7 @@
const filePath = flags.output;
const branch = flags.branch;
const includeSystemFields = flags["include-system-fields"];
const includeEditableTags = flags["include-editable-tags"];
const namespace = flags.namespace;

const outputPath = createOutputPath(filePath);
Expand Down Expand Up @@ -192,6 +198,7 @@
includeDocumentation: includeDocumentation,
prefix,
systemFields: includeSystemFields,
isEditableTags: includeEditableTags,

Check failure on line 201 in src/commands/tsgen.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Object literal may only specify known properties, and 'isEditableTags' does not exist in type 'GenerateTSBase'.

Check failure on line 201 in src/commands/tsgen.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Object literal may only specify known properties, and 'isEditableTags' does not exist in type 'GenerateTSBase'.
});

fs.writeFileSync(outputPath, result || "");
Expand Down
Loading