@contentstack/cli-cm-import 1.21.4 → 1.22.0

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.21.4 linux-x64 node-v22.15.0
50
+ @contentstack/cli-cm-import/1.22.0 linux-x64 node-v22.15.0
51
51
  $ csdx --help [COMMAND]
52
52
  USAGE
53
53
  $ csdx COMMAND
@@ -120,7 +120,7 @@ ImportCommand.flags = {
120
120
  }),
121
121
  branch: cli_utilities_1.flags.string({
122
122
  char: 'B',
123
- description: 'The name of the branch where you want to import your content. If you don\'t mention the branch name, then by default the content will be imported to the main branch.',
123
+ description: "The name of the branch where you want to import your content. If you don't mention the branch name, then by default the content will be imported to the main branch.",
124
124
  parse: (0, cli_utilities_1.printFlagDeprecation)(['-B'], ['--branch']),
125
125
  }),
126
126
  'import-webhook-status': cli_utilities_1.flags.string({
@@ -136,6 +136,7 @@ ImportCommand.flags = {
136
136
  }),
137
137
  'skip-app-recreation': cli_utilities_1.flags.boolean({
138
138
  description: '(optional) Skips the recreation of private apps if they already exist.',
139
+ parse: (0, cli_utilities_1.printFlagDeprecation)(['--skip-app-recreation']),
139
140
  }),
140
141
  'replace-existing': cli_utilities_1.flags.boolean({
141
142
  required: false,
@@ -169,7 +169,7 @@ class ImportMarketplaceApps {
169
169
  if (canCreatePrivateApp) {
170
170
  (0, utils_1.log)(this.importConfig, 'Starting developer hub private apps re-creation', 'success');
171
171
  for (let app of privateApps) {
172
- if (this.importConfig.skipPrivateAppRecreationIfExist && (await this.isPrivateAppExistInDeveloperHub(app))) {
172
+ if (await this.isPrivateAppExistInDeveloperHub(app)) {
173
173
  // NOTE Found app already exist in the same org
174
174
  this.appUidMapping[app.uid] = app.uid;
175
175
  cli_utilities_1.cliux.print(`App '${app.manifest.name}' already exist. skipping app recreation.!`, { color: 'yellow' });
@@ -73,7 +73,7 @@ const setupConfig = async (importCmdFlags) => {
73
73
  config.skipAudit = importCmdFlags['skip-audit'];
74
74
  config.forceStopMarketplaceAppsPrompt = importCmdFlags.yes;
75
75
  config.importWebhookStatus = importCmdFlags['import-webhook-status'];
76
- config.skipPrivateAppRecreationIfExist = importCmdFlags['skip-app-recreation'];
76
+ config.skipPrivateAppRecreationIfExist = !importCmdFlags['skip-app-recreation'];
77
77
  if (importCmdFlags['branch']) {
78
78
  config.branchName = importCmdFlags['branch'];
79
79
  config.branchDir = config.contentDir;
@@ -199,5 +199,5 @@
199
199
  ]
200
200
  }
201
201
  },
202
- "version": "1.21.4"
202
+ "version": "1.22.0"
203
203
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@contentstack/cli-cm-import",
3
3
  "description": "Contentstack CLI plugin to import content into stack",
4
- "version": "1.21.4",
4
+ "version": "1.22.0",
5
5
  "author": "Contentstack",
6
6
  "bugs": "https://github.com/contentstack/cli/issues",
7
7
  "dependencies": {
8
8
  "@contentstack/cli-audit": "~1.12.1",
9
9
  "@contentstack/cli-command": "~1.5.0",
10
- "@contentstack/cli-utilities": "~1.11.0",
10
+ "@contentstack/cli-utilities": "~1.11.1",
11
11
  "@contentstack/management": "~1.20.2",
12
12
  "@contentstack/cli-variants": "~1.2.1",
13
13
  "@oclif/core": "^4.2.7",