본문 바로가기
코딩 · 개발원문 · prompts.chat

편의용 재-export 점검

다른 워크스페이스 패키지의 심볼을 전달하는 재-export를 읽기 전용으로 찾아 분류하고, 유지 또는 제거를 권장해 준다.

원제 · Find convenience re-exports

추천 툴
공통형식 기준 추천

프롬프트 원문

Find convenience re-exports in <package>: `export * from` and `export { X } from` statements that forward symbols owned by another workspace package.

For each re-export:

- Name the owning package. Say whether the re-export forces consumers to install or build that package when they would not otherwise need it.
- Count consumers with `git grep` and note which ones already depend on the owning package.
- Classify it:
  (a) Type-only. Usually keep it, because it has no runtime cost.
  (b) A runtime value with few consumers. Remove it and point consumers at the owner.
  (c) Real code that only looks like a re-export. Keep it.
  (d) Many consumers. Defer it to its own PR.

Produce a table with these columns: symbol, owner, consumers, classification, recommended action. Do not edit any files yet.

출처 · prompts.chat 공개 프롬프트 모음 · 작성 Santosh Yadav — CC0(저작권 포기)로 공개된 원문을 그대로 싣습니다. 한국어 제목 · 설명은 AI 번역이며, 실행 결과는 아직 없습니다.

같은 분야 프롬프트 코딩 · 개발

더 보기 ›