diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 00c3532..35fa705 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -163,6 +163,7 @@ build:windows: - windows before_script: - mkdir -Force "$CI_PROJECT_DIR/tmp" + - Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1 script: - .\scripts\choco-install.ps1 - refreshenv diff --git a/package-lock.json b/package-lock.json index 2f024dc..160a84e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@matrixai/events", - "version": "3.2.0", + "version": "3.2.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@matrixai/events", - "version": "3.2.0", + "version": "3.2.3", "license": "Apache-2.0", "devDependencies": { "@swc/core": "^1.3.76", @@ -29,9 +29,6 @@ "tsconfig-paths": "^3.9.0", "typedoc": "^0.24.8", "typescript": "^5.1.6" - }, - "engines": { - "node": ">=19.0.0" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index 0393cc2..d8dfde4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@matrixai/events", - "version": "3.2.0", + "version": "3.2.3", "author": "Matrix AI", "contributors": [ { @@ -47,8 +47,5 @@ "tsconfig-paths": "^3.9.0", "typedoc": "^0.24.8", "typescript": "^5.1.6" - }, - "engines": { - "node": ">=19.0.0" } } diff --git a/scripts/choco-install.ps1 b/scripts/choco-install.ps1 index afe9ba4..68a7cbe 100755 --- a/scripts/choco-install.ps1 +++ b/scripts/choco-install.ps1 @@ -22,7 +22,7 @@ New-Item -Path "${PSScriptRoot}\..\tmp\chocolatey" -ItemType "directory" -ErrorA choco source add --name="cache" --source="${PSScriptRoot}\..\tmp\chocolatey" --priority=1 # Install nodejs v20.5.1 (will use cache if exists) -$nodejs = "nodejs.install" +$nodejs = "nodejs" choco install "$nodejs" --version="20.5.1" --require-checksums -y # Internalise nodejs to cache if doesn't exist if ( -not (Test-Path -Path "${PSScriptRoot}\..\tmp\chocolatey\$nodejs\$nodejs.20.5.1.nupkg" -PathType Leaf) ) {