Skip to content

Commit

Permalink
Merge branch 'development' into feat/CS-42473-live-preview
Browse files Browse the repository at this point in the history
  • Loading branch information
cs-raj authored Feb 6, 2024
2 parents e4d7f8f + 59d4c56 commit d4496b8
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 19 deletions.
8 changes: 4 additions & 4 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 packages/contentstack-audit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $ npm install -g @contentstack/cli-audit
$ csdx COMMAND
running command...
$ csdx (--version|-v)
@contentstack/cli-audit/1.3.4 darwin-arm64 node-v20.8.0
@contentstack/cli-audit/1.3.5 darwin-arm64 node-v20.8.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-config
$ csdx COMMAND
running command...
$ csdx (--version)
@contentstack/cli-config/1.6.0 darwin-arm64 node-v20.8.0
@contentstack/cli-config/1.6.2 darwin-arm64 node-v20.8.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-config/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-config",
"description": "Contentstack CLI plugin for configuration",
"version": "1.6.1",
"version": "1.6.2",
"author": "Contentstack",
"scripts": {
"build": "npm run clean && npm run compile",
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-export/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ $ npm install -g @contentstack/cli-cm-export
$ csdx COMMAND
running command...
$ csdx (--version)
@contentstack/cli-cm-export/1.10.4 darwin-arm64 node-v20.8.0
@contentstack/cli-cm-export/1.10.5 darwin-arm64 node-v20.8.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-export/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-cm-export",
"description": "Contentstack CLI plugin to export content from stack",
"version": "1.10.4",
"version": "1.10.5",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"dependencies": {
Expand Down
2 changes: 0 additions & 2 deletions packages/contentstack-export/src/commands/cm/stacks/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,12 @@ export default class ExportCommand extends Command {
module: flags.string({
char: 'm',
description: '[optional] specific module name',
exclusive: ['content-types'],
parse: printFlagDeprecation(['-m'], ['--module']),
}),
'content-types': flags.string({
char: 't',
description: '[optional] content type',
multiple: true,
exclusive: ['module'],
parse: printFlagDeprecation(['-t'], ['--content-types']),
}),
branch: flags.string({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ContentTypesExport {
include_global_field_schema: true,
};
// If content type id is provided then use it as part of query
if (Array.isArray(this.exportConfig.contentTypes) && this.exportConfig.length > 0) {
if (Array.isArray(this.exportConfig.contentTypes) && this.exportConfig.contentTypes.length > 0) {
this.qs.uid = { $in: this.exportConfig.contentTypes };
}
this.contentTypesPath = path.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default class ContentTypesExport extends BaseClass {
skip?: number;
limit?: number;
include_global_field_schema: boolean;
uid?: Record<string, string[]>
};
private contentTypesConfig: {
dirName?: string;
Expand All @@ -35,6 +36,12 @@ export default class ContentTypesExport extends BaseClass {
limit: this.contentTypesConfig.limit,
include_global_field_schema: true,
};

// If content type id is provided then use it as part of query
if (Array.isArray(this.exportConfig.contentTypes) && this.exportConfig.contentTypes.length > 0) {
this.qs.uid = { $in: this.exportConfig.contentTypes };
}

this.contentTypesDirPath = path.resolve(
exportConfig.data,
exportConfig.branchName || '',
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-import/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ $ npm install -g @contentstack/cli-cm-import
$ csdx COMMAND
running command...
$ csdx (--version)
@contentstack/cli-cm-import/1.13.2 darwin-arm64 node-v20.8.0
@contentstack/cli-cm-import/1.13.3 darwin-arm64 node-v20.8.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-launch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $ npm install -g @contentstack/cli-launch
$ csdx COMMAND
running command...
$ csdx (--version|-v)
@contentstack/cli-launch/1.0.16 darwin-arm64 node-v20.10.0
@contentstack/cli-launch/1.0.16 darwin-arm64 node-v20.8.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli
$ csdx COMMAND
running command...
$ csdx (--version|-v)
@contentstack/cli/1.13.0 darwin-arm64 node-v20.10.0
@contentstack/cli/1.13.3 darwin-arm64 node-v20.8.0
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
Expand Down
4 changes: 2 additions & 2 deletions packages/contentstack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
"@contentstack/cli-cm-bootstrap": "~1.8.0",
"@contentstack/cli-cm-branches": "~1.0.22",
"@contentstack/cli-cm-bulk-publish": "~1.4.0",
"@contentstack/cli-cm-export": "~1.10.5",
"@contentstack/cli-cm-clone": "~1.10.0",
"@contentstack/cli-cm-export": "~1.10.4",
"@contentstack/cli-cm-export-to-csv": "~1.6.2",
"@contentstack/cli-cm-import": "~1.13.3",
"@contentstack/cli-cm-migrate-rte": "~1.4.15",
"@contentstack/cli-cm-seed": "~1.7.1",
"@contentstack/cli-command": "~1.2.17",
"@contentstack/cli-config": "~1.6.1",
"@contentstack/cli-config": "~1.6.2",
"@contentstack/cli-launch": "~1.0.16",
"@contentstack/cli-migration": "~1.4.2",
"@contentstack/cli-utilities": "~1.5.11",
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

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

0 comments on commit d4496b8

Please sign in to comment.