실행환경

npm init
npm install typescript
"scripts": {
  "transpile": "tsc"
}

그리고 커맨드에 실행하려면 아래 처럼 해야 한다.

./node_modeuls/.bin/tsc

tsc 명령어를 이용해서 .ts 파일을 컴파일 한다.

이 과정에서 옵션 들은 tsconfig 파일에서 설정한다.

타입스크립트 설정

tsc --init