Skip to content

Commit

Permalink
Add typescript-docs pre-commit hook
Browse files Browse the repository at this point in the history
This hook runs `yarn docs` to re-generate API reference docs before each
commit touching SDK files.
  • Loading branch information
lukasz-zimnoch committed Nov 3, 2023
1 parent 2cf0c94 commit 09edfd9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,9 @@ repos:
files: "^cross-chain/arbitrum/"
language: script
description: "Checks cross-chain/arbitrum directory code according to the formatting configuration"
- id: typescript-docs
name: "Generate typescript API reference docs"
entry: /usr/bin/env bash -c "cd typescript && yarn docs"
files: "^typescript/"
language: script
description: "Generates typescript API reference docs according to the typedoc configuration"

0 comments on commit 09edfd9

Please sign in to comment.