Fixed all path resolution logic in dependency-resolver.js to handle the new
directory structure where bmm is directly under src/ instead of src/modules/.
**Bugs Fixed:**
1. Line 341: Strip leading slash after removing {project-root} prefix
- `{project-root}/bmad/` became `/bmad/` which failed `startsWith('bmad/')` check
2. Lines 358, 378, 385: Use bmm/ directly instead of modules/bmm/ for explicit deps
- Updated both direct paths and glob patterns
3. Lines 537, 549, 565: Update resolveCommandToPath for @task/@agent/@bmad refs
- Task search now checks src/bmm/tasks/ not src/modules/bmm/tasks/
- Agent search now checks src/bmm/agents/ not src/modules/bmm/agents/
- Direct bmad/ paths now resolve to src/bmm/ not src/modules/bmm/
**Test Results:**
- Before: 350/352 passing (2 failing)
- After: 352/352 passing (100% ✅)
Tests fixed:
- "should resolve bmad/bmm/tasks/task.md (module path)"
- "should resolve bmad-path for module files"
|
||
|---|---|---|
| .. | ||
| cli | ||
| docs | ||
| flattener | ||
| lib | ||
| maintainer | ||
| schema | ||
| bmad-npx-wrapper.js | ||
| build-docs.js | ||
| fix-doc-links.js | ||
| format-workflow-md.js | ||
| migrate-custom-module-paths.js | ||
| platform-codes.yaml | ||
| validate-agent-schema.js | ||
| validate-doc-links.js | ||
| validate-svg-changes.sh | ||