Skip to content

Comments

Update TypeScript compilation target to es2022 for node rigs and projects#5667

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/update-default-target-node-rigs
Draft

Update TypeScript compilation target to es2022 for node rigs and projects#5667
Copilot wants to merge 3 commits intomainfrom
copilot/update-default-target-node-rigs

Conversation

Copy link
Contributor

Copilot AI commented Feb 23, 2026

The rushstack repo's minimum supported Node.js is 18.15.0, which fully supports ES2022, but node rigs were still defaulting to es2017/es2018 and many projects had accumulated stale target overrides (some with unresolved TODO comments referencing ES2020 as the goal).

Rig defaults updated

Rig Before After
@rushstack/heft-node-rig es2017 es2022
local-node-rig es2018 es2022
decoupled-local-node-rig es2018 es2022
@rushstack/heft-vscode-extension-rig es2017 es2022

Stale project-level overrides removed

  • Resolved TODO overrides: ts-command-line, heft-jest-plugin, eslint-plugin, operation-graph all had inline comments like // TODO: Remove when the repo is updated to ES2020 — those overrides are now gone
  • Outdated ES2019/ES2020 overrides removed from webpack plugins (webpack5-module-minifier-plugin, webpack5-localization-plugin, webpack4-module-minifier-plugin, preserve-dynamic-require-plugin, webpack-deep-imports-plugin, webpack-workspace-resolve-plugin) and libraries (lookup-by-path, worker-pool, localization-utilities, module-minifier)
  • Standalone test tsconfigs (no rig inheritance) updated to es2022 across build-tests/, build-tests-subspace/, and build-tests-samples/

Not changed

  • heft-web-rig, local-web-rig, and browser-targeting projects — independent of Node.js version
  • heft-typescript-v2-test, heft-typescript-v3-test — TypeScript ≤3.x predates es2022 target support

Change files

  • major bump for 5 packages at version ≥ 1.0.0 (heft-node-rig, ts-command-line, webpack5-module-minifier-plugin, heft-jest-plugin, heft-vscode-extension-rig)
  • minor bump for 11 packages at version < 1.0.0

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…ects

Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
Copilot AI changed the title [WIP] Update default target for node rigs to minimum supported version Update default TypeScript compilation target to es2022 for node rigs and projects Feb 24, 2026
Copilot AI requested a review from dmichon-msft February 24, 2026 00:12
…< 1.0.0

Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
Copilot AI changed the title Update default TypeScript compilation target to es2022 for node rigs and projects Update TypeScript compilation target to es2022 for node rigs and projects Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs triage

Development

Successfully merging this pull request may close these issues.

2 participants