Skip to content

Commit

Permalink
Use pkg:build_version to keep the pkg version in sync
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Oct 8, 2018
1 parent a836916 commit 95585a9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion lib/markdown.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
/// Parses text in a Markdown-like format and renders to HTML.
library markdown;

import 'src/version.dart';

export 'src/ast.dart';
export 'src/block_parser.dart';
export 'src/document.dart';
export 'src/extension_set.dart';
export 'src/html_renderer.dart';
export 'src/inline_parser.dart';
export 'src/version.dart';

const version = packageVersion;
4 changes: 2 additions & 2 deletions lib/src/version.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:

dev_dependencies:
build_runner: ^1.0.0
build_version: ^2.0.0
build_web_compilers: ^0.4.0
collection: ^1.2.0
expected_output: ^1.2.1
Expand Down
4 changes: 2 additions & 2 deletions test/version_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void main() {
loadYaml(new File(pubspecFile).readAsStringSync()) as YamlMap;

expect(binVersion, pubspecContent['version'],
reason: 'The version reported by bin/markdown.dart '
'should match the version in pubspec.');
reason: 'The version reported by bin/markdown.dart should match the '
'version in pubspec. Run `pub run build_runner build` to update.');
});
}

0 comments on commit 95585a9

Please sign in to comment.