We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
exports.default
1 parent bef4872 commit f97c271Copy full SHA for f97c271
packages/commandkit/src/handlers/validation-handler/ValidationHandler.ts
@@ -26,6 +26,11 @@ export class ValidationHandler {
26
const modulePath = toFileURL(validationFilePath);
27
28
let validationFunction = (await import(modulePath)).default;
29
+
30
+ if (validationFunction?.default) {
31
+ validationFunction = validationFunction.default;
32
+ }
33
34
const compactFilePath =
35
validationFilePath.split(process.cwd())[1] || validationFilePath;
36
0 commit comments