-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Fix self-name input linking for --allowJs --declaration projects #54819
Conversation
// to ensure that self-name imports of their own package can resolve back to their | ||
// input JS files via `tryLoadInputFileForPath` at a higher priority than their output | ||
// declaration files, so we need to do a single pass with all extensions for that case. | ||
if (getAllowJSCompilerOption(state.compilerOptions) && !pathContainsNodeModules(directory)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think with this we need to add affectsModuleResolution to "checkJs" in commandline options declaration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooh, yikes. I can do that for now, but maybe it would be better to update getCompilerOptionValue
(called by optionsHaveChanges
functions) to use all the computed compiler option getter functions sometime in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checkJs
doesn’t even have affectsSemanticDiagnostics
. Does it need it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it does. #53403 never made it in i guess.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’ll leave it off of this one and then we should revisit #53403
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
Fixes #54299
Related: #52185