MCPcopy Create free account
hub / github.com/TanStack/cli / getDisabledByEnvironment

Function getDisabledByEnvironment

packages/cli/src/telemetry-config.ts:49–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49function 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
65export function getTelemetryConfigPath() {
66 const xdgConfigHome = process.env.XDG_CONFIG_HOME?.trim()

Callers 1

getTelemetryStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected