From 2b6fa15f9b2d9e39e62c990934dc23638debd847 Mon Sep 17 00:00:00 2001 From: raj pandey Date: Tue, 14 Jul 2026 15:57:14 +0530 Subject: [PATCH] fix: replace async log.warn with sync cliux.print before audit prompt and complete hasFix return MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace log.warn (Winston async stream) with cliux.print (process.stdout.write, sync) before cliux.inquire() in module-importer.ts and audit-base-command.ts so the report path message is guaranteed to flush before inquirer takes terminal control - Add missingMandatoryFields, missingTitleFields, missingMultipleFields to the hasFix return value in audit-base-command.ts — these were checked in the log condition but omitted from the return, silently skipping the import confirmation prompt when only those module types had issues Co-Authored-By: Claude Sonnet 4.6 --- packages/contentstack-audit/src/audit-base-command.ts | 10 ++++++---- .../contentstack-import/src/import/module-importer.ts | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/contentstack-audit/src/audit-base-command.ts b/packages/contentstack-audit/src/audit-base-command.ts index 1c66fbf0f..ab214e166 100644 --- a/packages/contentstack-audit/src/audit-base-command.ts +++ b/packages/contentstack-audit/src/audit-base-command.ts @@ -146,10 +146,9 @@ export abstract class AuditBaseCommand extends BaseCommand