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

Function xdgConfigHome

packages/angular/cli/src/utilities/config.ts:56–62  ·  view source on GitHub ↗
(home: string, configFile?: string)

Source from the content-addressed store, hash-verified

54const defaultGlobalFilePath = path.join(os.homedir(), globalFileName);
55
56function xdgConfigHome(home: string, configFile?: string): string {
57 // https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
58 const xdgConfigHome = process.env['XDG_CONFIG_HOME'] || path.join(home, '.config');
59 const xdgAngularHome = path.join(xdgConfigHome, 'angular');
60
61 return configFile ? path.join(xdgAngularHome, configFile) : xdgAngularHome;
62}
63
64function xdgConfigHomeOld(home: string): string {
65 // Check the configuration files in the old location that should be:

Callers 1

globalFilePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected