-
-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(typescript): only emit tsbuildinfo file when there is something t…
…o emit (#771) * fix(typescript): only emit tsbuildinfo file when there is something to emit (fixes #681) * test(typescript): fix test failing on Node.js v10
- Loading branch information
1 parent
6b4b7b6
commit 2711aa8
Showing
4 changed files
with
123 additions
and
54 deletions.
There are no files selected for viewing
This file contains 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
6 changes: 6 additions & 0 deletions
6
packages/typescript/test/fixtures/incremental-output-cache/main.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
type AnswerToQuestion = string | undefined; | ||
|
||
const answer: AnswerToQuestion = '42'; | ||
|
||
// eslint-disable-next-line no-console | ||
console.log(`the answer is ${answer}`); |
7 changes: 7 additions & 0 deletions
7
packages/typescript/test/fixtures/incremental-output-cache/tsconfig.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"compilerOptions": { | ||
"incremental": true, | ||
"outDir": "./dist", | ||
"tsBuildInfoFile": "./dist/.tsbuildinfo" | ||
} | ||
} |
This file contains 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