Skip to content

Commit 4571a3a

Browse files
committed
Set --fail-on-severe always for webdev build.
Closes #44
1 parent 41e35d0 commit 4571a3a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

webdev/lib/src/command/build_command.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ class BuildCommand extends CommandBase {
2626
'"${argResults.rest.join(' ')}".',
2727
argParser.usage);
2828
}
29-
return runCore('build');
29+
return runCore('build', extraArgs: ['--fail-on-severe']);
3030
}
3131
}

webdev/lib/src/command/command_base.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,15 @@ abstract class CommandBase extends Command<int> {
6868
return arguments;
6969
}
7070

71-
Future<int> runCore(String command) async {
71+
Future<int> runCore(String command,
72+
{List<String> extraArgs = const []}) async {
7273
await checkPubspecLock(
7374
requireBuildWebCompilers:
7475
argResults[_requireBuildWebCompilers] as bool);
7576

7677
var buildRunnerScript = await _buildRunnerScript();
7778

78-
final arguments = [command]..addAll(getArgs());
79+
final arguments = [command]..addAll(extraArgs)..addAll(getArgs());
7980

8081
var exitCode = 0;
8182

0 commit comments

Comments
 (0)