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

Function projectFilePath

packages/angular/cli/src/utilities/config.ts:73–81  ·  view source on GitHub ↗
(projectPath?: string)

Source from the content-addressed store, hash-verified

71}
72
73async function projectFilePath(projectPath?: string): Promise<string | null> {
74 // Find the configuration, either where specified, in the Angular CLI project
75 // (if it's in node_modules) or from the current process.
76 return (
77 (projectPath && (await findUp(configNames, projectPath))) ||
78 (await findUp(configNames, process.cwd())) ||
79 (await findUp(configNames, __dirname))
80 );
81}
82
83function globalFilePath(): string | null {
84 const home = os.homedir();

Callers 2

getWorkspaceFunction · 0.85
getWorkspaceRawFunction · 0.85

Calls 1

findUpFunction · 0.90

Tested by

no test coverage detected