From 6dcf44fc60be552e516e852a8f80498bfefa02c2 Mon Sep 17 00:00:00 2001 From: p-sw Date: Sat, 20 Jul 2024 02:40:59 +0900 Subject: [PATCH] ci: add tsc check on pre-push hook --- lefthook.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lefthook.yml b/lefthook.yml index d14b52f..c25c9a8 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -7,4 +7,12 @@ pre-push: commands: biome_check: glob: "*.{ts,tsx,json}" - run: yarn biome check --no-errors-on-unmatched --files-ignore-unknown=true {staged_files} \ No newline at end of file + run: yarn biome check --no-errors-on-unmatched --files-ignore-unknown=true {all_files} + react_tsc: + glob: "packages/react/*.{ts,tsx}" + root: "packages/react/" + run: yarn tsc + cli_tsc: + glob: "packages/cli/*.{ts,tsx}" + root: "packages/cli/" + run: yarn tsc