refactor: fs.promises, move mkdir to writeoutputfile, Part 3#4376
Merged
lukastaegert merged 5 commits intorollup:masterfrom Feb 2, 2022
Merged
refactor: fs.promises, move mkdir to writeoutputfile, Part 3#4376lukastaegert merged 5 commits intorollup:masterfrom
lukastaegert merged 5 commits intorollup:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4376 +/- ##
==========================================
- Coverage 98.72% 98.72% -0.01%
==========================================
Files 205 204 -1
Lines 7320 7315 -5
Branches 2083 2082 -1
==========================================
- Hits 7227 7222 -5
Misses 34 34
Partials 59 59
Continue to review full report at Codecov.
|
8f9d2a2 to
f11edc5
Compare
f11edc5 to
71353db
Compare
2e0c979 to
c130279
Compare
1bab075 to
14df5a1
Compare
Member
Yes, but I think there are some things to consider:
Now the second point is independent of the first, but it makes we wonder in how far we want to think about a more general solution. |
Contributor
Author
@lukastaegert didn't ignore this, I'll get back to you on that. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
Description
moves
mkdirtowriteOutputFileso it'll be called only once per file (not again for the source map file).@lukastaegert do you think it would make sense to drop those in a Set, and only create it once for sure? might improve perf.
I'm guessing it can contain duplicates for:
Note: I had the changes and breaking tests in this PR originally, but I'll move 'em to
Part 4.