Skip to content

Commit 4b9dbcc

Browse files
committed
chore: automate syncpack via lefthook pre-commit and CI
1 parent 988ac3b commit 4b9dbcc

4 files changed

Lines changed: 3647 additions & 5153 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
with:
3333
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3434

35+
- name: Lint dependency versions
36+
run: pnpm syncpack:lint
37+
3538
- run: pnpm nx fix-ci
3639
if: always()
3740

lefthook.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ pre-commit:
88
format:
99
run: pnpm nx format:write
1010
stage_fixed: true
11+
syncpack:
12+
glob: >-
13+
{package.json,
14+
pnpm-workspace.yaml,
15+
packages/*/package.json,
16+
packages/sdk-effects/*/package.json,
17+
packages/utils/*/package.json,
18+
e2e/*/package.json,
19+
tools/*/package.json,
20+
scratchpad/package.json}
21+
run: pnpm syncpack:lint
1122
interface-mapping:
1223
glob: >-
1324
{tools/interface-mapping-validator/**/*.ts,

0 commit comments

Comments
 (0)