-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
feat: bundle type definitions into a single file per module #12345
Conversation
Codecov Report
@@ Coverage Diff @@
## main #12345 +/- ##
=======================================
Coverage 66.97% 66.97%
=======================================
Files 329 329
Lines 17335 17335
Branches 5061 5061
=======================================
Hits 11610 11610
Misses 5693 5693
Partials 32 32 Continue to review full report at Codecov.
|
Impressive! What if some basic type tests would be introduced for package with exported types? Just to cover exports which must be available for consumers. For instance, current type test in I could try to cover at least the most important packages. This should give more confidence + will be helpful in CI for the bundled future. What you think? And if this sounds helpful, what’s the approx timeframe? (; (12345 – magic number! Special PR get special numbers.) |
The type tests run after bundling I think (or, at least that was my intention). If not I'll fix that Adding more tests would be great, though! 😃 |
Yep, type tests run after bundle, so any tests we have run against the bundled definitions. No idea why all windows builds failed, tho.... |
While playing with #12327, I noticed that Windows tests run on Windows Server 2022. Just a week ago it was Windows Server 2019. This morning a newsletter from GitHub came confirming that they are migrating Might be this is the reason I couldn’t make the flaky test fail. Perhaps it is not flaky anymore and that’s good. Now two other SCM tests are failing from time to time on Windows. Possibly just a timeout, because of slower FS or so. I keep an eye on these (; |
merging in |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
This should
tsc
time (for consumers) astsc
only needs to read a single file per module instead of following a bunch of importsTest plan
This is the entire diff of all
packages/build/**/*d.ts
: https://gist.github.com/SimenB/4f583a1a737b913a0328985bbf8df617While the diff is
329 files changed, 5356 insertions(+), 9134 deletions(-)
, there are 280 deleted files.I'll probably land this, then test it more thoroughly with a beta release of v28