zarro 1.99.3 → 1.99.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,19 +48,19 @@ gulp.task(
48
48
  gulp.task("quick-build", "Quick build without pre-cursors", tryBuild);
49
49
 
50
50
  async function tryBuild() {
51
- let attempts = env.resolveNumber("BUILD_RETRIES") + 1;
52
- if (attempts < 0) {
53
- attempts = 1;
51
+ let totalAttempts = env.resolveNumber("BUILD_RETRIES") + 1;
52
+ if (totalAttempts < 0) {
53
+ totalAttempts = 1;
54
54
  }
55
- const originalAttempts = attempts;
55
+ const totalRetries = totalAttempts - 1;
56
56
 
57
- while (attempts-- > 0) {
57
+ while (totalAttempts-- > 0) {
58
58
  try {
59
59
  await build();
60
60
  } catch (e) {
61
- if (attempts > 0) {
61
+ if (totalAttempts > 0) {
62
62
  console.error(chalk.red(`Build fails: ${e}`));
63
- console.log(`Retrying (${originalAttempts - attempts} / ${originalAttempts})`);
63
+ console.log(chalk.green(`Retrying (${totalRetries - totalAttempts} / ${totalRetries })`));
64
64
  } else {
65
65
  throw e;
66
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zarro",
3
- "version": "1.99.3",
3
+ "version": "1.99.4",
4
4
  "description": "Some glue to make gulp easier, perhaps even zero- or close-to-zero-conf",
5
5
  "bin": {
6
6
  "zarro": "./index.js"