[TIL] 8월 3일 금요일

Seoyoung Hong·2023년 8월 7일
0

프로그래머스

Typescript 프로젝트 세팅 명령어

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

3.package.json의 “scripts” 항목을 다음과 같이 변경

"scripts": {
    "start": "tsc && node ./dist/index.js",
    "build": "tsc --build",
    "clean": "tsc --build --clean"
},
  1. 해당 디렉토리 위치를 기반으로 편집기를 열어서 코딩 준비

code .
profile
매일 나아지는 개발자 홍썸머

0개의 댓글