| 54 | const defaultGlobalFilePath = path.join(os.homedir(), globalFileName); |
| 55 | |
| 56 | function 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 | |
| 64 | function xdgConfigHomeOld(home: string): string { |
| 65 | // Check the configuration files in the old location that should be: |