Skip to content

fix: bump TypeScript target/lib to es2022 to support Array.at()#20855

Closed
Copilot wants to merge 3 commits intomainfrom
copilot/fix-issue-in-actions-run-23069823818
Closed

fix: bump TypeScript target/lib to es2022 to support Array.at()#20855
Copilot wants to merge 3 commits intomainfrom
copilot/fix-issue-in-actions-run-23069823818

Conversation

Copy link
Contributor

Copilot AI commented Mar 13, 2026

Summary

Fixes the failing CI jobs js and js-integration-live-api from run 23069823818.

Root Cause

resolve_host_repo.cjs uses Array.prototype.at(-1) (ES2022 feature), but actions/setup/js/tsconfig.json had target and lib set to es2020, causing the TypeScript typecheck to fail:

resolve_host_repo.cjs(75,48): error TS2550: Property 'at' does not exist on type 'string[]'.
Do you need to change your target library? Try changing the 'lib' compiler option to 'es2022' or later.

Fix

Updated actions/setup/js/tsconfig.json to use "target": "es2022" and "lib": ["es2022"], aligning it with tsconfig.build.json which already used es2022.

Copilot AI and others added 2 commits March 13, 2026 20:55
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan March 13, 2026 21:01
@pelikhan pelikhan marked this pull request as ready for review March 13, 2026 21:13
Copilot AI review requested due to automatic review settings March 13, 2026 21:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants