@enact/cli 5.0.0-rc.1 → 5.0.0

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 5.0.0 (July 19, 2022)
2
+
3
+ * Updated dependencies.
4
+
5
+ ### pack
6
+
7
+ * Fixed build failure when `.env` file exists.
8
+ * Fixed `snapshot_blob.bin` file is not listed on the build results.
9
+
1
10
  ## 5.0.0-rc.1 (Jun 23, 2022)
2
11
 
3
12
  ### serve
package/commands/pack.js CHANGED
@@ -19,7 +19,7 @@ const minimist = require('minimist');
19
19
  const formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
20
20
  const printBuildError = require('react-dev-utils/printBuildError');
21
21
  const stripAnsi = require('strip-ansi');
22
- const {ProgressPlugin, webpack} = require('webpack');
22
+ const webpack = require('webpack');
23
23
  const {optionParser: app, mixins, configHelper: helper} = require('@enact/dev-utils');
24
24
 
25
25
  function displayHelp() {
@@ -147,7 +147,7 @@ function copyPublicFolder(output) {
147
147
  // Print a detailed summary of build files.
148
148
  function printFileSizes(stats, output) {
149
149
  const assets = stats
150
- .toJson({all: false, assets: true})
150
+ .toJson({all: false, assets: true, cachedAssets: true})
151
151
  .assets.filter(asset => /\.(js|css|bin)$/.test(asset.name))
152
152
  .map(asset => {
153
153
  const size = fs.statSync(path.join(output, asset.name)).size;
@@ -262,8 +262,6 @@ function api(opts = {}) {
262
262
  // Set any output path override
263
263
  if (opts.output) config.output.path = path.resolve(opts.output);
264
264
 
265
- if (opts.verbose) opts.ProgressPlugin = ProgressPlugin;
266
-
267
265
  mixins.apply(config, opts);
268
266
 
269
267
  // Remove all content but keep the directory so that
package/config/dotenv.js CHANGED
@@ -3,7 +3,7 @@
3
3
  const fs = require('fs');
4
4
  const path = require('path');
5
5
  const dotenv = require('dotenv');
6
- const expand = require('dotenv-expand');
6
+ const {expand} = require('dotenv-expand');
7
7
 
8
8
  // Loads all required .env files in correct order, for a given mode.
9
9
  // See https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use