We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1367a32 commit 919e81fCopy full SHA for 919e81f
packages/gatsby-telemetry/src/telemetry.ts
@@ -30,6 +30,7 @@ interface IOSInfo {
30
ci: boolean | undefined
31
ciName: string | null
32
docker: boolean | undefined
33
+ isTTY: boolean
34
}
35
36
export interface IAggregateStats {
@@ -336,6 +337,10 @@ export class AnalyticsTracker {
336
337
338
339
340
+ getIsTTY(): boolean {
341
+ return Boolean(process.stdout?.isTTY)
342
+ }
343
+
344
getMachineId(): string {
345
// Cache the result
346
if (this.machineId) {
@@ -381,6 +386,7 @@ export class AnalyticsTracker {
381
386
ci: isCI(),
382
387
ciName: getCIName(),
383
388
docker: isDocker(),
389
+ isTTY: this.getIsTTY(),
384
390
385
391
this.osInfo = osInfo
392
return osInfo
0 commit comments