Skip to content

Commit db996dd

Browse files
authored
Make example's README.md priority over any dart file in the examples directory. (#1430)
1 parent 746022e commit db996dd

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.22.18-dev
2+
3+
- Make example's `README.md` priority over any dart file in the examples directory.
4+
15
## 0.22.17
26

37
- Fixed lower dependency constraint for `cli_util`.

lib/src/maintenance.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import 'package:json_annotation/json_annotation.dart';
77
/// Returns the candidates in priority order to display under the 'Example' tab.
88
List<String> exampleFileCandidates(String package) {
99
return <String>[
10+
'example/README.md',
1011
'example/example.md',
1112
'example/lib/main.dart',
1213
'example/bin/main.dart',
@@ -20,7 +21,6 @@ List<String> exampleFileCandidates(String package) {
2021
'example/lib/example.dart',
2122
'example/bin/example.dart',
2223
'example/example.dart',
23-
'example/README.md',
2424
];
2525
}
2626

lib/src/version.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: pana
22
description: PAckage aNAlyzer - produce a report summarizing the health and quality of a Dart package.
3-
version: 0.22.17
3+
version: 0.22.18-dev
44
repository: https://github.com/dart-lang/pana
55
topics:
66
- tool

0 commit comments

Comments
 (0)