Skip to content

chore: migrate nx 20.4 → 21.6 (nx stack 1/5) - #208

Merged
getlarge merged 6 commits into
mainfrom
chore/nx-21
Nov 26, 2026
Merged

getlarge merged 6 commits into
mainfrom
chore/nx-21

Conversation

@legreffier

@legreffier legreffier Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Stack 1/5 of the Nx 24 upgrade. Nx recommends updating one major at a time.

  • nx migrate 21.6.11: @nx/* 21.6.11, TypeScript 5.9.3, Jest 30, ts-jest 29.4.9, eslint-config-prettier 10. jest-environment-node was aligned to 30 by hand.
  • Migrations: the nx release version config moved from generatorOptions to versionActionsOptions, and preserveLocalDependencyProtocols: false keeps the current behaviour. Nx's generated AI rule files are now gitignored.
  • eslint-plugin: ts-jest 29.4 forces Node10 module resolution in CommonJS mode, which breaks subpath-export types (@typescript-eslint/utils/ts-eslint). The specs are now transpile-only (isolatedModules), and tsc -p tsconfig.spec.json still type-checks them cleanly. This is temporary until the Vitest PR.

Stack

  1. nx 21 (this PR)
  2. nx 22
  3. nx 23 → 24 (clears the remaining audit highs)
  4. Jest → Vitest
  5. TS project references + package resolution instead of paths

Verification

  • format:check, lint and build pass for all projects.
  • test passes locally for every project that doesn't need RabbitMQ, Redis or cloud credentials. CI runs the rest.

legreffier Bot added 2 commits November 26, 2026 09:33
MoltNet-Diary: 8c49ab37-7277-4c6f-aee6-33d3b305fa70
Task-Group: nx-24-upgrade
Task-Family: infra
…29.4

MoltNet-Diary: f3969858-cd6e-4393-bf03-df18ecc79f38
Task-Group: nx-24-upgrade
@nx-cloud

nx-cloud Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 257633f

Command Status Duration Result
nx affected -t lint,test,build --parallel=2 ✅ Succeeded 53s View ↗

💡 With Ultracache enabled, Nx Cloud learns each task's file inputs in CI and uses them on later runs. Turn on Ultracache in workspace settings ↗ · Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-11-26 11:58:47 UTC

…st 29.4

MoltNet-Diary: da31018c-84b9-4972-b74c-d5a209ea90e2
Task-Group: nx-24-upgrade
Task-Completes: true
legreffier Bot added 3 commits November 26, 2026 12:54
Stacked PRs whose base is not main never got the required check.

MoltNet-Diary: e760c013-fa77-40dd-b4ba-4e025c6a73d2
Task-Group: tooling-deps
The read-write nxCloudAccessToken is removed from nx.json. CI reads
NX_CLOUD_ACCESS_TOKEN from repository secrets instead.

MoltNet-Diary: 1cf41d22-f743-4a41-9c22-695e70008693
Task-Group: tooling-deps
Pushes to main run in the `protected` environment, which holds the
read-write NX_CLOUD_ACCESS_TOKEN. All other runs use the read-only
repository secret.

MoltNet-Diary: 023cbf61-6772-4f2d-9315-33a2e8d04d81
Task-Group: tooling-deps
@getlarge
getlarge merged commit 17f185a into main Nov 26, 2026
6 checks passed
@getlarge
getlarge deleted the chore/nx-21 branch November 26, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant