gram/lefthook.yml
abiwab dc6899dc12
All checks were successful
CI / Build, Test & Publish (push) Successful in 3m57s
feat(renderer): modernize HTML recipe view layout and intermediate traceability (#126)
2026-11-11 16:02:27 +01:00

28 lines
1.1 KiB
YAML

pre-commit:
parallel: true
commands:
biome:
glob: "packages/*/{src,tests}/**"
run: bunx biome check --write --no-errors-on-unmatched {staged_files}
stage_fixed: true
grammar-sync:
glob: "packages/parser/grammar.ohm"
run: |
node packages/parser/scripts/build-grammar.cjs
git diff --exit-code packages/parser/src/grammar-content.ts || {
echo "grammar.ohm changed but packages/parser/src/grammar-content.ts wasn't regenerated/staged.";
echo "Run 'bun run build' and 'git add packages/parser/src/grammar-content.ts', then commit again.";
exit 1;
}
changeset-reminder:
glob: "packages/{analyzer,cli,format,i18n,kitchen,language-server,parser,renderer}/src/**"
run: |
if ! git diff --cached --name-only | grep -q '^\.changeset/.*\.md$'; then
echo "Published package(s) modified without a new .changeset/*.md — run 'bun run change' if this affects the public API/behavior.";
fi
lockfile-dedupe:
glob: "{bun.lock,package.json}"
run: bun dedupe --check