diff --git a/package-lock.json b/package-lock.json index afe5ce8caf..a35181a0f8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22789,7 +22789,7 @@ "@contentstack/cli-command": "~1.2.16", "@contentstack/cli-config": "~1.5.0", "@contentstack/cli-launch": "~1.0.15", - "@contentstack/cli-migration": "~1.4.1", + "@contentstack/cli-migration": "~1.4.2", "@contentstack/cli-utilities": "~1.5.9", "@contentstack/management": "~1.13.0", "@oclif/core": "^2.9.3", @@ -25359,7 +25359,7 @@ }, "packages/contentstack-migration": { "name": "@contentstack/cli-migration", - "version": "1.4.1", + "version": "1.4.2", "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.16", @@ -27247,7 +27247,7 @@ "@contentstack/cli-command": "~1.2.16", "@contentstack/cli-config": "~1.5.0", "@contentstack/cli-launch": "~1.0.15", - "@contentstack/cli-migration": "~1.4.1", + "@contentstack/cli-migration": "~1.4.2", "@contentstack/cli-utilities": "~1.5.9", "@contentstack/management": "~1.13.0", "@oclif/core": "^2.9.3", diff --git a/packages/contentstack-migration/README.md b/packages/contentstack-migration/README.md index f29c9a4235..71128f8bff 100644 --- a/packages/contentstack-migration/README.md +++ b/packages/contentstack-migration/README.md @@ -21,7 +21,7 @@ $ npm install -g @contentstack/cli-migration $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-migration/1.4.1 darwin-arm64 node-v20.8.0 +@contentstack/cli-migration/1.4.2 darwin-arm64 node-v20.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-migration/package.json b/packages/contentstack-migration/package.json index 435a5bc4d9..d5dfe6add3 100644 --- a/packages/contentstack-migration/package.json +++ b/packages/contentstack-migration/package.json @@ -1,6 +1,6 @@ { "name": "@contentstack/cli-migration", - "version": "1.4.1", + "version": "1.4.2", "author": "@contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { diff --git a/packages/contentstack-migration/src/commands/cm/stacks/migration.js b/packages/contentstack-migration/src/commands/cm/stacks/migration.js index 631245743c..fe6daf480c 100644 --- a/packages/contentstack-migration/src/commands/cm/stacks/migration.js +++ b/packages/contentstack-migration/src/commands/cm/stacks/migration.js @@ -75,8 +75,10 @@ class MigrationCommand extends Command { if (Array.isArray(config) && config.length > 0) { let configObj = config.reduce((a, v) => { - let objArr = v.split(':'); - return { ...a, [objArr[0]]: objArr[1] }; + //NOTE: Temp code to handle only one spilt(Window absolute path issue).Need to replace with hardcoded config key + let [key, ...value] = v.split(':'); + value = value?.length > 1 ? value?.join(':') : value?.join( ); + return { ...a, [key]: value }; }, {}); set('config', mapInstance, configObj); } diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index d8dc8779c4..4613e0bd08 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -36,7 +36,7 @@ "@contentstack/cli-command": "~1.2.16", "@contentstack/cli-config": "~1.5.0", "@contentstack/cli-launch": "~1.0.15", - "@contentstack/cli-migration": "~1.4.1", + "@contentstack/cli-migration": "~1.4.2", "@contentstack/cli-utilities": "~1.5.9", "@contentstack/management": "~1.13.0", "@oclif/core": "^2.9.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8464885d5a..205bcbd54b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,7 +24,7 @@ importers: '@contentstack/cli-command': ~1.2.16 '@contentstack/cli-config': ~1.5.0 '@contentstack/cli-launch': ~1.0.15 - '@contentstack/cli-migration': ~1.4.1 + '@contentstack/cli-migration': ~1.4.2 '@contentstack/cli-utilities': ~1.5.9 '@contentstack/management': ~1.13.0 '@oclif/core': ^2.9.3