Loading workspace insights... Statistics interval
7 days30 daysLatest CI Pipeline Executions
f4116dca Removed build dependency from @tryghost/posts test:unit
This is the pilot for PLA-42 — see docs/test-unit-build-dep-removal.md.
- apps/posts/package.json: dropped ^build from nx.targets.test:unit.dependsOn so test:unit no longer triggers builds of upstream workspaces (shade, admin-x-framework). The dev target keeps its ^build.
- apps/posts/vitest.config.ts: aliased @tryghost/shade, @tryghost/admin-x-framework, and shade's internal @/ alias to source paths, so vitest resolves cross-package imports without needing apps/shade/es or apps/admin-x-framework/dist to exist. Imported the createVitestConfig helper via a relative source path for the same reason — the config itself must load before the resolve.alias entries take effect.
- Verified by wiping apps/shade/{es,types} and apps/admin-x-framework/{dist,types}, then running 'pnpm nx run @tryghost/posts:test:unit --skip-nx-cache' — no upstream builds were triggered, and the suite ran to 215/216, matching pristine main. The one remaining failure (automation-editor.test.tsx > 'updates a wait step as the wait editor value changes') reproduces on pristine main with built upstream artifacts and is pre-existing; tracked separately.
Once the pattern proves out in review, the same shape will be applied to apps/stats, apps/activitypub, and apps/admin-x-settings.