-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: stop down-leveling files where only formatting has changed (#102)
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]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
- Loading branch information
1 parent
db62ddd
commit 7f26494
Showing
1 changed file
with
60 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters