From 76256efb1f9611b499db523d0e3f49cfaeb5bbc3 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 22 Jul 2026 02:47:57 +0000 Subject: [PATCH] fix: build package before running its own e2e tests The test:e2e and test:e2e:dev turbo tasks only depended on ^build (upstream packages), so @funstack/static#build could run concurrently with @funstack/static#test:e2e. When the build was not already in the turbo cache (as in the e2e-vite7 CI job, which builds via pnpm --filter and bypasses turbo), tsdown cleaned dist/ while the Playwright webServer was resolving @funstack/static, failing with 'Failed to resolve entry for package'. Depending on the package's own build task removes the race. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01JZUuLgc4ndfHC8GT7JWDv2 --- turbo.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/turbo.json b/turbo.json index a318b1e..ed8f4c3 100644 --- a/turbo.json +++ b/turbo.json @@ -22,11 +22,11 @@ "outputs": [] }, "test:e2e": { - "dependsOn": ["^build"], + "dependsOn": ["build", "^build"], "outputs": [] }, "test:e2e:dev": { - "dependsOn": ["^build"], + "dependsOn": ["build", "^build"], "outputs": [] } }