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-ex

Prompt · برومبت

Works with

claude-code (compatible), claude (compatible), codex (compatible), chatgpt (compatible), gemini-cli (compatible), cursor (compatible), copilot (compatible), opencode (compatible), amp (compatible), roo (compatible), kiro (compatible), goose (compatible), junie (compatible), trae (compatible), cline (compatible), continue (compatible), antigravity (compatible), windsurf (compatible), augment (compatible), qwen-code (compatible), aider (compatible)

Content

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.

Source and license

Source
Prompts Chat
Original
f/awesome-chatgpt-prompts/prompts.csv#find-convenience-re-exports
License
MIT