sajad torkamani

Install packages:

npm i -D typescript tsx @types/node

Create tsconfig.json:

npx tsc --init

Add NPM script to package.json:

"scripts": {
  "dev": "DEBUG=app:* tsx watch src/main.ts"
}

Change src/main.ts to whatever is the entry point to your application.

Sources / related

Tagged: TypeScript

Leave a comment

Your email address will not be published. Required fields are marked *