File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import 'dart:io';
77import 'package:cli_pkg/cli_pkg.dart' as pkg;
88import 'package:collection/collection.dart' ;
99import 'package:grinder/grinder.dart' ;
10- import 'package:path/path.dart' as p;
1110import 'package:pub_api_client/pub_api_client.dart' ;
1211import 'package:pubspec_parse/pubspec_parse.dart' ;
1312
@@ -36,8 +35,10 @@ Future<void> doubleCheckBeforeRelease() async {
3635 "." ,
3736 ...Directory ("pkg" ).listSync ().map ((entry) => entry.path)
3837 ]) {
39- var pubspec = Pubspec .parse (File ("$dir /pubspec.yaml" ).readAsStringSync (),
40- sourceUrl: p.toUri ("$dir /pubspec.yaml" ));
38+ var pubspecFile = File ("$dir /pubspec.yaml" );
39+ if (! pubspecFile.existsSync ()) continue ;
40+ var pubspec = Pubspec .parse (pubspecFile.readAsStringSync (),
41+ sourceUrl: pubspecFile.uri);
4142
4243 var package = await client.packageInfo (pubspec.name);
4344 if (pubspec.version == package.latestPubspec.version) {
You can’t perform that action at this time.
0 commit comments