tpmjs/lefthook.yml
Thomas Davis cc69d98b6f feat: add Slack + Discord tool packages and fix 50 skipped sync packages
Add @tpmjs/tools-slack (10 tools) and @tpmjs/tools-discord (15 tools)
with full API coverage, typed outputs, and domain-validated blocks.

Add 7 missing business categories (finance, legal, hr, marketing, cx,
edu, sales) to TPMJS_CATEGORIES so 50 previously skipped packages
can sync to tpmjs.com.

Fix lefthook secrets hook to skip gracefully when git-secrets is not
installed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 20:41:51 +10:00

22 lines
664 B
YAML

pre-commit:
parallel: true
commands:
secrets:
# Scan for secrets before allowing commit - runs first
priority: 1
run: command -v git-secrets >/dev/null 2>&1 && git secrets --scan --cached || true
fail_text: "🚨 Secrets detected! Remove sensitive data before committing."
format:
glob: "*.{ts,tsx,js,jsx,json,md}"
run: pnpm biome check --write --no-errors-on-unmatched --files-ignore-unknown=true {staged_files}
stage_fixed: true
type-check:
# Only type-check packages with staged changes
run: pnpm turbo type-check --filter='...[HEAD]'
pre-push:
commands:
test:
run: pnpm test