Fix #3790: Bower breaks with console exception when run on package directory
Comments
Comments
Merge remote-tracking branch 'upstream/master' into bower-fixes
- Added PackageServiceProperties.getMatchingFolderWithPackages(), to work in tandem with .isPackageResource.
- Used it on the UI side (spark.dart) to extract the folder with packages for a resource for which isPackageResource() returned true.
- With that, the UI no longer has any logic about what resource the get/update packages action is aplicable to, and what the matching folder with package is - all of that is concentrated in PackageServiceProperties(), so it become self-consistent.
- With that, now always pass the top-level folder with packaged to getOrUpgradePackages() in both Pub and Bower.
- As a result, getOrUpgradePackages in both became less convoluted and Pub lost _getPackageDir().
Merge pull request #3806 from ussuri/bower-fixes

Fix: Bower breaks with console exception when run on package directory