Skip to content

Support extending multiple config files#838

Merged
NullVoxPopuli merged 1 commit intotyped-ember:mainfrom
mogstad:push-qzvstsxuklyz
Mar 25, 2025
Merged

Support extending multiple config files#838
NullVoxPopuli merged 1 commit intotyped-ember:mainfrom
mogstad:push-qzvstsxuklyz

Conversation

@mogstad
Copy link
Copy Markdown
Contributor

@mogstad mogstad commented Mar 25, 2025

Since TS5, tsconfig.json extends supports being an array of config files to extend.

Resolved #672

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What happens in these new tests without the fix implemented?

I don't really understand why the expects are what they are. I would have expected an assertion of a value being present in the resolved config that is defined in the extended configs?

Why assert with normalize path?

Thank you!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Without the fix they would throw an exception.

I agree the expects are a bit weird, I just continued using the existing pattern. Let me see if I can improve it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Invoked the loadConfigInput directly, but kept the existing setup there as well, to ensure the root dir is correctly.

Since TS5, tsconfig.json `extends` supports being an array of config files to
extend.
@mogstad mogstad force-pushed the push-qzvstsxuklyz branch from e7991d2 to 56b249a Compare March 25, 2025 13:51
Copy link
Copy Markdown
Contributor

@NullVoxPopuli NullVoxPopuli left a comment

Choose a reason for hiding this comment

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

thank you!!

@NullVoxPopuli NullVoxPopuli added the enhancement New feature or request label Mar 25, 2025
@NullVoxPopuli NullVoxPopuli merged commit 0692149 into typed-ember:main Mar 25, 2025
2 checks passed
@github-actions github-actions Bot mentioned this pull request Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Glint doesn’t support multiple Typescript extends

2 participants