(options: ModuleOptions, modulePath: string)
| 41 | import { Schema as ModuleOptions, RoutingScope } from './schema'; |
| 42 | |
| 43 | function buildRelativeModulePath(options: ModuleOptions, modulePath: string): string { |
| 44 | const importModulePath = join( |
| 45 | options.path ?? '', |
| 46 | options.flat ? '' : strings.dasherize(options.name), |
| 47 | strings.dasherize(options.name) + options.typeSeparator + 'module', |
| 48 | ); |
| 49 | |
| 50 | return buildRelativePath(modulePath, importModulePath); |
| 51 | } |
| 52 | |
| 53 | function addImportToNgModule(options: ModuleOptions): Rule { |
| 54 | return (host: Tree) => { |
no test coverage detected