Don't always build everything with serve (#1028)
diff --git a/webdev/CHANGELOG.md b/webdev/CHANGELOG.md
index 1551cc1..b573337 100644
--- a/webdev/CHANGELOG.md
+++ b/webdev/CHANGELOG.md
@@ -1,7 +1,7 @@
-## 2.5.8-dev
+## 2.5.8
- Depend on the latest `package:dwds`.
-
+- Fix an issue where all directories were built when using the `serve` command.
## 2.5.7
diff --git a/webdev/lib/src/serve/dev_workflow.dart b/webdev/lib/src/serve/dev_workflow.dart
index aa2c7a4..8f02027 100644
--- a/webdev/lib/src/serve/dev_workflow.dart
+++ b/webdev/lib/src/serve/dev_workflow.dart
@@ -134,14 +134,11 @@
}
// Empty string indicates we should build everything, register a corresponding
// target.
- if (configuration.outputInput == '') {
- OutputLocation outputLocation;
- if (configuration.outputPath != null) {
- outputLocation = OutputLocation((b) => b
- ..output = configuration.outputPath
- ..useSymlinks = true
- ..hoist = false);
- }
+ if (configuration.outputInput == '' && configuration.outputPath != null) {
+ var outputLocation = OutputLocation((b) => b
+ ..output = configuration.outputPath
+ ..useSymlinks = true
+ ..hoist = false);
client.registerBuildTarget(DefaultBuildTarget((b) => b
..target = ''
..outputLocation = outputLocation?.toBuilder()));
diff --git a/webdev/lib/src/version.dart b/webdev/lib/src/version.dart
index ac4849c..d594540 100644
--- a/webdev/lib/src/version.dart
+++ b/webdev/lib/src/version.dart
@@ -1,2 +1,2 @@
// Generated code. Do not modify.
-const packageVersion = '2.5.8-dev';
+const packageVersion = '2.5.8';
diff --git a/webdev/pubspec.yaml b/webdev/pubspec.yaml
index dd50d20..4e45ca8 100644
--- a/webdev/pubspec.yaml
+++ b/webdev/pubspec.yaml
@@ -1,6 +1,6 @@
name: webdev
# Every time this changes you need to run `pub run build_runner build`.
-version: 2.5.8-dev
+version: 2.5.8
homepage: https://github.com/dart-lang/webdev
description: >-
A CLI for Dart web development. Provides an easy and consistent set of
@@ -45,7 +45,3 @@
executables:
webdev:
-
-dependency_overrides:
- dwds:
- path: ../dwds