File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change
1
+ - Always pass the argument ` --fail-on-severe ` to the ` build ` command.
2
+
1
3
## 0.2.1
2
4
3
5
- Exit with an error if unsupported arguments are passed to ` build ` command.
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,16 @@ 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, { List < String > extraArgs} ) async {
72
72
await checkPubspecLock (
73
73
requireBuildWebCompilers:
74
74
argResults[_requireBuildWebCompilers] as bool );
75
75
76
76
var buildRunnerScript = await _buildRunnerScript ();
77
77
78
- final arguments = [command]..addAll (getArgs ());
78
+ final arguments = [command]
79
+ ..addAll (extraArgs ?? const [])
80
+ ..addAll (getArgs ());
79
81
80
82
var exitCode = 0 ;
81
83
You can’t perform that action at this time.
0 commit comments