fix: gen provider

This commit is contained in:
Rogee
2025-09-22 14:16:22 +08:00
parent 07e70a80ea
commit a8eb9e0025
13 changed files with 142 additions and 126 deletions

View File

@@ -114,8 +114,8 @@ func (c *ParserContext) ShouldIncludeFile(filePath string) bool {
return false
}
// Skip generated files if not allowed
if !c.Config.AllowGenFiles && strings.HasSuffix(filePath, ".gen.go") {
// Skip generated files if not allowed, but allow routes.gen.go since it may contain providers
if !c.Config.AllowGenFiles && strings.HasSuffix(filePath, ".gen.go") && !strings.HasSuffix(filePath, "routes.gen.go") {
return false
}