Skip to content

Commit

Permalink
Update frontend OpenAPI types using Lefthook (#1015)
Browse files Browse the repository at this point in the history
  • Loading branch information
praseodym authored and lkleuver committed Feb 12, 2025
1 parent 58184fd commit a1dfb00
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ pre-commit:
backend-openapi:
root: "backend/"
glob: "*.rs"
run: cargo run --package abacus --bin gen-openapi && git add openapi.json
run: >
cargo run --package abacus --bin gen-openapi &&
git add openapi.json &&
cd ../frontend &&
npm run gen:openapi &&
git add lib/api/gen/openapi.ts
frontend-formatter:
root: "frontend/"
run: npx prettier --ignore-unknown --write {staged_files}
stage_fixed: true
frontend-typescript:
root: "frontend/"
glob: "*.{ts,tsx}"
run: npx tsc
frontend-linter:
root: "frontend/"
glob: "*.{ts,tsx}"
Expand Down

0 comments on commit a1dfb00

Please sign in to comment.