From a0b53a42dfe89e328a45f9ca0a78e2d3f7f7190f Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Fri, 30 Jun 2023 15:44:58 +0100 Subject: [PATCH] add platform and architecture --- packages/astro/src/cli/index.ts | 4 +++- pnpm-lock.yaml | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/astro/src/cli/index.ts b/packages/astro/src/cli/index.ts index f9921858c354..4d82207ed06e 100644 --- a/packages/astro/src/cli/index.ts +++ b/packages/astro/src/cli/index.ts @@ -19,7 +19,7 @@ import { formatConfigErrorMessage, formatErrorMessage, printHelp } from '../core import * as event from '../events/index.js'; import { eventConfigError, eventError, telemetry } from '../events/index.js'; import { openInBrowser } from './open.js'; -import type { AstroIntegration } from '../@types/astro'; +import { arch, platform } from 'node:os'; type Arguments = yargs.Arguments; type CLICommand = @@ -114,6 +114,8 @@ async function printInfo({ console.log(); printRow('Astro version', `v${ASTRO_VERSION}`); printRow('Package manager', packageManager.name); + printRow('Platform', platform()); + printRow('Architecture', arch()); printRow('Adapter', adapter); let integrationsString = "None or couldn't determine."; if (integrations.length > 0) { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ee0f3c0911e2..41d1b4b5d7c8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -643,6 +643,9 @@ importers: vitefu: specifier: ^0.2.4 version: 0.2.4(vite@4.3.9) + which-pm: + specifier: ^2.0.0 + version: 2.0.0 yargs-parser: specifier: ^21.1.1 version: 21.1.1