1. Import `lib/package_mgmt/bower_properties.dart` and `lib/package_mgmt/pub_properties.dart`.
2. Replace `name == 'bower_components'` with `name == pubProperties.packagesDirName || name == bowerProperties.packagesDirName`.