Skip to content

feat: add pnpm monorepo support#1

Open
zoe-j-m wants to merge 1 commit intoskibidiskib:masterfrom
zoe-j-m:feat/pnpm-monorepo-support
Open

feat: add pnpm monorepo support#1
zoe-j-m wants to merge 1 commit intoskibidiskib:masterfrom
zoe-j-m:feat/pnpm-monorepo-support

Conversation

@zoe-j-m
Copy link
Copy Markdown

@zoe-j-m zoe-j-m commented Apr 2, 2026

Summary

  • Auto-detect pnpm-workspace.yaml and index each workspace package independently into per-package subdirectories
  • Generate a workspace.md overview with package list, detected frameworks, and internal dependency graph
  • Backward compatible — non-monorepo projects work identically

Changes

  • Refactored detectFramework and generators to accept a packageRoot parameter
  • Added workspace discovery functions (parsePnpmWorkspace, expandWorkspaceGlobs)
  • Added workspace.md generator with internal dependency resolution
  • Added yaml npm dependency for robust YAML parsing
  • Updated README with monorepo documentation

Test plan

  • Tested single-project mode (no regression)
  • Tested on synthetic pnpm monorepo with 3 packages (apps/web as Next.js, packages/shared, packages/ui)
  • Verified per-package output structure and workspace.md content
  • Test on a real pnpm monorepo codebase — routes not fully picked up yet, needs investigation

🤖 Generated with Claude Code

Auto-detect pnpm-workspace.yaml and index each workspace package
independently into per-package subdirectories. Generates a workspace.md
overview with package list and internal dependency graph.

- Refactor detectFramework/generators to accept packageRoot parameter
- Add workspace discovery (parsePnpmWorkspace, expandWorkspaceGlobs)
- Add workspace.md generator with internal dependency resolution
- Add yaml dependency for robust pnpm-workspace.yaml parsing
- Backward compatible: non-monorepo projects work identically

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant