@contentstack/cli-cm-bulk-publish 1.4.1 → 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 +2 -2
- package/src/consumer/publish.js +1 -0
- package/src/producer/cross-publish.js +1 -0
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-cm-bulk-publish
|
|
|
18
18
|
$ csdx COMMAND
|
|
19
19
|
running command...
|
|
20
20
|
$ csdx (--version)
|
|
21
|
-
@contentstack/cli-cm-bulk-publish/1.4.
|
|
21
|
+
@contentstack/cli-cm-bulk-publish/1.4.2 darwin-arm64 node-v20.8.0
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-cm-bulk-publish",
|
|
3
3
|
"description": "Contentstack CLI plugin for bulk publish actions",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.2",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@contentstack/cli-command": "~1.2.16",
|
|
9
|
-
"@contentstack/cli-utilities": "~1.5.
|
|
9
|
+
"@contentstack/cli-utilities": "~1.5.12",
|
|
10
10
|
"bluebird": "^3.7.2",
|
|
11
11
|
"chalk": "^4.1.2",
|
|
12
12
|
"dotenv": "^16.1.4",
|
package/src/consumer/publish.js
CHANGED
|
@@ -232,6 +232,7 @@ async function performBulkPublish(data, _config, queue) {
|
|
|
232
232
|
if (bulkPublishObj.apiVersion) {
|
|
233
233
|
if (!isNaN(bulkPublishObj.apiVersion) && bulkPublishObj.apiVersion === apiVersionForNRP) {
|
|
234
234
|
payload['api_version'] = bulkPublishObj.apiVersion
|
|
235
|
+
payload.details.publish_with_reference = true;
|
|
235
236
|
} else {
|
|
236
237
|
if (bulkPublishObj.apiVersion !== '3') { // because 3 is the default value for api-version, and it exists for the purpose of display only
|
|
237
238
|
console.log(
|
|
@@ -111,6 +111,7 @@ async function bulkAction(stack, items, bulkPublish, filter, destEnv, apiVersion
|
|
|
111
111
|
publish_details: [items[index].data.publish_details],
|
|
112
112
|
environments: destEnv,
|
|
113
113
|
entryUid: items[index].data.uid,
|
|
114
|
+
version: items[index].data._version,
|
|
114
115
|
locale: items[index].data.locale || 'en-us',
|
|
115
116
|
version: items[index].data._version,
|
|
116
117
|
Type: 'entry',
|