summaryrefslogtreecommitdiff
path: root/packages/telemetry/src/system-info.ts
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2023-10-23 15:35:23 -0700
committerGravatar GitHub <noreply@github.com> 2023-10-23 17:35:23 -0500
commit341ef6578528a00f89bf6da5e4243b0fde272816 (patch)
tree29a8c23bbdfef060d6d1e72cbf354b148d5988c8 /packages/telemetry/src/system-info.ts
parent99b683aec11bb5409e5c64c89f47cb437892b5ee (diff)
downloadastro-341ef6578528a00f89bf6da5e4243b0fde272816.tar.gz
astro-341ef6578528a00f89bf6da5e4243b0fde272816.tar.zst
astro-341ef6578528a00f89bf6da5e4243b0fde272816.zip
telemetry: record isTTY (#8900)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Diffstat (limited to '')
-rw-r--r--packages/telemetry/src/system-info.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/telemetry/src/system-info.ts b/packages/telemetry/src/system-info.ts
index 08375de7b..0953736d7 100644
--- a/packages/telemetry/src/system-info.ts
+++ b/packages/telemetry/src/system-info.ts
@@ -39,6 +39,7 @@ export type SystemInfo = {
cpuSpeed: number | null;
memoryInMb: number;
isDocker: boolean;
+ isTTY: boolean;
isWSL: boolean;
isCI: boolean;
ciName: string | null;
@@ -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,
@@ -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;
}