Architecture: How to organize the growing number of module paths in tsconf...
Documentation for Sessions
🏗️ Architecture: How to organize the growing number of module paths in tsconf...
Date: 2026-01-16
Time: 22:05:40 UTC
Session: editor2-49.3
Agent: architecture
Confidence: 90%
Status: ✅ Documented
📋 Decision Context
Question:
How to organize the growing number of module paths in tsconfig.base.json?
Task: Organize tsconfig.base.json module paths into separate files by category
🎯 Decision Made
Chosen:
Split paths into category-based JSON files with merge script
Options Considered:
- Keep all paths in single tsconfig.base.json
- Use TypeScript project references
- Split paths into category-based JSON files with merge script
- Use NX path management
💭 Reasoning
Created a modular path organization system where module paths are stored in separate JSON files by category (restaurant, fitness, sports, retail, learning, culinary, dashboard, healthcare) under config/tsconfig-paths/modules/. A merge script combines these into tsconfig.base.json while preserving library paths. This approach: 1) Keeps tsconfig.base.json as the single source of truth for TypeScript, 2) Allows easy organization and maintenance of 147+ module paths, 3) Enables the vibe-universe platform builder to add paths to specific category files, 4) Provides validation and dry-run capabilities, 5) Maintains compatibility with existing NX tooling.
📁 Files Involved
tsconfig.base.jsonconfig/tsconfig-paths/modules/restaurant.paths.jsonconfig/tsconfig-paths/modules/fitness.paths.jsonconfig/tsconfig-paths/modules/sports.paths.jsonconfig/tsconfig-paths/modules/retail.paths.jsonconfig/tsconfig-paths/modules/learning.paths.jsonconfig/tsconfig-paths/modules/culinary.paths.jsonconfig/tsconfig-paths/modules/dashboard.paths.jsonconfig/tsconfig-paths/modules/healthcare.paths.jsontools/scripts/maintenance/merge-tsconfig-paths.jsconfig/tsconfig-paths/README.md
🔗 Related
- Decision ID:
dev_1768601139943_b2qtf4s - Session: 49
- Workspace: editor2
Auto-generated by MCP Smart Consolidation