Is there a way for me to view the files currently being handled by tsc?

Searching for a flag in tsc that provides more detailed information on its operations. Came across references to --terse and --verbose, but unsure if these are outdated or proposed flags as they do not seem to work.

Interested in knowing the specific files being processed by tsc.

Answer №1

It would be beneficial to have visibility into the files being processed.

Unfortunately, there is no specific flag for that purpose.

Further Information

To access developer-facing options (those compiling TypeScript to JavaScript), use tsc --help

You can also refer to the documentation on compiler options available on the TypeScript website: https://www.typescriptlang.org/docs/handbook/compiler-options.html

For a comprehensive list of all options, you can explore this file in the TypeScript source code.

Answer №2

To follow the guidelines outlined in the TypeScript documentation, utilize the command npx tsc --build --verbose:

$ 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'...

Answer №3

One simple method that I find effective in preventing the absence of any output is:

tsc --listEmittedFiles

Although it doesn't display files as they are being processed (which would be helpful!), it does provide an indication of its actions, albeit at the last moment of processing.

You can also configure this in tsconfig.json under "compilerOptions":

"listEmittedFiles": true,

Answer №4

--displayFiles shows a list of all files that have been processed, whereas --displayFilesOnly provides the same information without actually compiling the files.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What is the best way to extract data from a request when using an HTTP callable function?

I've integrated the Firebase Admin SDK for handling administrative tasks. The functions I've set up are hosted on Firebase Cloud Function in my console. While I can successfully trigger these functions from my application, I'm facing an issu ...

Encountering TS2344 error when referring to the Component Ref in Vue.js during typing operations

I received a component reference on my FormCheckbox component from a patternlib. When I tried to incorporate the component into my own TestComp component, I encountered this TypeScript error that left me puzzled: TS2344: Type '{ name: string; mixins: ...

Launching the Skeleton feature in NextJS with React integration

I have been working on fetching a set of video links from an Amazon S3 bucket and displaying them in a video player component called HoverVideoPlayer. However, during the loading process, multiple images/videos scale up inside a Tailwind grid component, ca ...

JavaScript code for sorting a list of objects alphabetically according to a different list

I am looking to alphabetically sort a list of objects based on another list of characters and the 'name' property. Below is the sorting order I would like to use: const SortingArray = [['a','á','à','â', ...

Utilizing AMD Modules and TypeScript to Load Bootstrap

I am attempting to incorporate Bootstrap into my project using RequireJS alongside typescript AMD modules. Currently, my requireJS configuration looks like this: require.config({ shim: { bootstrap: { deps: ["jquery"] } }, paths: { ...

Retrieve the route parameters and exhibit the default option in a dropdown menu using Angular 2/4/5, along with translations implemented through ngx-translate

Is there a way to extract route parameters from a URL and then display them in a drop-down menu? I've attempted some solutions using ActivatedRoute, but they are not returning the first value after the base reference. For instance, If the URL is: l ...

The method getDay is not recognized as a function in Typescript Angular

After searching for a solution, I came across a similar question that did not address the specific issue I am dealing with. The challenge I am facing involves parsing a date into a string. Below is my current implementation: export class DataFormater { ...

What is the best way to interact with and modify the relationships of "many-to-many" fields in my database table?

As someone who is new to nestjs, I am working with two entities: @Entity({ name: "Books" }) @ObjectType() export class Book { @PrimaryGeneratedColumn() @Field() id: number; @Column() @Field() title: string; @ManyToMany(() => Auth ...

How can you display the value of a date type in a TextField?

I'm currently utilizing the TextField component from material-ui. My goal is to display the current date in the TextField and allow users to select another date. Is this feasible? When using type="date", the value set as {date} does not show up in th ...

Checking if a value exists in an array using *ngIf

I'm just starting to learn Ionic and Angular, so I'm hoping someone can provide some guidance. Here is the data I have: "messages" : [ { "sender" : "24", "name" : "James", "datetime" : ISODate("2019- ...

How come I am able to use array.some() but not array.every() when working with union array types?

Imagine a scenario where there is a (silly) function like this: function doSomething(input: number|string): boolean { if (input === 42 || input === '42') { return true; } else { return false; } } Question arises as to why array.som ...

Using Angular's mergeMap feature to concatenate multiple HTTP calls sequentially

The method called getDetails() retrieves an array of Details[]. Within this array, there is a property named name which I need to pass to another HTTP request. Details { name: String; Details getDetails() return this.https.get("/someValue&q ...

Achieve top-notch performance with an integrated iFrame feature in Angular

I am trying to find a method to determine if my iframe is causing a bottleneck and switch to a different source if necessary. Is it possible to achieve this using the Performance API? This is what I currently have in my (Angular) Frontend: <app-player ...

Is it possible to create a TypeScript class that contains various custom functions?

Exploring TypeScript is a fresh yet exciting journey for me! In the world of JavaScript, checking if an object has a function and then calling it can be achieved with code like this: if(this['my_func']) { this['my_func'](); } Howeve ...

Angular error: Trying to access the sort property of an undefined value

I am currently working on creating a sorting function and pipe for a table. I found guidance on how to do this by following a tutorial at this link, and here is the plunker example. In the example, the table header should be clickable to trigger the sort() ...

Implementing a Duration typing feature for momentjs in TypeScript

Struggling to modify the Duration interface in the momentjs package I need to calculate months based on a 30-day period, but version 2.24.0 returns around 0.94 months instead of 1 Unfortunately, my attempt to add a function like this has not been success ...

Having trouble debugging TypeScript files in Chrome following an Angular update

I have been experimenting with writing a basic app using Angular 4.2.5 to expand my knowledge. Previously, I was able to debug the TypeScript files in Chrome without any issues. However, after updating to Angular 5.2.7, I am no longer able to view the Type ...

How about: "Are you utilizing the recoil selector for sorting through component

After diving into numerous examples, documentation, and videos about using selectors with recoil, I still can't seem to wrap my head around it. Maybe it's just one of those off days because it shouldn't be this difficult. Here's where ...

A Guide to Iterating Through Arrays of Objects Using TypeScript

Currently, I am engrossed in an Angular project where I am fetching an object containing an array of objects from an API. The object being passed to the API as a parameter through my service is called "reportData". Here is an example of the data retrieve ...

The React table column definition inexplicably transforms into a string

When working with react-table in Typescript, I encountered an issue while defining the type for my columns within a custom hook. It seems that when importing the hook and passing the columns to my Table component, they are being interpreted as strings inst ...