'How can I see what files are being processed by tsc?

Is there any flag to tsc which makes it a bit more verbose about what it's doing? I found --terse and --verbose references, but not sure these are old flags or proposed ones, because none of them works.

I'd like to see which files it's processing, for example.



Solution 1:[1]

I'd like to see which files it's processing, for example.

There is no flag for that.

More

You can find the user facing (developers trying to compile TS to JS) options with tsc --help

These and a bit more options are documented on the TypeScript website : https://www.typescriptlang.org/docs/handbook/compiler-options.html

And all options in the this file in the TypeScript source code.

Solution 2:[2]

Use npx tsc --build --verbose per the TypeScript documentation:

$ npx tsc --build --verbose
[3:47:04 PM] Projects in this build:
    * tsconfig.json

[3:47:04 PM] Project 'tsconfig.json' is out of date because output file 'src/index.js' does not exist

[3:47:04 PM] Building project '/home/mike/Code/mycompany/mpackage/tsconfig.json'...

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 mikemaccana