-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlefthook.yml
More file actions
40 lines (38 loc) · 1.05 KB
/
lefthook.yml
File metadata and controls
40 lines (38 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
pre-commit:
commands:
nx-sync:
run: pnpm nx sync
nx-check:
run: pnpm nx affected -t typecheck lint build api-report --tui=false
stage_fixed: true
format:
run: pnpm nx format:write
stage_fixed: true
interface-mapping:
glob: >-
{tools/interface-mapping-validator/**/*.ts,
interface_mapping.md,
packages/*/src/index.ts,
packages/*/src/types.ts,
packages/*/package.json,
packages/sdk-effects/*/src/index.ts,
packages/sdk-effects/*/src/types.ts,
packages/sdk-effects/*/package.json}
run: >
pnpm tsx tools/interface-mapping-validator/src/main.ts ||
(echo "" &&
echo "Interface mapping is out of sync." &&
echo "Run: pnpm mapping:generate" &&
exit 1)
commit-msg:
commands:
commitlint:
run: pnpm run commitlint {1}
prepare-commit-msg:
commands:
commitizen:
interactive: true
run: |
if [ "$2" = "template" ]; then
exec < /dev/tty && pnpm run commit || true
fi