deps: update to latest @rollup/plugin-typescript #13075
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We previously settled on
@rollup/plugin-typescript@^2.1.0
even though that's pretty old (Jan 2020) because the latest versions were broken with our typescript setup. The rollup error messages were pretty inscrutable and not worth wading through since the old version was working fine (with the latesttsc
as a peer dep).#13072 (comment) kind of forces our hand because we want
extends
support in tsconfig files, so we need a more recent plugin. The fix isn't so bad, it just seems like you really really can't use a customoutDir
. The readme gets into this a bit, but that workaround didn't work for me (nor did relocating theoutDir
to a few different places). Rather than torturing every path permutation until it worked, it's easier to just disable the customoutDir
and any of the properties that force a customoutDir
since we don't need any of those for the plugin's build anyways.Also updates to typescript 4.4.3 because it has a bug fix (microsoft/TypeScript#45642) that fixes the plugin hanging forever with typescript 4.4.* builds.