@contentstack/cli-cm-import 1.14.0 → 1.14.1
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
|
@@ -47,7 +47,7 @@ $ npm install -g @contentstack/cli-cm-import
|
|
|
47
47
|
$ csdx COMMAND
|
|
48
48
|
running command...
|
|
49
49
|
$ csdx (--version)
|
|
50
|
-
@contentstack/cli-cm-import/1.14.
|
|
50
|
+
@contentstack/cli-cm-import/1.14.1 linux-x64 node-v18.19.1
|
|
51
51
|
$ csdx --help [COMMAND]
|
|
52
52
|
USAGE
|
|
53
53
|
$ csdx COMMAND
|
package/lib/config/index.js
CHANGED
|
@@ -148,7 +148,7 @@ const config = {
|
|
|
148
148
|
taxonomies: {
|
|
149
149
|
dirName: 'taxonomies',
|
|
150
150
|
fileName: 'taxonomies.json',
|
|
151
|
-
}
|
|
151
|
+
},
|
|
152
152
|
},
|
|
153
153
|
languagesCode: [
|
|
154
154
|
'af-za',
|
|
@@ -388,5 +388,12 @@ const config = {
|
|
|
388
388
|
// useBackedupDir: '',
|
|
389
389
|
// backupConcurrency: 10,
|
|
390
390
|
onlyTSModules: ['taxonomies'],
|
|
391
|
+
auditConfig: {
|
|
392
|
+
noLog: false,
|
|
393
|
+
skipConfirm: true,
|
|
394
|
+
returnResponse: true,
|
|
395
|
+
noTerminalOutput: false,
|
|
396
|
+
config: { basePath: '' }, // To overwrite any build-in config. And this config is equal to --config flag.
|
|
397
|
+
}
|
|
391
398
|
};
|
|
392
399
|
exports.default = config;
|
|
@@ -97,13 +97,8 @@ class ModuleImporter {
|
|
|
97
97
|
*/
|
|
98
98
|
async auditImportData(logger) {
|
|
99
99
|
const basePath = (0, path_1.resolve)(this.importConfig.backupDir, 'logs', 'audit');
|
|
100
|
-
const auditConfig =
|
|
101
|
-
|
|
102
|
-
skipConfirm: true,
|
|
103
|
-
returnResponse: true,
|
|
104
|
-
noTerminalOutput: false,
|
|
105
|
-
config: { basePath }, // To overwrite any build-in config. This config is equal to --config flag.
|
|
106
|
-
};
|
|
100
|
+
const auditConfig = this.importConfig.auditConfig;
|
|
101
|
+
auditConfig.config.basePath = basePath;
|
|
107
102
|
try {
|
|
108
103
|
const args = [
|
|
109
104
|
'--data-dir',
|
|
@@ -146,4 +146,13 @@ export default interface DefaultConfig {
|
|
|
146
146
|
createBackupDir?: string;
|
|
147
147
|
overwriteSupportedModules: string[];
|
|
148
148
|
onlyTSModules: string[];
|
|
149
|
+
auditConfig?: {
|
|
150
|
+
noLog?: boolean;
|
|
151
|
+
skipConfirm?: boolean;
|
|
152
|
+
returnResponse?: boolean;
|
|
153
|
+
noTerminalOutput?: boolean;
|
|
154
|
+
config?: {
|
|
155
|
+
basePath?: string;
|
|
156
|
+
} & Record<string, any>;
|
|
157
|
+
};
|
|
149
158
|
}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-cm-import",
|
|
3
3
|
"description": "Contentstack CLI plugin to import content into stack",
|
|
4
|
-
"version": "1.14.
|
|
4
|
+
"version": "1.14.1",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@contentstack/cli-audit": "~1.4.
|
|
8
|
+
"@contentstack/cli-audit": "~1.4.1",
|
|
9
9
|
"@contentstack/cli-command": "~1.2.16",
|
|
10
10
|
"@contentstack/cli-utilities": "~1.5.12",
|
|
11
11
|
"@contentstack/management": "~1.15.3",
|