diff --git a/extension/Extension.proj b/extension/Extension.proj index 5436af60c54..ff8c1048973 100644 --- a/extension/Extension.proj +++ b/extension/Extension.proj @@ -31,13 +31,13 @@ - - - + + @@ -88,12 +88,12 @@ - + - + diff --git a/extension/build.ps1 b/extension/build.ps1 index ccd4be4305b..21069d7ff13 100644 --- a/extension/build.ps1 +++ b/extension/build.ps1 @@ -10,9 +10,10 @@ if (-not (Get-Command node -ErrorAction SilentlyContinue)) { exit 1 } -# Check for Corepack so the build uses the Yarn Classic version that matches extension/yarn.lock. -if (-not (Get-Command corepack -ErrorAction SilentlyContinue)) { - Write-Error "Error: Corepack is not installed. Please install a Node.js version that includes Corepack." +# Check for yarn +if (-not (Get-Command yarn -ErrorAction SilentlyContinue)) { + Write-Error "Error: yarn is not installed. Please install yarn first." + Write-Host "You can install yarn by running: npm install -g yarn" exit 1 } @@ -40,7 +41,7 @@ Set-Location $PSScriptRoot Write-Host "" Write-Host "Running yarn install..." -corepack yarn@1.22.22 install --frozen-lockfile --non-interactive +yarn install --frozen-lockfile --non-interactive if ($LASTEXITCODE -ne 0) { Write-Error "yarn install failed with exit code $LASTEXITCODE" @@ -49,7 +50,7 @@ if ($LASTEXITCODE -ne 0) { Write-Host "" Write-Host "Running yarn compile..." -corepack yarn@1.22.22 compile +yarn compile if ($LASTEXITCODE -ne 0) { Write-Error "yarn compile failed with exit code $LASTEXITCODE" diff --git a/extension/build.sh b/extension/build.sh index 110967f4215..4b7c7e79bac 100755 --- a/extension/build.sh +++ b/extension/build.sh @@ -9,9 +9,10 @@ if ! command -v node &> /dev/null; then exit 1 fi -# Check for Corepack so the build uses the Yarn Classic version that matches extension/yarn.lock. -if ! command -v corepack &> /dev/null; then - echo "Error: Corepack is not installed. Please install a Node.js version that includes Corepack." +# Check for yarn +if ! command -v yarn &> /dev/null; then + echo "Error: yarn is not installed. Please install yarn first." + echo "You can install yarn by running: npm install -g yarn" exit 1 fi @@ -37,11 +38,11 @@ cd "$SCRIPT_DIR" echo "" echo "Running yarn install..." -corepack yarn@1.22.22 install --frozen-lockfile --non-interactive +yarn install --frozen-lockfile --non-interactive echo "" echo "Running yarn compile..." -corepack yarn@1.22.22 compile +yarn compile echo "" echo "Building Aspire CLI..."