| Index: pkg/polymer/lib/src/build/runner.dart
|
| diff --git a/pkg/polymer/lib/src/build/runner.dart b/pkg/polymer/lib/src/build/runner.dart
|
| index 628629f7e45fde93a12087b4c8a69322cc0c6d63..e486fdf30a79f3d9eab4862c9e4133636a94b2bc 100644
|
| --- a/pkg/polymer/lib/src/build/runner.dart
|
| +++ b/pkg/polymer/lib/src/build/runner.dart
|
| @@ -65,8 +65,9 @@ Future<AssetSet> runBarback(BarbackOptions options) {
|
| }
|
|
|
| /** Extract the current package from the pubspec.yaml file. */
|
| -String readCurrentPackageFromPubspec() {
|
| - var pubspec = new File('pubspec.yaml');
|
| +String readCurrentPackageFromPubspec([String dir]) {
|
| + var pubspec = new File(
|
| + dir == null ? 'pubspec.yaml' : path.join(dir, 'pubspec.yaml'));
|
| if (!pubspec.existsSync()) {
|
| print('error: pubspec.yaml file not found, please run this script from '
|
| 'your package root directory.');
|
|
|