0

I know that TS is converted to JS using tsc

Then after we get .js, we execute the .js file using node.

These are 2 steps in order to execute a .ts file

My question is, how to do it in 1 step? (like one command instead of 2(tsc and node)

1 Answer 1

2

You can use ts-node which will run ts files.

https://www.npmjs.com/package/ts-node

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.