TypeScript


TypeScript는 자바스크립트의 약점을 보안해 나왔다.


터미널에서 세팅하기

npm init -y

tsc --init

tsc --init --rootDir ./src --outDir ./dist --esModuleInterop --module commonjs --strict true --allowJS true --checkJS true

package.json 수정

"scripts": {
    "start": "tsc && node ./dist/index.js",
    "build": "tsc --build",
    "clean": "tsc --build --clean"
},

태그:

카테고리:

업데이트: