-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Build improvements #48784
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
Merged
+17,589
−14,811
Merged
Build improvements #48784
Changes from all commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
a3b5207
Use fixed time for vfs so baselining is consistent
sheetalkamat c20613f
Baseline buildinfos
sheetalkamat c79af2c
Write new file text in baseline even if the file wasnt read on the sh…
sheetalkamat 40a8c7f
Remove unnecessary debugger statement
sheetalkamat 7377470
Make sure that incremental correctness is checked with correct writeF…
sheetalkamat c206ff0
More baselines for the tsbuildinfo
sheetalkamat fc91aff
If we are writing dts file and have used file text as version, we can…
sheetalkamat 396e6c8
Make WriteFileCallback Api ready for future
sheetalkamat 7084221
Assert that there is only single source file when emitting d.ts file
sheetalkamat 5f02cf3
Add test
sheetalkamat c984298
Renames
sheetalkamat e4bf58a
More refactoring
sheetalkamat 87a7112
If we are updating dts of any of the file and it affects global scope…
sheetalkamat 16cef4a
Stacktrace optimization for getModified time in anticipation of using…
sheetalkamat 7e65cd3
Baseline getModifiedTime, setModifiedTime, fileExits and directoryExi…
sheetalkamat 0ff8cb3
Remove unnecessary write file finger print code since its not used at…
sheetalkamat 59ad6ef
Use modified time instead of file existence check
sheetalkamat c8327da
Remove unnecessary getModifiedTime
sheetalkamat 7817fbf
No need to check for file existence before reading the d.ts file
sheetalkamat cb7aca3
Do project reference errors before doing input/output file checks
sheetalkamat dd96e33
Dont call getModifiedTimes if dts change
sheetalkamat 89d2d4c
Passdown modified time if queried
sheetalkamat 6e0c916
Use modified time passed through the file watching in tsbuild
sheetalkamat e6a3ee8
Handle force build as separate upto date status
sheetalkamat 7cb0f40
uptodate status worker to read buildinfo and use it to determine upto…
sheetalkamat 1a8abac
No need to update output timestamps if buildinfo will determine uptod…
sheetalkamat 59f2b5c
Store change file set instead of hasPendingChange to be able to reuse…
sheetalkamat 5c12067
Add test that shows input file is not present
sheetalkamat 7734528
No need to check input time stamp before buildinfo
sheetalkamat 6198fa3
Keep buildinfos for lifetime of the solution builder and project
sheetalkamat fcf07f8
Store modified time along with text of buildinfo
sheetalkamat 2f2e370
Non composite projects dont need to track declaration change time
sheetalkamat 15fe24e
Pass through buildInfo so we dont have to parse it back
sheetalkamat dc21283
Save dts change time in buildinfo itself
sheetalkamat 5bccee8
Store dts time for --out in the buildInfo
sheetalkamat 62c687b
Store hash of text in the bundle info so it can be verified before ma…
sheetalkamat 128008a
Since buildinfo is cached no need to maintain version check state
sheetalkamat 4fb6773
Store output time stamps for non incremental builds
sheetalkamat 7e1e9d7
Revert "Baseline getModifiedTime, setModifiedTime, fileExits and dire…
sheetalkamat cb73874
Change verbose messages for upto date status
sheetalkamat d8d8609
Merge branch 'main' into timestamps
sheetalkamat 0f7903d
Reconcile reusable builder state and builder state so there are not t…
sheetalkamat 82fb56b
Cleanup impliedFormat
sheetalkamat 7785a87
Cleanup
sheetalkamat a95d3cc
Cleanup noEmit option
sheetalkamat 437619e
BuildInfo options emit as a flag
sheetalkamat b568d7e
Factor out types for program written in buildinfo with and without bu…
sheetalkamat 78ba778
No need to store output file stamps if not in watch mode
sheetalkamat 10728b4
Cleanup
sheetalkamat 5492949
Test for single watch per file
sheetalkamat 70069d2
Fix emit and error update baselines that were duplicate
sheetalkamat 21a6806
More refactoring
sheetalkamat b32d2eb
Only copy emit state fields when backing up to restore if emit fails
sheetalkamat 26e7cb6
Merge branch 'main' into timestamps
sheetalkamat 303824e
Instead of maintaining delta of changes, maintain old state for those…
sheetalkamat 643576c
Merge branch 'main' into timestamps
sheetalkamat 7810c56
Add test to verify build when input file does not change
sheetalkamat 28a9ff3
If version of the input file does not change, dont mark as out of date
sheetalkamat 929ddad
Merge branch 'main' into timestamps
sheetalkamat 5d31847
Disable lint warning as build fails without the assert
sheetalkamat fa1068e
Merge branch 'main' into timestamps
sheetalkamat 94e7e43
Merge branch 'main' into timestamps
sheetalkamat 7593eee
Merge branch 'main' into timestamps
sheetalkamat 405d8e9
Report aggregate statistics for solution as well as some solution per…
sheetalkamat fe69264
Merge branch 'main' into timestamps
sheetalkamat 0cf9e30
Options solutionDiagnostics instead so that its not too verbose when …
sheetalkamat e4e6672
When tsc --build --clean, only remove tsbuildinfo if its incremental …
sheetalkamat 842de49
Merge branch 'main' into timestamps
sheetalkamat 5c07c77
Revert "Options solutionDiagnostics instead so that its not too verbo…
sheetalkamat 31427f6
Revert "Report aggregate statistics for solution as well as some solu…
sheetalkamat 0f898f2
Merge branch 'main' into timestamps
sheetalkamat 5cd883a
Revert "When tsc --build --clean, only remove tsbuildinfo if its incr…
sheetalkamat 5cd5d57
Comments in the code
sheetalkamat 624c182
Feedback
sheetalkamat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.