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

Function getTelemetryConfigPath

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

Source from the content-addressed store, hash-verified

63}
64
65export function getTelemetryConfigPath() {
66 const xdgConfigHome = process.env.XDG_CONFIG_HOME?.trim()
67 if (xdgConfigHome) {
68 return join(xdgConfigHome, 'tanstack', 'cli.json')
69 }
70
71 const homeDirectory = getHomeDirectory().trim()
72 if (homeDirectory) {
73 return join(homeDirectory, '.config', 'tanstack', 'cli.json')
74 }
75
76 return join(process.cwd(), '.tanstack', 'cli.json')
77}
78
79async function readTelemetryConfigFile(configPath: string) {
80 if (!existsSync(configPath)) {

Callers 1

Calls 1

getHomeDirectoryFunction · 0.85

Tested by

no test coverage detected