File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -48,13 +48,14 @@ function New-BowerLibrary ($name) {
48
48
$version = $split [1 ]
49
49
}
50
50
51
- $packageInfo = (Get-Content .\_bower_components\$name \.bower.json) -join " `n " | ConvertFrom-Json
51
+ $folderName = (bower info $name name -- json) | ConvertFrom-Json
52
+ $packageInfo = (Get-Content .\_bower_components\$folderName \.bower.json) -join " `n " | ConvertFrom-Json
52
53
if (@ (Get-Member - InputObject $packageInfo | ? { $_.Name -eq ' version' }).Count -gt 0 ) {
53
54
$version = $packageInfo.version
54
55
}
55
56
56
57
$allPaths = (bower list -- paths -- json) -join " `n " | ConvertFrom-Json
57
- $paths = @ ($allPaths .$name )
58
+ $paths = @ ($allPaths .$folderName )
58
59
$jsPaths = @ ($paths | ? { $_ -match ' \.js$' })
59
60
60
61
if ($jsPaths.Count -eq 0 ) {
You can’t perform that action at this time.
0 commit comments