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/*
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
Audit the monorepo for shared packages (under packages/) that depend on an app or service, either directly or transitively.
- For every package.json under packages/, list the workspace dependencies that point to apps/*, services, or other non-package workspaces.
- Search source for imports of app modules. Use
git grepwith a pathspec rather than recursive grep. Search for both package-name imports and relative paths that escape the package. - For each hit, record the importing file, the imported symbol, and whether it is used as a type or at runtime.
- Group the hits by root cause:
- a schema or generated types
- test support
- constants or headers
- real logic
- 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.
Source and license
- Source
- Prompts Chat
- Original
- f/awesome-chatgpt-prompts/prompts.csv#find-packages-that-depend-on-apps
- License
- MIT