Skip to content

feat: auto-discover subdirectories without workspace config#80

Open
phuchiss wants to merge 1 commit into
midudev:mainfrom
phuchiss:feat/auto-discover-subdirs
Open

feat: auto-discover subdirectories without workspace config#80
phuchiss wants to merge 1 commit into
midudev:mainfrom
phuchiss:feat/auto-discover-subdirs

Conversation

@phuchiss
Copy link
Copy Markdown

Summary

  • Add discoverSubDirs() that walks subdirectories (depth 3) looking for manifest files when no workspace config exists
  • Support manifest files: package.json, pom.xml, go.mod, requirements.txt, Cargo.toml, Gemfile, composer.json, build.gradle*, pubspec.yaml, etc.
  • Fallback activates only when resolveWorkspaces() returns empty (no pnpm-workspace.yaml, package.json workspaces, or deno.json workspace)
  • Skip node_modules, hidden dirs, and SCAN_SKIP_DIRS during traversal

Test plan

  • 11 new test cases covering: flat subdirs, nested subdirs (root/sub/backend), Maven, Go, Python, no-fallback-when-workspace-exists, deduplication, frontend detection, cross-directory combos
  • All 338 existing tests still pass (0 regressions)

🤖 Generated with Claude Code

Add fallback scanning when no workspace config (pnpm-workspace.yaml,
package.json workspaces, deno.json workspace) exists. Walks subdirectories
up to depth 3 looking for manifest files (package.json, pom.xml, go.mod,
requirements.txt, Cargo.toml, Gemfile, etc.) and detects technologies
from each discovered project directory.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 11, 2026

@phuchiss is attempting to deploy a commit to the midudev pro Team on Vercel.

A member of the Team first needs to authorize it.

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