Skip to content

tsc --noEmit --incremental #8

@innerstella

Description

@innerstella

package.json script에 작성

  • tsc : typescript compiler 실행
  • --noEmit : 타입 검사만 하고, 실제 JS 파일은 출력하지 않음
  • --incremental : 타입스크립트의 증분 빌드 기능을 켜는 옵션

빌드를 위한 게 아니라 타입 에러 확인 용
보통 CI/CD나 pre-commit 훅에서 코드 타입에 문제가 없는지 확인할 때 사용

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions