Skip to content
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

Ensure that JSON files are included in build module resolution (#905) #1101

Merged
merged 3 commits into from
May 7, 2020

Conversation

berickson1
Copy link
Contributor

Ensure that json files are resolved if resolveJsonModule flag is set in tsconfig

Fixes #905

Ensure that json files are resolved if resolveJsonModule flag is set in tsconfig
@andrewbranch
Copy link
Contributor

Thanks so much for doing this @berickson1! Do you think you’d be able to add a comparison test?

@berickson1
Copy link
Contributor Author

@andrewbranch - Added a comparison-test for the positive case (& confirmed it didn't work before this change). Should I also add one for when resolveJsonModule is false?

@berickson1 berickson1 force-pushed the berickson1/resolveJson branch from 43d97d6 to 4eb03b2 Compare May 7, 2020 00:29
Copy link
Contributor

@andrewbranch andrewbranch left a comment

Choose a reason for hiding this comment

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

Looks good to me! Let me try to channel @johnnyreilly from across the Atlantic—

Great work, chap! 🌻 Could you update the package.json version and add an entry to the CHANGELOG.md too please?

Copy link
Contributor

@andrewbranch andrewbranch left a comment

Choose a reason for hiding this comment

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

Maybe this is the reason for the failing tests on Travis?

test/comparison-tests/resolveJsonModule/tsconfig.json Outdated Show resolved Hide resolved
@johnnyreilly
Copy link
Member

Thanks!

@johnnyreilly johnnyreilly merged commit 227d99a into TypeStrong:master May 7, 2020
@johnnyreilly
Copy link
Member

Shipping with https://github.com/TypeStrong/ts-loader/releases/tag/v7.0.3 ⛴️

@berickson1 berickson1 deleted the berickson1/resolveJson branch May 7, 2020 07:47
berickson1 added a commit to berickson1/ts-loader that referenced this pull request May 22, 2020
…trong#905) (TypeStrong#1101)

* Fix TypeStrong#905
Ensure that json files are resolved if resolveJsonModule flag is set in tsconfig

* Add test

* PR Comments
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.

TS6307: JSON files not in file list when using composite projects
3 participants