From e807e602ec960a3a4480255475e945e70d301e9c Mon Sep 17 00:00:00 2001 From: Nahiyan Khan Date: Thu, 9 Jul 2026 13:00:12 -0400 Subject: [PATCH] fix: serialize pre-push hook to avoid dist/ race The parallel pre-push commands raced: 'just check' (via check:packed-package) and 'just build' both rebuild packages/ghost/dist while 'just test' runs CLI tests against dist/bin.js, failing flakily. Run 'just ci' (check, test, build in order) instead. --- lefthook.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lefthook.yml b/lefthook.yml index 296df1c1..1e10c395 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -7,12 +7,10 @@ pre-commit: test: run: just test +# Serial on purpose: `just check` (via check:packed-package) and `just build` +# both rebuild packages/ghost/dist while `just test` runs the CLI tests against +# dist/bin.js. Running them in parallel races on dist/ and fails flakily. pre-push: - parallel: true commands: - check: - run: just check - test: - run: just test - build: - run: just build + ci: + run: just ci