Skip to content

Commit bfd06dc

Browse files
committed
Fix bug when package doesn't list JS files
1 parent 43c9453 commit bfd06dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JsLibraryPackaging.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function Update-BowerLibrary ($name, $version = $null) {
165165
$jsPaths = @($paths | ? { $_ -match '\.js$' })
166166

167167
if ($jsPaths.Count -eq 0) {
168-
$jsPaths = @(ls $paths *.js -Recurse)
168+
$jsPaths = @(ls $paths *.js -Recurse) | % { $_.FullName }
169169
}
170170
if ($jsPaths.Count -gt 1) {
171171
Write-Warning 'Package contains multiple JS files, only the first will be listed in the package'

0 commit comments

Comments
 (0)