Clear module cache
Detect if a source file contains an Angular module
Detect module detection result with confidence
Find module that declares a component
Given a component file path, finds which module declares it.
Component file path
Module boundary or null
Get affected modules for changed files
Given a set of changed files, determines which modules are affected. A module is affected if any of its declarations changed, or if the module file itself changed.
Array of changed file paths
Array of affected modules
Get all modules in the project
Get module dependencies
Returns modules imported by this module.
Module file path
Array of imported module file paths
Get module boundary for a file
Searches for @NgModule decorator and parses metadata.
Returns null if file is not a module.
File path to analyze
Module boundary or null
Angular module detector
Detects Angular module boundaries and lazy-loading patterns. Uses ts-morph to parse
@NgModuledecorators and extract metadata. Lazy-loaded modules are identified viaRouterModule.forChildpatterns.Example