| Index: utils/pub/command_lish.dart
|
| diff --git a/utils/pub/command_lish.dart b/utils/pub/command_lish.dart
|
| index d3a2cb4bf67aca21851b9a193626036be19a6081..434bafd6b671e7134db6ace16c443ef0eb9eab88 100644
|
| --- a/utils/pub/command_lish.dart
|
| +++ b/utils/pub/command_lish.dart
|
| @@ -146,14 +146,14 @@ class LishCommand extends PubCommand {
|
| return listDir(rootDir, recursive: true).then((entries) {
|
| return entries
|
| .where(fileExists) // Skip directories.
|
| - .map((entry) => relativeTo(entry, rootDir));
|
| + .map((entry) => path.relative(entry, from: rootDir));
|
| });
|
| }).then((files) => files.where(_shouldPublish).toList());
|
| }
|
|
|
| /// Returns `true` if [file] should be published.
|
| bool _shouldPublish(String file) {
|
| - if (_BLACKLISTED_FILES.contains(basename(file))) return false;
|
| + if (_BLACKLISTED_FILES.contains(path.basename(file))) return false;
|
| return !splitPath(file).any(_BLACKLISTED_DIRS.contains);
|
| }
|
|
|
|
|