Skip to content

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

Merged
johnnyreilly merged 3 commits intoTypeStrong:masterfrom
berickson1:berickson1/resolveJson
May 7, 2020
Merged

Ensure that JSON files are included in build module resolution (#905)#1101
johnnyreilly merged 3 commits intoTypeStrong:masterfrom
berickson1:berickson1/resolveJson

Conversation

@berickson1
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@berickson1
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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?

Comment thread test/comparison-tests/resolveJsonModule/tsconfig.json Outdated
@johnnyreilly
Copy link
Copy Markdown
Member

Thanks!

@johnnyreilly johnnyreilly merged commit 227d99a into TypeStrong:master May 7, 2020
@johnnyreilly
Copy link
Copy Markdown
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