Skip to content

Handle the json extension when ResolvedModule result is json file #24959

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
merged 2 commits into from
Jun 14, 2018

Conversation

sheetalkamat
Copy link
Member

Fixes #24932

@sheetalkamat sheetalkamat merged commit 34b9c4d into master Jun 14, 2018
@sheetalkamat sheetalkamat deleted the moduleResolutionWithoutExtensionWithJson branch June 14, 2018 20:09
@johnnyreilly
Copy link

Great work!

}

const baseName = ts.getBaseFileName(fileName);
if (baseName === "package.json" || baseName === "tsconfig.json" || baseName === "jsconfig.json") {
Copy link
Contributor

@timocov timocov Jun 14, 2018

Choose a reason for hiding this comment

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

baseName === "tsconfig.json"

But if we have tsconfig with a custom name, will it work?

Choose a reason for hiding this comment

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

have the same problem

Copy link
Contributor

Choose a reason for hiding this comment

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

@sheetalkamat can you please take a look?

Choose a reason for hiding this comment

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

I think you probably want to raise a new issue for this; I doubt people are looking at this as the original issue was solved and shipped with 3.0.0 AFAIK

@johnnyreilly
Copy link

Do you know when this is likely to be released?

@mhegazy
Copy link
Contributor

mhegazy commented Jun 25, 2018

[email protected] end of July.

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.

5 participants