Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Commit

Permalink
fix(Compiler): Allow entry_points to take a single string, not alwa…
Browse files Browse the repository at this point in the history
…ys a List.

Closes #510.

Also bump to 0.1.1 so we can publish again.

PiperOrigin-RevId: 161607758
  • Loading branch information
matanlurey committed Jul 12, 2017
1 parent 03e3132 commit 294c51c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions angular_compiler/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.1

- Fixed a bug where flag `entry_points` was only allowed to be a list.

## 0.1.0

- Initial commit of `angular_compiler`.
7 changes: 6 additions & 1 deletion angular_compiler/lib/src/flags.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,12 @@ class CompilerFlags {
debugMode = null;
}
var entryPoints = options[_argEntryPoints];
if (entryPoints != null && entryPoints is! List<String>) {
// Support entry_points: web/main.dart in addition to
// entry_points:
// - web/main.dart
if (entryPoints is String) {
entryPoints = [entryPoints];
} else if (entryPoints != null && entryPoints is! List<String>) {
log('Invalid value "$_argEntryPoints": $entryPoints');
entryPoints = null;
}
Expand Down
2 changes: 1 addition & 1 deletion angular_compiler/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: angular_compiler
author: Dart Team <[email protected]>
homepage: https://github.com/dart-lang/angular
description: Compiler for AngularDart.
version: 0.1.0
version: 0.1.1

environment:
sdk: '>=1.22.0 <2.0.0'
Expand Down

0 comments on commit 294c51c

Please sign in to comment.