From f5f13e590cfacf97edb2a22c62705f321c43d61b Mon Sep 17 00:00:00 2001 From: aramissennyeydd Date: Wed, 2 Jul 2025 09:25:37 -0400 Subject: [PATCH] fix: info command fails to find module Signed-off-by: aramissennyeydd --- packages/cli/src/modules/info/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/cli/src/modules/info/index.ts b/packages/cli/src/modules/info/index.ts index 1e6f761f83..e93f008905 100644 --- a/packages/cli/src/modules/info/index.ts +++ b/packages/cli/src/modules/info/index.ts @@ -15,6 +15,7 @@ */ import yargs from 'yargs'; import { createCliPlugin } from '../../wiring/factory'; +import { lazy } from '../../lib/lazy'; export default createCliPlugin({ pluginId: 'info', @@ -24,9 +25,7 @@ export default createCliPlugin({ description: 'Show helpful information for debugging and reporting bugs', execute: async ({ args }) => { yargs().parse(args); - const { default: command } = - require('./commands/info') as typeof import('./commands/info'); - await command(); + await lazy(() => import('./commands/info'), 'default')(args); }, }); },