Index: utils/pub/validator/name.dart |
diff --git a/utils/pub/validator/name.dart b/utils/pub/validator/name.dart |
index 0386089c9821fa9c226cec98ed0338037159c4ba..6a8cd918ea67ea1409e07ff4d1ce60c6250dea90 100644 |
--- a/utils/pub/validator/name.dart |
+++ b/utils/pub/validator/name.dart |
@@ -8,6 +8,7 @@ import 'dart:async'; |
import 'dart:io'; |
import '../../../pkg/path/lib/path.dart' as path; |
+ |
import '../entrypoint.dart'; |
import '../io.dart'; |
import '../utils.dart'; |
@@ -53,8 +54,8 @@ class NameValidator extends Validator { |
return listDir(libDir, recursive: true); |
}).then((files) { |
return files |
- .map((file) => relativeTo(file, dirname(libDir))) |
- .where((file) => !splitPath(file).contains("src") && |
+ .map((file) => path.relative(file, from: path.dirname(libDir))) |
+ .where((file) => !path.split(file).contains("src") && |
path.extension(file) == '.dart') |
.toList(); |
}); |