Skip to content

Use .tsbuildinfo to build with tsc and tsc --w when not using build mode#30232

Merged
sheetalkamat merged 7 commits intomasterfrom
incrementalWithNormalTsc
Mar 9, 2019
Merged

Use .tsbuildinfo to build with tsc and tsc --w when not using build mode#30232
sheetalkamat merged 7 commits intomasterfrom
incrementalWithNormalTsc

Conversation

@sheetalkamat
Copy link
Copy Markdown
Member

@sheetalkamat sheetalkamat commented Mar 5, 2019

Works on top of #29813
This change should help with #12996

@sheetalkamat
Copy link
Copy Markdown
Member Author

sheetalkamat commented Mar 5, 2019

@RyanCavanaugh @rbuckton @DanielRosenwasser This change is on top of tsc --b generating .tsbuildinfo. The main change is that tsc --w will use the hash as file version instead of count of changes in lifetime of the span (as otherwise the written signature makes no sense in determining if the file has changed and technically we want all tsc modes to use same version type so its compatible in all modes?).
Its ready for review as well.

@sheetalkamat
Copy link
Copy Markdown
Member Author

@RyanCavanaugh please take a look at this as well since I think having same file version when writing tsbuildinfo is important for things to work correctly and because we don't have published API for tsbuild yet many apis depend on watch api to build the projects and we should not regress there by writing conflicting file versions.

@sheetalkamat sheetalkamat changed the base branch from incrementalBuildInfo to master March 8, 2019 23:50
@sheetalkamat sheetalkamat force-pushed the incrementalWithNormalTsc branch from 82024e2 to f82cb23 Compare March 9, 2019 00:36
Comment thread src/compiler/watch.ts Outdated
@sheetalkamat sheetalkamat merged commit 409e076 into master Mar 9, 2019
@sheetalkamat sheetalkamat deleted the incrementalWithNormalTsc branch March 9, 2019 01:18
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants