@contentstack/cli-cm-import 1.28.1 → 1.28.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 CHANGED
@@ -47,7 +47,7 @@ $ npm install -g @contentstack/cli-cm-import
47
47
  $ csdx COMMAND
48
48
  running command...
49
49
  $ csdx (--version)
50
- @contentstack/cli-cm-import/1.28.1 linux-x64 node-v22.19.0
50
+ @contentstack/cli-cm-import/1.28.2 linux-x64 node-v22.20.0
51
51
  $ csdx --help [COMMAND]
52
52
  USAGE
53
53
  $ csdx COMMAND
@@ -91,9 +91,8 @@ FLAGS
91
91
  extensions, marketplace-apps, global-fields, labels, locales, webhooks,
92
92
  workflows, custom-roles, personalize projects, and taxonomies.
93
93
  -y, --yes [optional] Force override all Marketplace prompts.
94
- --branch-alias=<value> The alias of the branch where you want to import your content. If you don't
95
- mention the branch alias, then by default the content will be imported to the
96
- main branch.
94
+ --branch-alias=<value> Specify the branch alias where you want to import your content. If not
95
+ specified, the content is imported into the main branch by default.
97
96
  --exclude-global-modules Excludes the branch-independent module from the import operation.
98
97
  --import-webhook-status=<option> [default: disable] [default: disable] (optional) This webhook state keeps the
99
98
  same state of webhooks as the source stack. <options: disable|current>
@@ -160,9 +159,8 @@ FLAGS
160
159
  extensions, marketplace-apps, global-fields, labels, locales, webhooks,
161
160
  workflows, custom-roles, personalize projects, and taxonomies.
162
161
  -y, --yes [optional] Force override all Marketplace prompts.
163
- --branch-alias=<value> The alias of the branch where you want to import your content. If you don't
164
- mention the branch alias, then by default the content will be imported to the
165
- main branch.
162
+ --branch-alias=<value> Specify the branch alias where you want to import your content. If not
163
+ specified, the content is imported into the main branch by default.
166
164
  --exclude-global-modules Excludes the branch-independent module from the import operation.
167
165
  --import-webhook-status=<option> [default: disable] [default: disable] (optional) This webhook state keeps the
168
166
  same state of webhooks as the source stack. <options: disable|current>
@@ -133,7 +133,7 @@ ImportCommand.flags = {
133
133
  exclusive: ['branch-alias'],
134
134
  }),
135
135
  'branch-alias': cli_utilities_1.flags.string({
136
- description: "The alias of the branch where you want to import your content. If you don't mention the branch alias, then by default the content will be imported to the main branch.",
136
+ description: "Specify the branch alias where you want to import your content. If not specified, the content is imported into the main branch by default.",
137
137
  exclusive: ['branch'],
138
138
  }),
139
139
  'import-webhook-status': cli_utilities_1.flags.string({
@@ -19,7 +19,7 @@ const setupBranchConfig = async (config, stackAPIClient) => {
19
19
  .find()
20
20
  .then(({ items }) => items);
21
21
  if (branches.length) {
22
- cli_utilities_1.log.info(`Stack is branch enabled and branches exist. Default import will be done in main branch.`);
22
+ cli_utilities_1.log.info(`The stack is branch-enabled, and branches exist. By default, content will be imported into the main branch.`);
23
23
  config.branchName = 'main';
24
24
  cli_utilities_1.log.debug(`Setting default target branch to 'main'`);
25
25
  }
@@ -111,7 +111,7 @@
111
111
  "type": "option"
112
112
  },
113
113
  "branch-alias": {
114
- "description": "The alias of the branch where you want to import your content. If you don't mention the branch alias, then by default the content will be imported to the main branch.",
114
+ "description": "Specify the branch alias where you want to import your content. If not specified, the content is imported into the main branch by default.",
115
115
  "exclusive": [
116
116
  "branch"
117
117
  ],
@@ -212,5 +212,5 @@
212
212
  ]
213
213
  }
214
214
  },
215
- "version": "1.28.1"
215
+ "version": "1.28.2"
216
216
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@contentstack/cli-cm-import",
3
3
  "description": "Contentstack CLI plugin to import content into stack",
4
- "version": "1.28.1",
4
+ "version": "1.28.2",
5
5
  "author": "Contentstack",
6
6
  "bugs": "https://github.com/contentstack/cli/issues",
7
7
  "dependencies": {
8
- "@contentstack/cli-audit": "~1.14.1",
8
+ "@contentstack/cli-audit": "~1.15.0",
9
9
  "@contentstack/cli-command": "~1.6.1",
10
10
  "@contentstack/cli-utilities": "~1.14.1",
11
11
  "@contentstack/management": "~1.22.0",
@@ -57,7 +57,8 @@
57
57
  "lint": "eslint src/**/*.ts",
58
58
  "format": "eslint src/**/*.ts --fix",
59
59
  "test:integration": "mocha --forbid-only \"test/run.test.js\" --integration-test --timeout 60000",
60
- "test:unit": "mocha --forbid-only \"test/unit/*.test.ts\""
60
+ "test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\"",
61
+ "test:unit": "mocha --forbid-only \"test/**/*.test.ts\""
61
62
  },
62
63
  "engines": {
63
64
  "node": ">=14.0.0"