@contentstack/cli-migration 1.4.0 → 1.4.2
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 +1 -1
- package/package.json +3 -3
- package/src/commands/cm/stacks/migration.js +4 -2
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ $ npm install -g @contentstack/cli-migration
|
|
|
21
21
|
$ csdx COMMAND
|
|
22
22
|
running command...
|
|
23
23
|
$ csdx (--version)
|
|
24
|
-
@contentstack/cli-migration/1.4.
|
|
24
|
+
@contentstack/cli-migration/1.4.2 darwin-arm64 node-v20.8.0
|
|
25
25
|
$ csdx --help [COMMAND]
|
|
26
26
|
USAGE
|
|
27
27
|
$ csdx COMMAND
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-migration",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"author": "@contentstack",
|
|
5
5
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@contentstack/cli-command": "~1.2.
|
|
8
|
-
"@contentstack/cli-utilities": "~1.5.
|
|
7
|
+
"@contentstack/cli-command": "~1.2.16",
|
|
8
|
+
"@contentstack/cli-utilities": "~1.5.9",
|
|
9
9
|
"async": "^3.2.4",
|
|
10
10
|
"callsites": "^3.1.0",
|
|
11
11
|
"cardinal": "^2.1.1",
|
|
@@ -75,8 +75,10 @@ class MigrationCommand extends Command {
|
|
|
75
75
|
|
|
76
76
|
if (Array.isArray(config) && config.length > 0) {
|
|
77
77
|
let configObj = config.reduce((a, v) => {
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
//NOTE: Temp code to handle only one spilt(Window absolute path issue).Need to replace with hardcoded config key
|
|
79
|
+
let [key, ...value] = v.split(':');
|
|
80
|
+
value = value?.length > 1 ? value?.join(':') : value?.join( );
|
|
81
|
+
return { ...a, [key]: value };
|
|
80
82
|
}, {});
|
|
81
83
|
set('config', mapInstance, configObj);
|
|
82
84
|
}
|