MCPcopy Index your code
hub / github.com/angular/angular-cli / getAppModulePath

Function getAppModulePath

packages/schematics/angular/utility/ng-ast-utils.ts:73–79  ·  view source on GitHub ↗
(host: Tree, mainPath: string)

Source from the content-addressed store, hash-verified

71}
72
73export function getAppModulePath(host: Tree, mainPath: string): string {
74 const moduleRelativePath = findBootstrapModulePath(host, mainPath);
75 const mainDir = dirname(mainPath);
76 const modulePath = join(mainDir, `${moduleRelativePath}.ts`);
77
78 return modulePath;
79}
80
81export function isStandaloneApp(host: Tree, mainPath: string): boolean {
82 try {

Callers 4

updateAppModuleFunction · 0.90
getRootInsertionRuleFunction · 0.90
resolveNgModuleBasedDataFunction · 0.90

Calls 3

findBootstrapModulePathFunction · 0.85
joinFunction · 0.85
dirnameFunction · 0.50

Tested by

no test coverage detected