You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Search Terms:
build out
no files build
emitted files
list emitted files incorrect
Expected behavior:
Expect tsc --build to compile files after outDir is deleted.
And expect tsc --build --listEmittedFiles to list files emitted
Actual behavior: Steps to replicate:
Compile a composite project with yarn tsc -b
Remove outDir (dist or lib for example)
Recompile with yarn tsc -b (optionally with --listEmittedFiles)
4.a. Observe no new compiled files
4.b. Observe --listEmittedFiles listing files that aren't actually emitted.
Also removing tsconfig.tsbuildinfo solves the issue. However compiling with -v verbose, does acknowledge that the outDir is outdated and should be rebuild.
edit:
I use tsc -b --clean. However having verbose and listEmittedFiles being contradictory to what actually happens is confusing.
So not generating new build is intended behavior, refer to #30602
To make matters clear, if we change the modified time for the files, it should not mark them as emitted files.
…ing --listEmittedFiles (#35714)
* Baseline incremental scenarios for listEmittedFiles
* Do not list output file that just changes modified time stamp as emitted file
Fixes#35605
TypeScript Version: 3.7.x-dev.201xxxxx
Search Terms:
build out
no files build
emitted files
list emitted files incorrect
Expected behavior:
tsc --build
to compile files after outDir is deleted.tsc --build --listEmittedFiles
to list files emittedActual behavior:
Steps to replicate:
yarn tsc -b
yarn tsc -b
(optionally with--listEmittedFiles
)4.a. Observe no new compiled files
4.b. Observe
--listEmittedFiles
listing files that aren't actually emitted.See demo repo:
https://github.com/TimVosch/TS-Build-Bug
Related Issues:
Unfortunately no.
The text was updated successfully, but these errors were encountered: