Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old depreciated Global Expo CLI checks in Doctor command changed #2618

Merged
merged 10 commits into from
Feb 21, 2024
18 changes: 17 additions & 1 deletion src/commands/doctor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,24 @@ module.exports = {
expoVersion = "-"
expoWorkflow = "not installed"
}

const expoInfo = [column1("expo"), column2(expoVersion), column3(expoWorkflow)]

let depExpoCliInfo = null

try {
const expoCliVersionOutput = await run("expo-cli --version", { trim: true })
if (expoCliVersionOutput) {
const expoCliVersion = expoCliVersionOutput.replace("v", "")
depExpoCliInfo = [
column1("expo global cli"),
column2(expoCliVersion),
column3(colors.yellow("Deprecated: Found 'expo-cli' installed. Please remove it.")),
]
}
} catch (_) {
// No action needed if 'expo-cli' is not installed or there's an error checking its version.
}

info("")
info(colors.cyan(`JavaScript${haveGlobalPackages ? " (and globally-installed packages)" : ""}`))
table([
Expand All @@ -110,6 +125,7 @@ module.exports = {
...pnpmPackages,
bunInfo,
expoInfo,
...(depExpoCliInfo ? [depExpoCliInfo] : []),
frankcalise marked this conversation as resolved.
Show resolved Hide resolved
])

// -=-=-=- ignite -=-=-=-
Expand Down