Communities for your favorite technologies. Explore all Collectives
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I know that TS is converted to JS using tsc
tsc
Then after we get .js, we execute the .js file using node.
.js
node
These are 2 steps in order to execute a .ts file
.ts
My question is, how to do it in 1 step? (like one command instead of 2(tsc and node)
You can use ts-node which will run ts files.
ts-node
https://www.npmjs.com/package/ts-node
Add a comment
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.