Skip to content

Commit

Permalink
fixed the issue of filtering entries using the content-type flag in b…
Browse files Browse the repository at this point in the history
…oth cross-publish and entries publish and version bump
  • Loading branch information
cs-raj committed Apr 17, 2024
1 parent cf6d7f7 commit e5c8005
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
24 changes: 12 additions & 12 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions packages/contentstack-bulk-publish/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-cm-bulk-publish",
"description": "Contentstack CLI plugin for bulk publish actions",
"version": "1.4.4",
"version": "1.4.5",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"dependencies": {
Expand Down Expand Up @@ -99,4 +99,4 @@
"version": "oclif readme && git add README.md",
"clean": "rm -rf ./node_modules tsconfig.build.tsbuildinfo"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class CrossPublishCommand extends Command {

flagsAdapter(_flags) {
if ('content-type' in _flags) {
_flags.contentType = _flags['content-type'];
_flags.contentTypes = _flags['content-type'];
delete _flags['content-type'];
}
if ('locales' in _flags) {
Expand Down Expand Up @@ -196,7 +196,7 @@ CrossPublishCommand.flags = {
default: 'true',
}),
'api-version': flags.string({
description : "API Version to be used. Values [Default: 3, Nested Reference Publishing: 3.2].",
description: 'API Version to be used. Values [Default: 3, Nested Reference Publishing: 3.2].',
}),
contentType: flags.string({
char: 't',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ async function start(
bulkPublish,
_filter,
deliveryToken,
contentType,
contentTypes,
environment,
locale,
onlyAssets,
Expand Down Expand Up @@ -292,8 +292,8 @@ async function start(
};
if (f_types) filter.type = f_types;
// filter.type = (f_types) ? f_types : types // types mentioned in the config file (f_types) are given preference
if (contentType) {
filter.content_type_uid = contentType;
if (contentTypes) {
filter.content_type_uid = contentTypes;
filter.type = 'entry_published';
}
if (onlyAssets) {
Expand Down
4 changes: 2 additions & 2 deletions packages/contentstack/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli",
"description": "Command-line tool (CLI) to interact with Contentstack",
"version": "1.17.3",
"version": "1.17.4",
"author": "Contentstack",
"bin": {
"csdx": "./bin/run"
Expand All @@ -26,7 +26,7 @@
"@contentstack/cli-auth": "~1.3.17",
"@contentstack/cli-cm-bootstrap": "~1.9.0",
"@contentstack/cli-cm-branches": "~1.0.24",
"@contentstack/cli-cm-bulk-publish": "~1.4.4",
"@contentstack/cli-cm-bulk-publish": "~1.4.5",
"@contentstack/cli-cm-export": "~1.11.2",
"@contentstack/cli-cm-clone": "~1.10.3",
"@contentstack/cli-cm-export-to-csv": "~1.7.0",
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

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

0 comments on commit e5c8005

Please sign in to comment.