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

Function readTelemetryConfigFile

packages/cli/src/telemetry-config.ts:79–95  ·  view source on GitHub ↗
(configPath: string)

Source from the content-addressed store, hash-verified

77}
78
79async function readTelemetryConfigFile(configPath: string) {
80 if (!existsSync(configPath)) {
81 return undefined
82 }
83
84 try {
85 const raw = await readFile(configPath, 'utf8')
86 const parsed = JSON.parse(raw)
87 if (!isTelemetryConfig(parsed)) {
88 return undefined
89 }
90
91 return parsed
92 } catch {
93 return undefined
94 }
95}
96
97async function writeTelemetryConfigFile(
98 configPath: string,

Callers 1

Calls 1

isTelemetryConfigFunction · 0.85

Tested by

no test coverage detected