Skip to content

Commit bfc5b91

Browse files
committed
chore: simplify lefthook hooks
1 parent 56b9171 commit bfc5b91

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

lefthook.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
pre-commit:
2+
parallel: true
3+
commands:
4+
lint:
5+
run: pnpm nx affected -t lint --uncommitted --outputStyle=static
6+
7+
typecheck:
8+
run: pnpm nx affected -t typecheck --uncommitted
9+
10+
pre-push:
11+
parallel: true
12+
commands:
13+
test:
14+
run: pnpm nx affected -t test --base=origin/main --head=HEAD
15+
16+
build:
17+
run: pnpm nx affected -t build --base=origin/main --head=HEAD

0 commit comments

Comments
 (0)