File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import 'dart:io';
7
7
import 'package:cli_pkg/cli_pkg.dart' as pkg;
8
8
import 'package:collection/collection.dart' ;
9
9
import 'package:grinder/grinder.dart' ;
10
- import 'package:path/path.dart' as p;
11
10
import 'package:pub_api_client/pub_api_client.dart' ;
12
11
import 'package:pubspec_parse/pubspec_parse.dart' ;
13
12
@@ -36,8 +35,10 @@ Future<void> doubleCheckBeforeRelease() async {
36
35
"." ,
37
36
...Directory ("pkg" ).listSync ().map ((entry) => entry.path)
38
37
]) {
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);
41
42
42
43
var package = await client.packageInfo (pubspec.name);
43
44
if (pubspec.version == package.latestPubspec.version) {
You can’t perform that action at this time.
0 commit comments