Skip to content

Commit

Permalink
record isTTY
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Oct 23, 2023
1 parent 2c18e2d commit 8a334fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/telemetry/src/system-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export type SystemInfo = {
cpuSpeed: number | null;
memoryInMb: number;
isDocker: boolean;
isTTY: boolean;
isWSL: boolean;
isCI: boolean;
ciName: string | null;
Expand All @@ -53,7 +54,7 @@ export function getSystemInfo(versions: { viteVersion: string; astroVersion: str

const cpus = os.cpus() || [];

meta = {
return {
// Version information
nodeVersion: process.version.replace(/^v?/, ''),
viteVersion: versions.viteVersion,
Expand All @@ -69,10 +70,9 @@ export function getSystemInfo(versions: { viteVersion: string; astroVersion: str
memoryInMb: Math.trunc(os.totalmem() / Math.pow(1024, 2)),
// Environment information
isDocker: isDocker(),
isTTY: process.stdout.isTTY,
isWSL,
isCI,
ciName,
};

return meta;
}

0 comments on commit 8a334fe

Please sign in to comment.