Skip to content

refactor: 전체 파일 TypeScript 마이그레이션 및 DoD 확정 (#75)#82

Merged
rebi13 merged 1 commit into
mainfrom
refactor/issue-75
Mar 1, 2026
Merged

refactor: 전체 파일 TypeScript 마이그레이션 및 DoD 확정 (#75)#82
rebi13 merged 1 commit into
mainfrom
refactor/issue-75

Conversation

@rebi13
Copy link
Copy Markdown
Member

@rebi13 rebi13 commented Mar 1, 2026

📝 작업 개요

🔧 주요 변경 사항

  • 전 파일 TS 전환

  • app.js -> app.ts

  • api/index.js -> api/index.ts

  • scripts, src, tests 하위 .js 파일 전부 .ts로 전환

  • 상대 import 경로를 .ts 기준으로 정리

  • 설정 업데이트

  • tsconfig.json

    • allowImportingTsExtensions 활성화
    • include 범위를 src/api/scripts/tests 전체로 확장
  • package.json

    • mainapp.ts로 변경
    • startnode --loader ts-node/esm ./app.ts로 변경
    • dev:vercel, 마이그레이션 스크립트 경로를 .ts로 변경
  • 문서화

  • TYPESCRIPT_MIGRATION_POLICY.md 신규 추가

🎯 변경 목적

  • JS/TS 혼재 상태를 해소해 코드베이스 기준을 TypeScript로 통일하기 위함입니다.
  • 마이그레이션 완료 조건(DoD)을 문서화해, 이후 PR에서 일관된 판단 기준을 적용하기 위함입니다.

🧪 검증 방법

  • npm run lint (스크립트 없음)
  • npm run build (성공)
  • npm run test (성공)

📌 참고 사항

  • 현재는 대규모 확장자 전환 단계이므로, 기존 JS 로직 보존을 우선해 파일 상단에 // @ts-nocheck를 적용했습니다.
  • 후속 단계에서 모듈별로 @ts-nocheck 제거 및 명시 타입 강화를 진행할 수 있도록 정책 문서에 단계 계획을 포함했습니다.

Closes #75

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
todopet_server Ready Ready Preview, Comment Mar 1, 2026 5:46am

@rebi13 rebi13 merged commit cff528f into main Mar 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[P2] TypeScript 마이그레이션 완료 기준(DoD) 확정

1 participant