fix: astro info
command fallback for package manager (#7618)
This commit is contained in:
parent
255dead86f
commit
3669e2d276
2 changed files with 7 additions and 1 deletions
5
.changeset/orange-mails-marry.md
Normal file
5
.changeset/orange-mails-marry.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Add a fallback label if `astro info` command can't determine the package manager used.
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue