- vs code
npm install -g typescript
npm install -g ts-node
- code runner extension
-
Right click .ts file -> Run code
-
or use the command line -
ts-node --project ./tsconfig.json ./src/1/1.ts
-
alternatively you can use in the command line -
npm run start ./src/1/1.ts