Skip to content
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

Supports incremental build in tsc --b --w mode #29161

Merged
merged 23 commits into from
Jan 17, 2019
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
0cabb00
Use watch factory instead of direct host functions in tsbuild to prov…
sheetalkamat Dec 14, 2018
9e05abc
Make BuilderProgram as Program
sheetalkamat Dec 15, 2018
48baa42
Make SolutionBuilder handle BuilderProgram in preparation to handle i…
sheetalkamat Dec 19, 2018
56a76d8
Revert BuilderProgram to be redirected object to Program in preparati…
sheetalkamat Dec 19, 2018
69193d9
Add method to release held Program in BuilderProgram
sheetalkamat Dec 19, 2018
47f5106
Use oldProgram to create the new Program.
sheetalkamat Dec 19, 2018
f1949bb
Use emit builder to emit only changed files.
sheetalkamat Dec 20, 2018
7b290fd
Update the timestamps of outputs that dont need to be written because…
sheetalkamat Dec 20, 2018
0d9038c
Handle prepend in incremental build. Always emit when program uses pr…
sheetalkamat Dec 22, 2018
b360ff7
Write the tests for incremental build and declaration emit errors han…
sheetalkamat Dec 26, 2018
69abc12
Handle declaration emit errors in tsbuild mode by backing up builder …
sheetalkamat Dec 26, 2018
42484b5
Use DirectoryStructureHost for fileExists and readFile
sheetalkamat Dec 27, 2018
1b37830
Merge branch 'master' into incrementalBuild
sheetalkamat Jan 9, 2019
abc8618
Fix typo
sheetalkamat Jan 10, 2019
c1edbb8
Merge branch 'master' into incrementalBuild
sheetalkamat Jan 11, 2019
c909bec
Rename indexing variable
sheetalkamat Jan 14, 2019
3943588
CompilerHostLikeForCache rename
sheetalkamat Jan 14, 2019
ff97d86
Fix typo
sheetalkamat Jan 14, 2019
e745fca
Fix typo
sheetalkamat Jan 14, 2019
520e33f
PR feedback
sheetalkamat Jan 14, 2019
9f3b77a
PR feedback
sheetalkamat Jan 17, 2019
dbae2cb
add missing type annotation
sheetalkamat Jan 17, 2019
900d6f7
renames
sheetalkamat Jan 17, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
CompilerHostLikeForCache rename
  • Loading branch information
sheetalkamat committed Jan 14, 2019
commit 39435887939e65650fffc14e19d80d9046b429a8
4 changes: 2 additions & 2 deletions src/compiler/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ namespace ts {
return compilerHost;
}

interface ComplierHostLikeForCache {
interface CompilerHostLikeForCache {
fileExists(fileName: string): boolean;
readFile(fileName: string, encoding?: string): string | undefined;
directoryExists?(directory: string): boolean;
Expand All @@ -213,7 +213,7 @@ namespace ts {

/*@internal*/
export function changeCompilerHostLikeToUseCache(
host: ComplierHostLikeForCache,
host: CompilerHostLikeForCache,
toPath: (fileName: string) => Path,
getSourceFile?: CompilerHost["getSourceFile"]
) {
Expand Down