diff options
author | dizzy <diosmosis@users.noreply.github.com> | 2022-04-17 17:22:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-17 17:22:34 +0300 |
commit | f1d2c4fbbe9124a3c2d7dcc20250f836c114af30 (patch) | |
tree | 9e85c997b25cffb91064f775d7de5e2958aadad0 /plugins/CoreVue | |
parent | 605cd501ebbb6e96936b918b89fd847ab2e9c1d7 (diff) |
fix retry loop in vue:build command (#19112)
Diffstat (limited to 'plugins/CoreVue')
-rw-r--r-- | plugins/CoreVue/Commands/Build.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/CoreVue/Commands/Build.php b/plugins/CoreVue/Commands/Build.php index 93c24af457..6e030b9684 100644 --- a/plugins/CoreVue/Commands/Build.php +++ b/plugins/CoreVue/Commands/Build.php @@ -153,6 +153,9 @@ class Build extends ConsoleCommand if ($this->isTypeScriptRaceConditionInOutput($plugin, $concattedOutput)) { $output->writeln("<comment>The TypeScript compiler encountered a race condition when compiling " . "files (files that exist were not found), retrying.</comment>"); + + ++$attempts; + continue; } if ($returnCode != 0 @@ -163,7 +166,7 @@ class Build extends ConsoleCommand $output->writeln(""); } - ++$attempts; + break; } } |