From deaa14f9f620878e2533e80b8872c883bc9a2f0c Mon Sep 17 00:00:00 2001 From: xkm Date: Tue, 7 Apr 2026 21:19:54 +0800 Subject: [PATCH] tool(air): auto sqlc generate and exclude sqlc generated files --- .air.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.air.toml b/.air.toml index c6b5e1e..f3d7028 100644 --- a/.air.toml +++ b/.air.toml @@ -8,10 +8,10 @@ tmp_dir = "tmp" [build] args_bin = [] 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 entrypoint = ["./tmp/main"] - exclude_dir = ["assets", "tmp", "vendor", "testdata"] + exclude_dir = ["assets", "tmp", "vendor", "testdata", "internal/repository"] exclude_file = [] exclude_regex = ["_test.go"] exclude_unchanged = false