File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,6 @@ class BuildCommand extends CommandBase {
26
26
'"${argResults .rest .join (' ' )}".' ,
27
27
argParser.usage);
28
28
}
29
- return runCore ('build' );
29
+ return runCore ('build' , extraArgs : [ '--fail-on-severe' ] );
30
30
}
31
31
}
Original file line number Diff line number Diff line change @@ -68,14 +68,15 @@ abstract class CommandBase extends Command<int> {
68
68
return arguments;
69
69
}
70
70
71
- Future <int > runCore (String command) async {
71
+ Future <int > runCore (String command,
72
+ {List <String > extraArgs = const []}) async {
72
73
await checkPubspecLock (
73
74
requireBuildWebCompilers:
74
75
argResults[_requireBuildWebCompilers] as bool );
75
76
76
77
var buildRunnerScript = await _buildRunnerScript ();
77
78
78
- final arguments = [command]..addAll (getArgs ());
79
+ final arguments = [command]..addAll (extraArgs).. addAll ( getArgs ());
79
80
80
81
var exitCode = 0 ;
81
82
You can’t perform that action at this time.
0 commit comments