Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .talismanrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
fileignoreconfig:
- filename: package-lock.json
checksum: 87af2bc0ae8f9511eb8c7f939898bf24f81f87d54fdb2a4a35422a7f601238d7
checksum: ca12061eb32da8cb2d0e3be8e10e89b3f23b2351df8d397e811b34040c9d79b5
- filename: pnpm-lock.yaml
checksum: 55c56cfbb8057c4586594bf99ccc68e1f171fbf77ea49a5934ba7d2c52a2626a
checksum: 45e2fb78b203e512a8a15eb508b82a9bfcbbfaddc461c02edb194a127b5168d9
- filename: packages/contentstack-import-setup/test/unit/backup-handler.test.ts
checksum: 0582d62b88834554cf12951c8690a73ef3ddbb78b82d2804d994cf4148e1ef93
- filename: packages/contentstack-import-setup/test/config.json
Expand Down
126 changes: 63 additions & 63 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/contentstack-bulk-publish/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-cm-bulk-publish",
"description": "Contentstack CLI plugin for bulk publish actions",
"version": "1.10.1",
"version": "1.10.2",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,20 @@ class PublishEntriesCommand extends Command {
updatedFlags.destEnv = updatedFlags.environments;
updatedFlags.environment = updatedFlags['source-env'];
updatedFlags.onlyEntries = true;
if (updatedFlags.locales instanceof Array) {
updatedFlags.locales.forEach((locale) => {
updatedFlags.locale = locale;
publishFunction(startCrossPublish);
});
} else {
updatedFlags.locale = locales;
publishFunction(startCrossPublish);
if(Array.isArray(updatedFlags.contentTypes) && updatedFlags.contentTypes.length > 0){
for (const contentType of updatedFlags.contentTypes) {
updatedFlags.contentType = contentType;
if (Array.isArray(updatedFlags.locales)) {
for (const locale of updatedFlags.locales) {
updatedFlags.locale = locale;
console.log(`Bulk publish started for content type \x1b[36m${updatedFlags.contentType}\x1b[0m and locale is \x1b[36m${updatedFlags.locale}\x1b[0m`);
await publishFunction(startCrossPublish);
}
} else {
updatedFlags.locale = updatedFlags.locales;
publishFunction(startCrossPublish);
}
}
}
} else {
publishFunction(startPublish);
Expand Down
Loading
Loading