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

Function xdgConfigHomeOld

packages/angular/cli/src/utilities/config.ts:64–71  ·  view source on GitHub ↗
(home: string)

Source from the content-addressed store, hash-verified

62}
63
64function xdgConfigHomeOld(home: string): string {
65 // Check the configuration files in the old location that should be:
66 // - $XDG_CONFIG_HOME/.angular-config.json (if XDG_CONFIG_HOME is set)
67 // - $HOME/.config/angular/.angular-config.json (otherwise)
68 const p = process.env['XDG_CONFIG_HOME'] || path.join(home, '.config', 'angular');
69
70 return path.join(p, '.angular-config.json');
71}
72
73async function projectFilePath(projectPath?: string): Promise<string | null> {
74 // Find the configuration, either where specified, in the Angular CLI project

Callers 1

globalFilePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected