npm i typescript
npm i ts-node --sava-dev
npx tsc
이제 node 명령을 통해 컴파일된 js파일을 실행합니다.
node dist/index.js
아까 설치한 ts-node를 이용해 바로 실행할 수 있습니다.
npx ts-node src/index.ts