From 60c1073976e70229ddf38651a5f895789fb432d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=2E=20Mat=C3=ADas=20Quezada?= Date: Sun, 13 Oct 2024 22:00:40 +0200 Subject: [PATCH] fix: "Upgrade Bun" message prompts the user to install their current version --- packages/brisa/cli.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/brisa/cli.ts b/packages/brisa/cli.ts index 054a2c6fe..a47862adc 100755 --- a/packages/brisa/cli.ts +++ b/packages/brisa/cli.ts @@ -64,8 +64,8 @@ async function main({ if (!Bun.semver.satisfies(currentBunVersion, '>=' + SUPPORTED_BUN_VERSION)) { const isWindows = process.platform === 'win32'; const command = isWindows - ? `iex "& {$(irm https://bun.sh/install.ps1)} -Version ${currentBunVersion}"` - : `curl -fsSL https://bun.sh/install | bash -s "bun-v${currentBunVersion}"`; + ? `iex "& {$(irm https://bun.sh/install.ps1)} -Version ${SUPPORTED_BUN_VERSION}"` + : `curl -fsSL https://bun.sh/install | bash -s "bun-v${SUPPORTED_BUN_VERSION}"`; console.log( yellowLog(