Skip to content

Commit a16bd1e

Browse files
committed
chore: update pre-push nx affected command with CI flags and verbose output (#421)
Updated the pre-push hook command to run with CI=true and NX_DAEMON=false environment variables. Changed the output style from static to compact, added the --verbose and --nx-bail flags to provide more detailed output and stop execution when a task fails.
1 parent 3b7b6cf commit a16bd1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lefthook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ post-checkout:
5757
pre-push:
5858
commands:
5959
'nx-affected-checks':
60-
run: pnpm nx affected --target=prepush --base=origin/main --head=HEAD --output-style=static
60+
run: CI=true NX_DAEMON=false pnpm nx affected --target=prepush --base=origin/main --head=HEAD --output-style=static --verbose --nx-bail
6161
scripts:
6262
'prevent-push-to-main.sh':
6363
runner: bash

0 commit comments

Comments
 (0)