Skip to content

chore: drop TS ignoreDeprecations, enforce strict + isolatedModules - #214

Merged
getlarge merged 2 commits into
mainfrom
chore/ts-strict-no-deprecations
Nov 26, 2026
Merged

getlarge merged 2 commits into
mainfrom
chore/ts-strict-no-deprecations

Conversation

@legreffier

@legreffier legreffier Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Follow-up to the Nx stack (#208–#212): drop the TypeScript 6 compatibility shims instead of carrying them.

Changes

  • Remove "ignoreDeprecations": "6.0" from the root solution tsconfig and all 8 package tsconfigs.
  • tsconfig.base.json:
    • strict: true (packages already set it; only the base pinned false).
    • isolatedModules: true.
    • Drop the TS5 pins Nx 23 added (noUncheckedSideEffectImports: false, types: ["*"]). Every lib/spec tsconfig already declares its types.
  • Fixes required by isolatedModules:
    • import type for interfaces used in decorated constructor signatures (TS1272) in async-local-storage, lock and a fastify-upload test controller. Emitted decorator metadata is unchanged (Object).
    • amqp-server.ts no longer reads RmqStatus members. It is an ambient const enum in @nestjs/microservices, which isolatedModules cannot inline. A local map typed as RmqStatus replaces it, and the public Server<RmqEvents, RmqStatus> type is unchanged.
  • Remove the now-redundant isolatedModules override in the eslint-plugin spec tsconfig and the duplicate esModuleInterop in cluster.
  • Side effect: the ts-jest TS151002 warning ("hybrid module kind … only supported in isolatedModules") is gone.

Verification

  • Clean typecheck + build (dist, out-tsc and tsbuildinfo removed) for all 8 projects.
  • lint for all 8 projects, plus nx format:check and nx sync:check.
  • Tests for amqp-transport (integration, against a throwaway RabbitMQ), async-local-storage, cluster, eslint-plugin and fastify-upload.
  • lock and file-storage tests are left to CI.

- remove ignoreDeprecations "6.0" from all tsconfigs
- tsconfig.base.json: strict true, isolatedModules true, TS6 defaults for
  noUncheckedSideEffectImports and types
- type-only imports for interfaces in decorated signatures (TS1272)
- amqp-server: stop reading the ambient const enum RmqStatus at runtime

MoltNet-Diary: 57b9bea9-011b-4797-9321-7f8709e26957
Task-Group: ts-strict
Task-Completes: true
@nx-cloud

nx-cloud Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit f14be89

Command Status Duration Result
nx affected -t lint,typecheck,test,build --para... ✅ Succeeded 57s 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 12:33:30 UTC

With isolatedModules, ts-jest used module nodenext and kept native
import(), which Jest's VM rejects without --experimental-vm-modules
(file-storage S3/GCS lazy SDK loading).

MoltNet-Diary: bbc6420c-2650-4182-bbad-b5080b0d40fb
Task-Group: ts-strict
@getlarge
getlarge merged commit 465be48 into main Nov 26, 2026
6 checks passed
@getlarge
getlarge deleted the chore/ts-strict-no-deprecations branch November 26, 2026 12:49
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