From b511ca8beff37ffdbab0c0b94a41e9e6a0059d27 Mon Sep 17 00:00:00 2001 From: harshitha-cstk Date: Mon, 11 May 2026 12:13:20 +0530 Subject: [PATCH] fix integrate loadChalk utility in export and import commands --- packages/contentstack-export/src/commands/cm/stacks/export.ts | 2 ++ packages/contentstack-import/src/commands/cm/stacks/import.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/contentstack-export/src/commands/cm/stacks/export.ts b/packages/contentstack-export/src/commands/cm/stacks/export.ts index af89dec6c..5b48592bd 100644 --- a/packages/contentstack-export/src/commands/cm/stacks/export.ts +++ b/packages/contentstack-export/src/commands/cm/stacks/export.ts @@ -14,6 +14,7 @@ import { getSessionLogPath, CLIProgressManager, clearProgressModuleSetting, + loadChalk, } from '@contentstack/cli-utilities'; import { ModuleExporter } from '../../../export'; @@ -87,6 +88,7 @@ export default class ExportCommand extends Command { }; async run(): Promise { + await loadChalk(); let exportDir: string = pathValidator('logs'); try { const { flags } = await this.parse(ExportCommand); diff --git a/packages/contentstack-import/src/commands/cm/stacks/import.ts b/packages/contentstack-import/src/commands/cm/stacks/import.ts index 062d1e22f..74b74f752 100644 --- a/packages/contentstack-import/src/commands/cm/stacks/import.ts +++ b/packages/contentstack-import/src/commands/cm/stacks/import.ts @@ -13,6 +13,7 @@ import { cliux, clearProgressModuleSetting, createLogContext, + loadChalk, } from '@contentstack/cli-utilities'; import { Context, ImportConfig } from '../../../types'; @@ -117,6 +118,7 @@ export default class ImportCommand extends Command { // setup import config // initialize the importer // start import + await loadChalk(); let backupDir: string; let importConfig: ImportConfig; try {