Skip to content

Commit 4b89289

Browse files
committed
fix: skip codegen config file check if filepath is not defined
#13
1 parent a2f3f89 commit 4b89289

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/utils/fileMatchers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export function isCodegenConfig(
66
filePath: string,
77
context: CodegenContext,
88
): boolean {
9+
if (!context.filepath) return false;
10+
911
return normalizePath(filePath) === normalizePath(context.filepath);
1012
}
1113

0 commit comments

Comments
 (0)