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