| 62 | } |
| 63 | |
| 64 | function 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 | |
| 73 | async function projectFilePath(projectPath?: string): Promise<string | null> { |
| 74 | // Find the configuration, either where specified, in the Angular CLI project |