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) {
4848 $version = $split [1 ]
4949 }
5050
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
5253 if (@ (Get-Member - InputObject $packageInfo | ? { $_.Name -eq ' version' }).Count -gt 0 ) {
5354 $version = $packageInfo.version
5455 }
5556
5657 $allPaths = (bower list -- paths -- json) -join " `n " | ConvertFrom-Json
57- $paths = @ ($allPaths .$name )
58+ $paths = @ ($allPaths .$folderName )
5859 $jsPaths = @ ($paths | ? { $_ -match ' \.js$' })
5960
6061 if ($jsPaths.Count -eq 0 ) {
You can’t perform that action at this time.
0 commit comments