Fix: Monorepo dependency parsing and docs fetch pipeline integration

- Add automatic detection of package.json in common monorepo patterns (backend/, frontend/, packages/*/, apps/*/,
  services/*/)
  - Fix pipeline deps.json path mismatch - deps writes to .pf/raw/deps.json but docs fetch was looking in
  .pf/deps.json
  - Add _parse_standalone_package_json() to handle subdirectory packages without workspace detection
  - Properly track workspace_package field with relative paths for all discovered package.json files

  Fixes PlantPro and similar monorepos where deps were not being detected (only finding 1 Docker dep instead of 100+
   npm deps)
This commit is contained in:
TheAuditorTool
2025-09-09 16:48:11 +07:00
parent c7a59e420b
commit c7b1f54ab8
2 changed files with 69 additions and 1 deletions

View File

@@ -363,7 +363,7 @@ def run_full_pipeline(
("index", []),
("detect-frameworks", []),
("deps", ["--check-latest"]),
("docs", ["fetch"]),
("docs", ["fetch", "--deps", "./.pf/raw/deps.json"]),
("docs", ["summarize"]),
("workset", ["--all"]),
("lint", ["--workset"]),