()
| 47 | } |
| 48 | |
| 49 | function getDisabledByEnvironment(): 'ci' | 'env' | undefined { |
| 50 | if (process.env.DO_NOT_TRACK === '1') { |
| 51 | return 'env' |
| 52 | } |
| 53 | |
| 54 | if (process.env.TANSTACK_CLI_TELEMETRY_DISABLED === '1') { |
| 55 | return 'env' |
| 56 | } |
| 57 | |
| 58 | if (process.env.CI) { |
| 59 | return 'ci' |
| 60 | } |
| 61 | |
| 62 | return undefined |
| 63 | } |
| 64 | |
| 65 | export function getTelemetryConfigPath() { |
| 66 | const xdgConfigHome = process.env.XDG_CONFIG_HOME?.trim() |
no outgoing calls
no test coverage detected