fix: correct lefthook command syntax

This commit is contained in:
2026-04-20 01:07:53 +02:00
parent 63148d7ca1
commit 1cdf63f2a2

View File

@@ -2,24 +2,12 @@
"$schema": "https://json.schemastore.org/lefthook.json",
"pre-push": {
"commands": {
"go-fmt": {
cmd: "go fmt ./..."
},
"go-vet": {
cmd: "go vet ./..."
},
"go-test": {
cmd: "go test ./..."
},
"ts-typecheck": {
cmd: "bunx tsc -p tsconfig.json --noEmit"
},
"build-assets": {
cmd: "bun run build:assets"
},
"go-build": {
cmd: "go build -o server ./cmd/server"
}
"go-fmt": { "run": "go fmt ./..." },
"go-vet": { "run": "go vet ./..." },
"go-test": { "run": "go test ./..." },
"ts-typecheck": { "run": "bunx tsc -p tsconfig.json --noEmit" },
"build-assets": { "run": "bun run build:assets" },
"go-build": { "run": "go build -o server ./cmd/server" }
}
}
}