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

앱에 의존하는 패키지 찾기

공유 패키지가 앱이나 서비스에 의존하는 곳을 읽기 전용으로 찾아 근본 원인별로 묶고, turbo dry run으로 빌드 그래프 비용을 측정해 준다.

원제 · Find packages that depend on apps

추천 툴
공통형식 기준 추천

프롬프트 원문

Audit the monorepo for shared packages (under packages/) that depend on an app or service, either directly or transitively.

1. For every package.json under packages/, list the workspace dependencies that point to apps/*, services, or other non-package workspaces.
2. Search source for imports of app modules. Use `git grep` with a pathspec rather than recursive grep. Search for both package-name imports and relative paths that escape the package.
3. For each hit, record the importing file, the imported symbol, and whether it is used as a type or at runtime.
4. Group the hits by root cause:
    - a schema or generated types
    - test support
    - constants or headers
    - real logic
5. Rank the groups by how many consumers they unblock and how much build-graph weight they remove.

Measure the improvement by comparing `turbo run build --dry=json --filter=<pkg>` before and after. Count tasks and dependency edges. Report numbers, not estimates. Do not change any code.

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

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

더 보기 ›