MCPcopy Create free account
hub / github.com/SoCreate/angular-playground / getSourceRoot

Function getSourceRoot

projects/schematics/src/utils/project.ts:54–55  ·  view source on GitHub ↗
(sourceRoot: string | undefined)

Source from the content-addressed store, hash-verified

52}
53
54export const getSourceRoot = (sourceRoot: string | undefined) =>
55 sourceRoot === undefined ? 'src' : normalize(sourceRoot);
56
57const getFirstProjectName = (projects: ProjectDefinitionCollection): string | undefined => {
58 let firstProject: string | undefined = undefined;

Callers 7

updateAppInWorkspaceFileFunction · 0.90
createNewFilesFunction · 0.90
updateAppInWorkspaceFileFunction · 0.90
updateFilesFunction · 0.90
addAppToWorkspaceFileFunction · 0.90
createNewFilesFunction · 0.90
getProjectPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected