Skip to content

Commit

Permalink
fix: astro info command fallback for package manager (#7618)
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Jul 10, 2023
1 parent 255dead commit 3669e2d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/orange-mails-marry.md
@@ -0,0 +1,5 @@
---
'astro': patch
---

Add a fallback label if `astro info` command can't determine the package manager used.
3 changes: 2 additions & 1 deletion packages/astro/src/cli/index.ts
Expand Up @@ -112,8 +112,9 @@ async function printInfo({
}
} catch (_e) {}
console.log();
const packageManagerName = packageManager?.name ?? "Couldn't determine.";
printRow('Astro version', `v${ASTRO_VERSION}`);
printRow('Package manager', packageManager?.name);
printRow('Package manager', packageManagerName);
printRow('Platform', platform());
printRow('Architecture', arch());
printRow('Adapter', adapter);
Expand Down

0 comments on commit 3669e2d

Please sign in to comment.