Commit f764b29
committed
build: add pre-commit hooks with simple-git-hooks and lint-staged
Replace redundant root-level script aliases (dev, build, test:unit, lint,
etc.) that merely wrapped `pnpm -r run <task>`. Each sub-package already
defines its own scripts, so the aliases added no value.
- Add simple-git-hooks + lint-staged for pre-commit quality gates
(oxlint/oxfmt on staged files, then unit tests across all packages)
- Keep only `prepare` script to auto-install hooks on `pnpm install`
- Update CI workflow to call `pnpm -r run` directly1 parent 3d0bc10 commit f764b29
3 files changed
Lines changed: 235 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 10 | + | |
17 | 11 | | |
18 | 12 | | |
19 | 13 | | |
| 14 | + | |
20 | 15 | | |
21 | 16 | | |
22 | | - | |
| 17 | + | |
| 18 | + | |
23 | 19 | | |
24 | 20 | | |
25 | 21 | | |
| |||
0 commit comments