We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f108ba7 commit 0b4e032Copy full SHA for 0b4e032
build.ps1
@@ -45,12 +45,17 @@ function needsVSCode () {
45
46
function needsNodeJS () {
47
try {
48
- $nodeJSVersion = (node -v)
49
-
+ $nodeJSVersion = node -v
50
} catch {
51
return $true
52
}
53
- return ($nodeJSVersion.Substring(1,1) -lt 6)
+
+ if ($nodeJSVersion -notmatch 'v(\d+\.\d+\.\d+)') {
54
+ return $true
55
+ }
56
57
+ $nodeVer = [System.Version]$matches[1]
58
+ return ($nodeVer.Major -lt 6)
59
60
61
function needsPowerShellGet () {
0 commit comments