Clear configuration cache.
Useful for testing or when configuration files change at runtime.
Find project root by searching upwards for .angular-modernizer.json.
Useful for monorepo scenarios where the config might be in a parent directory.
Starting directory to search from
Maximum depth to search upwards (default: 10)
Project root path or null if not found
Get configuration for a specific tool.
Project root directory
Tool name (e.g., 'scan-architecture', 'transform-code')
Tool-specific configuration or undefined
Load configuration from project root.
Project root directory
Loaded and validated configuration
Load configuration with automatic project root detection.
Searches upwards from startPath to find .angular-modernizer.json.
Starting directory to search from
Maximum depth to search upwards (default: 10)
Loaded configuration
Staticget
Configuration loader for .angular-modernizer.json files.
Features:
Loading is synchronous (JSON only).
layersSourceis passed through as-is: the referenced ESM module (e.g. an arch-validatorconfig.js) is imported asynchronously by the architecture plugin, not by this loader.Example