Skip to content

Commit

Permalink
Fix windows build script
Browse files Browse the repository at this point in the history
  • Loading branch information
danny8376 authored and vraravam committed Oct 4, 2024
1 parent 797f398 commit 7c811df
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/build-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ if((-not $NPM_CONFIG_MSVS_VERSION) -or -not ($EXPECTED_MSVST_VERSION -contains $
# Ensure that the system dependencies are at the correct version - recover if not
# Check pnpm version
$EXPECTED_PNPM_VERSION = (Get-Content package.json | ConvertFrom-Json).engines.pnpm
$ACTUAL_PNPM_VERSION = pnpm --version -ErrorAction SilentlyContinue # in case the pnpm executable itself is not present
$ACTUAL_PNPM_VERSION = pnpm --version 2>$null # in case the pnpm executable itself is not present
if ($ACTUAL_PNPM_VERSION -ne $EXPECTED_PNPM_VERSION) {
npm i -gf pnpm@$EXPECTED_PNPM_VERSION
}
Expand All @@ -142,13 +142,16 @@ if ($ACTUAL_PNPM_VERSION -ne $EXPECTED_RECIPES_PNPM_VERSION) {
fail_with_docs "The expected versions of pnpm are not the same in the main repo and in the recipes submodule, please sync them.
expected in recipes : [$EXPECTED_RECIPES_PNPM_VERSION]
expected in main repo: [$EXPECTED_PNPM_VERSION]
actual : [$EXPECTED_PNPM_VERSION]"
actual : [$ACTUAL_PNPM_VERSION]"
}

# -----------------------------------------------------------------------------
Write-Host "*************** Building recipes ***************"
Push-Location recipes
pnpm i && pnpm lint && pnpm reformat-files && pnpm package
pnpm i
pnpm lint
pnpm reformat-files
pnpm package
Pop-Location

# -----------------------------------------------------------------------------
Expand Down

0 comments on commit 7c811df

Please sign in to comment.