Skip to content

Commit 32e247e

Browse files
julianknutsenclaude
andcommitted
fix: add bun install to make setup for pre-commit web checks
The pre-commit hook runs tsc and biome on the web frontend, which requires bun and node_modules. Add bun installation and web dependency install to the setup target so new checkouts work out of the box. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 91536fa commit 32e247e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,10 @@ $(GOLANGCI_LINT):
100100
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | \
101101
sh -s -- -b $(BIN_DIR) v$(GOLANGCI_LINT_VERSION)
102102

103-
## setup: install tools and git hooks
103+
## setup: install tools, web deps, and git hooks
104104
setup: install-tools
105+
@command -v bun >/dev/null 2>&1 || { echo "Installing bun..."; curl -fsSL https://bun.sh/install | bash; }
106+
cd web && bun install
105107
ln -sf ../../scripts/pre-commit .git/hooks/pre-commit
106108
@echo "Done. Tools installed, pre-commit hook active."
107109

0 commit comments

Comments
 (0)