@contentstack/cli-cm-export 1.10.4 → 1.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ $ npm install -g @contentstack/cli-cm-export
|
|
|
48
48
|
$ csdx COMMAND
|
|
49
49
|
running command...
|
|
50
50
|
$ csdx (--version)
|
|
51
|
-
@contentstack/cli-cm-export/1.10.
|
|
51
|
+
@contentstack/cli-cm-export/1.10.5 linux-x64 node-v18.19.0
|
|
52
52
|
$ csdx --help [COMMAND]
|
|
53
53
|
USAGE
|
|
54
54
|
$ csdx COMMAND
|
|
@@ -85,14 +85,12 @@ ExportCommand.flags = {
|
|
|
85
85
|
module: cli_utilities_1.flags.string({
|
|
86
86
|
char: 'm',
|
|
87
87
|
description: '[optional] specific module name',
|
|
88
|
-
exclusive: ['content-types'],
|
|
89
88
|
parse: (0, cli_utilities_1.printFlagDeprecation)(['-m'], ['--module']),
|
|
90
89
|
}),
|
|
91
90
|
'content-types': cli_utilities_1.flags.string({
|
|
92
91
|
char: 't',
|
|
93
92
|
description: '[optional] content type',
|
|
94
93
|
multiple: true,
|
|
95
|
-
exclusive: ['module'],
|
|
96
94
|
parse: (0, cli_utilities_1.printFlagDeprecation)(['-t'], ['--content-types']),
|
|
97
95
|
}),
|
|
98
96
|
branch: cli_utilities_1.flags.string({
|
|
@@ -15,6 +15,10 @@ class ContentTypesExport extends base_class_1.default {
|
|
|
15
15
|
limit: this.contentTypesConfig.limit,
|
|
16
16
|
include_global_field_schema: true,
|
|
17
17
|
};
|
|
18
|
+
// If content type id is provided then use it as part of query
|
|
19
|
+
if (Array.isArray(this.exportConfig.contentTypes) && this.exportConfig.contentTypes.length > 0) {
|
|
20
|
+
this.qs.uid = { $in: this.exportConfig.contentTypes };
|
|
21
|
+
}
|
|
18
22
|
this.contentTypesDirPath = path.resolve(exportConfig.data, exportConfig.branchName || '', this.contentTypesConfig.dirName);
|
|
19
23
|
this.contentTypes = [];
|
|
20
24
|
}
|
|
@@ -13,7 +13,7 @@ class ContentTypesExport {
|
|
|
13
13
|
include_global_field_schema: true,
|
|
14
14
|
};
|
|
15
15
|
// If content type id is provided then use it as part of query
|
|
16
|
-
if (Array.isArray(this.exportConfig.contentTypes) && this.exportConfig.length > 0) {
|
|
16
|
+
if (Array.isArray(this.exportConfig.contentTypes) && this.exportConfig.contentTypes.length > 0) {
|
|
17
17
|
this.qs.uid = { $in: this.exportConfig.contentTypes };
|
|
18
18
|
}
|
|
19
19
|
this.contentTypesPath = path.resolve(exportConfig.data, exportConfig.branchName || '', this.contentTypesConfig.dirName);
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.10.
|
|
2
|
+
"version": "1.10.5",
|
|
3
3
|
"commands": {
|
|
4
4
|
"cm:stacks:export": {
|
|
5
5
|
"id": "cm:stacks:export",
|
|
@@ -85,20 +85,14 @@
|
|
|
85
85
|
"type": "option",
|
|
86
86
|
"char": "m",
|
|
87
87
|
"description": "[optional] specific module name",
|
|
88
|
-
"multiple": false
|
|
89
|
-
"exclusive": [
|
|
90
|
-
"content-types"
|
|
91
|
-
]
|
|
88
|
+
"multiple": false
|
|
92
89
|
},
|
|
93
90
|
"content-types": {
|
|
94
91
|
"name": "content-types",
|
|
95
92
|
"type": "option",
|
|
96
93
|
"char": "t",
|
|
97
94
|
"description": "[optional] content type",
|
|
98
|
-
"multiple": true
|
|
99
|
-
"exclusive": [
|
|
100
|
-
"module"
|
|
101
|
-
]
|
|
95
|
+
"multiple": true
|
|
102
96
|
},
|
|
103
97
|
"branch": {
|
|
104
98
|
"name": "branch",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-cm-export",
|
|
3
3
|
"description": "Contentstack CLI plugin to export content from stack",
|
|
4
|
-
"version": "1.10.
|
|
4
|
+
"version": "1.10.5",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@contentstack/cli-auth": "~1.3.17",
|
|
28
|
-
"@contentstack/cli-config": "~1.6.
|
|
28
|
+
"@contentstack/cli-config": "~1.6.1",
|
|
29
29
|
"@contentstack/cli-dev-dependencies": "~1.2.4",
|
|
30
30
|
"@oclif/plugin-help": "^5.1.19",
|
|
31
31
|
"@oclif/test": "^2.5.6",
|