@atlaspack/reporter-cli 2.15.1-canary.197 → 2.15.1-canary.199

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.
@@ -117,6 +117,12 @@ async function _report(event, options) {
117
117
  phaseStartTimes[event.phase] = Date.now();
118
118
  seenPhasesGen.add(event.phase);
119
119
  }
120
+ if ((0, _featureFlags().getFeatureFlag)('cliProgressReportingImprovements') && (event.phase === 'packaging' || event.phase === 'optimizing')) {
121
+ // If the flag is turned on, we ignore the old `packaging` and
122
+ // `optimizing` event types, and only consider `packagingAndOptimizing`
123
+ // events
124
+ break;
125
+ }
120
126
  if (!_render.isTTY && logLevelFilter != _logLevels.default.verbose) {
121
127
  if (event.phase == 'transforming' && !seenPhases.has('transforming')) {
122
128
  (0, _render.updateSpinner)('Building...');
@@ -124,7 +130,7 @@ async function _report(event, options) {
124
130
  (0, _render.updateSpinner)('Bundling...');
125
131
  } else if (event.phase === 'packagingAndOptimizing') {
126
132
  updatePackageProgress(event.completeBundles, event.totalBundles);
127
- } else if (!(0, _featureFlags().getFeatureFlag)('cliProgressReportingImprovements') && (event.phase == 'packaging' || event.phase == 'optimizing') && !seenPhases.has('packaging') && !seenPhases.has('optimizing')) {
133
+ } else if ((event.phase == 'packaging' || event.phase == 'optimizing') && !seenPhases.has('packaging') && !seenPhases.has('optimizing')) {
128
134
  (0, _render.updateSpinner)('Packaging & Optimizing...');
129
135
  }
130
136
  seenPhases.add(event.phase);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/reporter-cli",
3
- "version": "2.15.1-canary.197+2bc93b17c",
3
+ "version": "2.15.1-canary.199+a4f887b8c",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -27,9 +27,9 @@
27
27
  }
28
28
  },
29
29
  "dependencies": {
30
- "@atlaspack/plugin": "2.14.5-canary.197+2bc93b17c",
31
- "@atlaspack/types": "2.14.5-canary.197+2bc93b17c",
32
- "@atlaspack/utils": "2.14.5-canary.197+2bc93b17c",
30
+ "@atlaspack/plugin": "2.14.5-canary.199+a4f887b8c",
31
+ "@atlaspack/types": "2.14.5-canary.199+a4f887b8c",
32
+ "@atlaspack/utils": "2.14.5-canary.199+a4f887b8c",
33
33
  "chalk": "^4.1.0",
34
34
  "filesize": "^6.1.0",
35
35
  "nullthrows": "^1.1.1",
@@ -39,12 +39,12 @@
39
39
  "wrap-ansi": "^7.0.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@atlaspack/feature-flags": "2.14.1-canary.265+2bc93b17c"
42
+ "@atlaspack/feature-flags": "2.14.1-canary.267+a4f887b8c"
43
43
  },
44
44
  "type": "commonjs",
45
45
  "scripts": {
46
46
  "check-ts": "tsc --emitDeclarationOnly --rootDir src",
47
47
  "build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
48
48
  },
49
- "gitHead": "2bc93b17cea07fd7cbb68acec84d8471345a22b4"
49
+ "gitHead": "a4f887b8c45386b058650c41ad38ac675deee27d"
50
50
  }
@@ -118,6 +118,16 @@ export async function _report(
118
118
  seenPhasesGen.add(event.phase);
119
119
  }
120
120
 
121
+ if (
122
+ getFeatureFlag('cliProgressReportingImprovements') &&
123
+ (event.phase === 'packaging' || event.phase === 'optimizing')
124
+ ) {
125
+ // If the flag is turned on, we ignore the old `packaging` and
126
+ // `optimizing` event types, and only consider `packagingAndOptimizing`
127
+ // events
128
+ break;
129
+ }
130
+
121
131
  if (!isTTY && logLevelFilter != logLevels.verbose) {
122
132
  if (event.phase == 'transforming' && !seenPhases.has('transforming')) {
123
133
  updateSpinner('Building...');
@@ -126,7 +136,6 @@ export async function _report(
126
136
  } else if (event.phase === 'packagingAndOptimizing') {
127
137
  updatePackageProgress(event.completeBundles, event.totalBundles);
128
138
  } else if (
129
- !getFeatureFlag('cliProgressReportingImprovements') &&
130
139
  (event.phase == 'packaging' || event.phase == 'optimizing') &&
131
140
  !seenPhases.has('packaging') &&
132
141
  !seenPhases.has('optimizing')