ci(nx.json): add '^compile' dependsOn to 'test:types' target#10519
ci(nx.json): add '^compile' dependsOn to 'test:types' target#10519
Conversation
📝 WalkthroughWalkthroughA task dependency was added to the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
View your CI Pipeline Execution ↗ for commit 772b0d6
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
More templates
@tanstack/angular-query-experimental
@tanstack/eslint-plugin-query
@tanstack/preact-query
@tanstack/preact-query-devtools
@tanstack/preact-query-persist-client
@tanstack/query-async-storage-persister
@tanstack/query-broadcast-client-experimental
@tanstack/query-core
@tanstack/query-devtools
@tanstack/query-persist-client-core
@tanstack/query-sync-storage-persister
@tanstack/react-query
@tanstack/react-query-devtools
@tanstack/react-query-next-experimental
@tanstack/react-query-persist-client
@tanstack/solid-query
@tanstack/solid-query-devtools
@tanstack/solid-query-persist-client
@tanstack/svelte-query
@tanstack/svelte-query-devtools
@tanstack/svelte-query-persist-client
@tanstack/vue-query
@tanstack/vue-query-devtools
commit: |
size-limit report 📦
|
🎯 Changes
Add
"dependsOn": ["^compile"]to thetest:typestarget innx.json.Why
test:typestasks reference declaration files from dependent packages via TypeScript project references. For example:Without
"dependsOn": ["^compile"], Nx can scheduletest:typesin parallel with the dependency'scompiletask, leading to race conditions where the dependency'sdist-tsis not yet generated. This produces intermittent CI failures such as:These failures typically disappear on CI re-run because the previous run's cached
dist-tsis available via Nx Cloud.Scope
This affects nearly all packages in the monorepo. Any package that declares
referencesin its tsconfig benefits from this fix, including all query adapters (react-query, preact-query, vue-query, solid-query, svelte-query), all devtools, all persist-client packages, and others.Consistency
Other targets that depend on types (
test:eslint,test:lib) already declare"dependsOn": ["^compile"]. This change bringstest:typesin line with that pattern.✅ Checklist
pnpm run test:pr.🚀 Release Impact