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

fix: stop down-leveling files where only formatting has changed #102

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

RomainMuller
Copy link
Contributor

@RomainMuller RomainMuller commented Apr 17, 2023

Use a TypeScript-aware normalization on the declarations files to neutralize any formatting discrepancies that may exist between the output of downlevel-dts and the output of the raw TypeScript compiler.

Also corrects the location of output files in case where tsc.outDir is configured (previously a spurious interim path was added).

Finally, changes how the down-leveled declarations are created when necessary to avoid having to retain all their text in memory, as this can result in a very large amount of data being retained in working set. (Fixes #40)


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Use a TypeScript-aware normalization on the declarations files to
neutralize any formatting discrepancies that may exist between the
output of `downlevel-dts` and the output of the raw TypeScript compiler.

Also corrects the location of output files in case where `tsc.outDir`
is configured (previously a spurious interim path was added).
@aws-cdk-automation aws-cdk-automation added this pull request to the merge queue Apr 17, 2023
Merged via the queue into main with commit 7f26494 Apr 17, 2023
@aws-cdk-automation aws-cdk-automation deleted the rmuller/fix-downlevel branch April 17, 2023 14:04
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.

Compiler emits spurious down-level declarations
3 participants