Skip to content

Fix getResolvePackageJsonImports utility #61707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

andrewbranch
Copy link
Member

Fixes a bug @weswigham noticed in microsoft/typescript-go#791

@Copilot Copilot AI review requested due to automatic review settings May 15, 2025 22:19
@github-project-automation github-project-automation bot moved this to Not started in PR Backlog May 15, 2025
@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels May 15, 2025
Copy link

@Copilot 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.

Pull Request Overview

This pull request fixes the bug in the getResolvePackageJsonImports utility by updating the configuration property check. The change ensures that the code uses compilerOptions.resolvePackageJsonImports instead of the incorrect resolvePackageJsonExports.

  • Updated the conditional check from resolvePackageJsonExports to resolvePackageJsonImports.
  • Ensured proper handling based on the new configuration property.
Comments suppressed due to low confidence (1)

src/compiler/utilities.ts:9060

  • The conditional check now correctly validates compilerOptions.resolvePackageJsonImports, fixing the bug where an incorrect property was used.
if (compilerOptions.resolvePackageJsonImports !== undefined) {

@github-project-automation github-project-automation bot moved this from Not started to Needs merge in PR Backlog May 15, 2025
@andrewbranch andrewbranch merged commit 81c9518 into microsoft:main May 16, 2025
32 checks passed
@github-project-automation github-project-automation bot moved this from Needs merge to Done in PR Backlog May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants