fix: info command fails to find module

Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
aramissennyeydd
2025-07-02 09:25:37 -04:00
parent 9f67ede065
commit f5f13e590c
+2 -3
View File
@@ -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);
},
});
},