test: remove job globs in lefthook.yaml config

Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
This commit is contained in:
Alfi Maulana 2025-07-26 21:08:12 +07:00
parent b8809b9ead
commit c3018d07e2
No known key found for this signature in database
GPG Key ID: 2242A64C2A8DF5A4

View File

@ -3,18 +3,9 @@ pre-commit:
jobs: jobs:
- name: install dependencies - name: install dependencies
run: pnpm install run: pnpm install
glob:
- package.json
- pnpm-lock.yaml
- pnpm-workspace.yaml
- name: check types - name: check types
run: pnpm tsc run: pnpm tsc
glob:
- "*.ts"
- .npmrc
- pnpm-lock.yaml
- tsconfig.json
- name: fix formatting - name: fix formatting
run: pnpm prettier --write --ignore-unknown {staged_files} run: pnpm prettier --write --ignore-unknown {staged_files}
@ -24,14 +15,6 @@ pre-commit:
- name: build action - name: build action
run: pnpm rollup -c run: pnpm rollup -c
glob:
- dist/*
- src/*.ts
- .npmrc
- pnpm-lock.yaml
- tsconfig.json
exclude:
- src/*.test.ts
- name: check diff - name: check diff
run: git diff --exit-code dist {staged_files} run: git diff --exit-code dist {staged_files}