Skip to content

Commit

Permalink
Merge branch 'development' into feat/DX-523
Browse files Browse the repository at this point in the history
  • Loading branch information
cs-raj authored May 7, 2024
2 parents 28e8eff + 905a28d commit 6495f46
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 15 deletions.
8 changes: 4 additions & 4 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-clone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dependencies": {
"@colors/colors": "^1.5.0",
"@contentstack/cli-cm-export": "~1.11.2",
"@contentstack/cli-cm-import": "~1.15.3",
"@contentstack/cli-cm-import": "~1.15.4",
"@contentstack/cli-command": "~1.2.16",
"@contentstack/cli-utilities": "~1.6.0",
"async": "^3.2.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-import/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-cm-import",
"description": "Contentstack CLI plugin to import content into stack",
"version": "1.15.3",
"version": "1.15.4",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export default class ContentTypesImport extends BaseClass {
private taxonomiesPath: string;
public taxonomies: Record<string, unknown>;
private extPendingPath: string;
private isExtensionsUpdate = false;

constructor({ importConfig, stackAPIClient }: ModuleClassParams) {
super({ importConfig, stackAPIClient });
Expand Down Expand Up @@ -110,7 +111,9 @@ export default class ContentTypesImport extends BaseClass {
}
log(this.importConfig, 'Updating the extensions...', 'success');
await this.updatePendingExtensions();
log(this.importConfig, 'Successfully updated the extensions.', 'success');
if (this.isExtensionsUpdate) {
log(this.importConfig, 'Successfully updated the extensions.', 'success');
}
await this.updatePendingGFs().catch((error) => {
log(this.importConfig, `Error while updating pending global field ${formatError(error)}`, 'error');
});
Expand Down Expand Up @@ -263,6 +266,7 @@ export default class ContentTypesImport extends BaseClass {
return;
}

this.isExtensionsUpdate = true;
const onSuccess = ({ response, apiData: { uid, title } = { uid: null, title: '' } }: any) => {
log(this.importConfig, `Successfully updated the '${response.title}' extension.`, 'success');
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ export const getConfirmationToCreateApps = async (privateApps: any, config: Impo
return Promise.resolve(false);
}
}
} else {
return Promise.resolve(true);
}
} else {
return Promise.resolve(true);
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-seed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"dependencies": {
"@contentstack/cli-cm-import": "~1.15.3",
"@contentstack/cli-cm-import": "~1.15.4",
"@contentstack/cli-command": "~1.2.16",
"@contentstack/cli-utilities": "~1.6.0",
"inquirer": "8.2.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.3",
"@contentstack/cli-cm-import": "~1.15.4",
"@contentstack/cli-cm-migrate-rte": "~1.4.15",
"@contentstack/cli-cm-seed": "~1.7.3",
"@contentstack/cli-command": "~1.2.17",
Expand Down
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

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

0 comments on commit 6495f46

Please sign in to comment.