From 554d8cc62b4b5258ea2909e1af64c2b7fe9b93be Mon Sep 17 00:00:00 2001 From: Aman Kumar Date: Fri, 3 May 2024 13:45:38 +0530 Subject: [PATCH] fix: resolved the asset publish issue caused by the multiple languages --- package-lock.json | 10 +++++----- packages/contentstack-clone/package.json | 2 +- packages/contentstack-import/README.md | 2 +- packages/contentstack-import/package.json | 2 +- .../contentstack-import/src/import/modules/assets.ts | 2 +- packages/contentstack-seed/package.json | 2 +- packages/contentstack/package.json | 4 ++-- pnpm-lock.yaml | 6 +++--- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0f7b414e2b..3d9a0ab638 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25400,7 +25400,7 @@ }, "packages/contentstack": { "name": "@contentstack/cli", - "version": "1.17.4", + "version": "1.17.5", "license": "MIT", "dependencies": { "@contentstack/cli-audit": "~1.5.4", @@ -25411,7 +25411,7 @@ "@contentstack/cli-cm-clone": "~1.10.3", "@contentstack/cli-cm-export": "~1.11.2", "@contentstack/cli-cm-export-to-csv": "~1.7.0", - "@contentstack/cli-cm-import": "~1.15.2", + "@contentstack/cli-cm-import": "~1.15.3", "@contentstack/cli-cm-migrate-rte": "~1.4.15", "@contentstack/cli-cm-seed": "~1.7.3", "@contentstack/cli-command": "~1.2.17", @@ -25944,7 +25944,7 @@ "dependencies": { "@colors/colors": "^1.5.0", "@contentstack/cli-cm-export": "~1.11.2", - "@contentstack/cli-cm-import": "~1.15.2", + "@contentstack/cli-cm-import": "~1.15.3", "@contentstack/cli-command": "~1.2.16", "@contentstack/cli-utilities": "~1.6.0", "async": "^3.2.4", @@ -26913,7 +26913,7 @@ }, "packages/contentstack-import": { "name": "@contentstack/cli-cm-import", - "version": "1.15.2", + "version": "1.15.3", "license": "MIT", "dependencies": { "@contentstack/cli-audit": "~1.5.4", @@ -27376,7 +27376,7 @@ "version": "1.7.3", "license": "MIT", "dependencies": { - "@contentstack/cli-cm-import": "~1.15.2", + "@contentstack/cli-cm-import": "~1.15.3", "@contentstack/cli-command": "~1.2.16", "@contentstack/cli-utilities": "~1.6.0", "inquirer": "8.2.4", diff --git a/packages/contentstack-clone/package.json b/packages/contentstack-clone/package.json index 185ae9c787..4850a43304 100644 --- a/packages/contentstack-clone/package.json +++ b/packages/contentstack-clone/package.json @@ -7,7 +7,7 @@ "dependencies": { "@colors/colors": "^1.5.0", "@contentstack/cli-cm-export": "~1.11.2", - "@contentstack/cli-cm-import": "~1.15.2", + "@contentstack/cli-cm-import": "~1.15.3", "@contentstack/cli-command": "~1.2.16", "@contentstack/cli-utilities": "~1.6.0", "async": "^3.2.4", diff --git a/packages/contentstack-import/README.md b/packages/contentstack-import/README.md index d0f111395a..a4b662eaf8 100644 --- a/packages/contentstack-import/README.md +++ b/packages/contentstack-import/README.md @@ -47,7 +47,7 @@ $ npm install -g @contentstack/cli-cm-import $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-import/1.14.1 darwin-arm64 node-v20.8.0 +@contentstack/cli-cm-import/1.15.3 darwin-arm64 node-v20.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-import/package.json b/packages/contentstack-import/package.json index 1d426d3fc0..6b91549c1f 100644 --- a/packages/contentstack-import/package.json +++ b/packages/contentstack-import/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-cm-import", "description": "Contentstack CLI plugin to import content into stack", - "version": "1.15.2", + "version": "1.15.3", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { diff --git a/packages/contentstack-import/src/import/modules/assets.ts b/packages/contentstack-import/src/import/modules/assets.ts index a379f42b20..b4286605fd 100644 --- a/packages/contentstack-import/src/import/modules/assets.ts +++ b/packages/contentstack-import/src/import/modules/assets.ts @@ -268,7 +268,7 @@ export default class ImportAssets extends BaseClass { return this.environments.hasOwnProperty(environment); }); const environments = uniq(map(publishDetails, ({ environment }) => this.environments[environment].name)); - const locales = map(publishDetails, 'locale'); + const locales = uniq(map(publishDetails, 'locale')); asset.locales = locales; asset.environments = environments; diff --git a/packages/contentstack-seed/package.json b/packages/contentstack-seed/package.json index 97a419c1a7..740c0df4ad 100644 --- a/packages/contentstack-seed/package.json +++ b/packages/contentstack-seed/package.json @@ -5,7 +5,7 @@ "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { - "@contentstack/cli-cm-import": "~1.15.2", + "@contentstack/cli-cm-import": "~1.15.3", "@contentstack/cli-command": "~1.2.16", "@contentstack/cli-utilities": "~1.6.0", "inquirer": "8.2.4", diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index 746b6c7369..6550ca08ff 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli", "description": "Command-line tool (CLI) to interact with Contentstack", - "version": "1.17.4", + "version": "1.17.5", "author": "Contentstack", "bin": { "csdx": "./bin/run" @@ -30,7 +30,7 @@ "@contentstack/cli-cm-export": "~1.11.2", "@contentstack/cli-cm-clone": "~1.10.3", "@contentstack/cli-cm-export-to-csv": "~1.7.0", - "@contentstack/cli-cm-import": "~1.15.2", + "@contentstack/cli-cm-import": "~1.15.3", "@contentstack/cli-cm-migrate-rte": "~1.4.15", "@contentstack/cli-cm-seed": "~1.7.3", "@contentstack/cli-command": "~1.2.17", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 54c7f75d56..e7b6c4fd47 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,7 +18,7 @@ importers: '@contentstack/cli-cm-clone': ~1.10.3 '@contentstack/cli-cm-export': ~1.11.2 '@contentstack/cli-cm-export-to-csv': ~1.7.0 - '@contentstack/cli-cm-import': ~1.15.2 + '@contentstack/cli-cm-import': ~1.15.3 '@contentstack/cli-cm-migrate-rte': ~1.4.15 '@contentstack/cli-cm-seed': ~1.7.3 '@contentstack/cli-command': ~1.2.17 @@ -424,7 +424,7 @@ importers: specifiers: '@colors/colors': ^1.5.0 '@contentstack/cli-cm-export': ~1.11.2 - '@contentstack/cli-cm-import': ~1.15.2 + '@contentstack/cli-cm-import': ~1.15.3 '@contentstack/cli-command': ~1.2.16 '@contentstack/cli-utilities': ~1.6.0 '@oclif/test': ^2.5.6 @@ -990,7 +990,7 @@ importers: packages/contentstack-seed: specifiers: - '@contentstack/cli-cm-import': ~1.15.2 + '@contentstack/cli-cm-import': ~1.15.3 '@contentstack/cli-command': ~1.2.16 '@contentstack/cli-utilities': ~1.6.0 '@oclif/plugin-help': ^5.1.19