Skip to content

Commit

Permalink
fix: scripts.*.exec.failFast option in melos.yaml (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-sandri authored Aug 15, 2022
1 parent dfc4f66 commit 16fe691
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/melos/lib/src/scripts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,10 @@ class Script {
if (exec.concurrency != null) {
parts.addAll(['--concurrency', '${exec.concurrency}']);
}
if (exec.failFast != null) {
parts.addAll(['--fail-fast', '${exec.failFast}']);

// --fail-fast is a flag and as such does not accept any value
if (exec.failFast ?? false) {
parts.add('--fail-fast');
}

parts.addAll(['--', _quoteScript(run)]);
Expand Down

0 comments on commit 16fe691

Please sign in to comment.