From 484bcd8928dde915e1e0b4432fcd0f25cd6b2bc5 Mon Sep 17 00:00:00 2001 From: Vijay Aravamudhan Date: Mon, 1 Apr 2024 14:42:14 +0000 Subject: Update dev scripts (#126) * Upgrade pnpm to 8.15.5 * Upgrade node to latest LTS (20.12.0) and some other modules --- scripts/build-windows.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts/build-windows.ps1') diff --git a/scripts/build-windows.ps1 b/scripts/build-windows.ps1 index c22e033..1bed200 100644 --- a/scripts/build-windows.ps1 +++ b/scripts/build-windows.ps1 @@ -92,6 +92,14 @@ if ($env:CLEAN -eq "true") # ----------------------------------------------------------------------------- # Ensure that the system dependencies are at the correct version - fail if not +# Check node version +EXPECTED_NODE_VERSION=(Get-Content .nvmrc) +ACTUAL_NODE_VERSION=(node -v) +if ([System.Version]$ACTUAL_NODE_VERSION -ne [System.Version]$EXPECTED_NODE_VERSION) { + fail_with_docs "You are not running the expected version of node! + expected: [v$EXPECTED_NODE_VERSION] + actual : [$ACTUAL_NODE_VERSION]" +} # Check python version $EXPECTED_PYTHON_VERSION = (Get-Content package.json | ConvertFrom-Json).engines.python $ACTUAL_PYTHON_VERSION = (python --version).trim("Python ") -- cgit v1.2.3-70-g09d2