Skip to content

Commit 46e7eee

Browse files
committed
Fix issue where there was an error with beta releases
1 parent 904d573 commit 46e7eee

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

JsLibraryPackaging.psm1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,14 @@ function Update-BowerLibraries () {
117117
$library = $libraries.$($libraryProperty.Name)
118118
$libraryName = $library.endpoint.source
119119
$libraryVersion = $library.pkgMeta.version
120-
if ($libraryVersion -ne $library.update.latest) {
120+
$latestVersion = $library.update.latest
121+
if ($latestVersion.Contains('-')) {
122+
#if latest is beta
123+
$latestVersion = $library.update.target
124+
}
125+
126+
if ($libraryVersion -ne $latestVersion) {
127+
Write-Host "Updating $libraryName from $libraryVersion to $($library.update.latest)"
121128
Update-BowerLibrary $libraryName
122129
}
123130
}

0 commit comments

Comments
 (0)