cli: fix config module imports

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-03-03 20:13:20 +01:00
parent d0fc357c37
commit 9bff52070c
+6 -3
View File
@@ -47,7 +47,8 @@ export default createCliPlugin({
})
.help()
.parse(args);
const m = await import('./commands/docs');
const m =
(await require('./commands/docs')) as typeof import('./commands/docs');
await m.default(argv);
},
});
@@ -66,7 +67,8 @@ export default createCliPlugin({
})
.help()
.parse(args);
const m = await import('./commands/print');
const m =
(await require('./commands/print')) as typeof import('./commands/print');
await m.default(argv);
},
});
@@ -90,7 +92,8 @@ export default createCliPlugin({
})
.help()
.parse(args);
const m = await import('./commands/validate');
const m =
(await require('./commands/validate')) as typeof import('./commands/validate');
await m.default(argv);
},
});