MCPcopy
hub / github.com/angular/angular-cli / createDefaultPath

Function createDefaultPath

packages/schematics/angular/utility/workspace.ts:126–134  ·  view source on GitHub ↗
(tree: Tree, projectName: string)

Source from the content-addressed store, hash-verified

124}
125
126export async function createDefaultPath(tree: Tree, projectName: string): Promise<string> {
127 const workspace = await getWorkspace(tree);
128 const project = workspace.projects.get(projectName);
129 if (!project) {
130 throw new Error(`Project "${projectName}" does not exist.`);
131 }
132
133 return buildDefaultPath(project);
134}
135
136export function* allWorkspaceTargets(
137 workspace: workspaces.WorkspaceDefinition,

Callers 3

index.tsFile · 0.90
index.tsFile · 0.90
generateFromFilesFunction · 0.90

Calls 3

getWorkspaceFunction · 0.70
buildDefaultPathFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected