tool(air): auto sqlc generate and exclude sqlc generated files

This commit is contained in:
xkm
2026-04-07 21:19:54 +08:00
parent 24c4127024
commit deaa14f9f6

View File

@@ -8,10 +8,10 @@ tmp_dir = "tmp"
[build] [build]
args_bin = [] args_bin = []
bin = "./tmp/main" bin = "./tmp/main"
cmd = "go build -o ./tmp/main cmd/api/main.go" cmd = "sqlc generate && go build -o ./tmp/main cmd/api/main.go"
delay = 1000 delay = 1000
entrypoint = ["./tmp/main"] entrypoint = ["./tmp/main"]
exclude_dir = ["assets", "tmp", "vendor", "testdata"] exclude_dir = ["assets", "tmp", "vendor", "testdata", "internal/repository"]
exclude_file = [] exclude_file = []
exclude_regex = ["_test.go"] exclude_regex = ["_test.go"]
exclude_unchanged = false exclude_unchanged = false