Extend the tsc --listFiles option to specify an output file for the list #60966
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
π Search Terms
listFiles redirect
β Viability Checklist
β Suggestion
I would like to be able to separate the output from the listFiles option from the rest of the tsc output (eg. compilation errors). I think the easiest way to do this would be to allow an output file to be specified.
π Motivating Example
While integrating typescript scripts into a
make
build process, I wanted to generate dependency files to facilitate incremental builds. Initially I tried running with the listFiles flag and capturing the output to create the dependency files to include in my makefile, however I quickly ran into the following issues:My initial solution was to run
tsc
twice, once with--listFiles --noEmit
and then again without those options. This resulted in excessive build times as I needed to do this for lots of scripts.For now I have solved the issue with the following bash script that attempts to extract the compilation output from the listFiles output:
However it would be much simpler if I could separate the listFiles output using the
tsc
command, eg:π» Use Cases
The text was updated successfully, but these errors were encountered: