arui-scripts 20.5.0 → 20.5.1

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.
@@ -5,20 +5,20 @@ ts-jest[versions] (WARN) Version 29.7.0 of jest installed has not been tested wi
5
5
  ts-jest[versions] (WARN) Version 5.6.3 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <5.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
6
6
  ts-jest[versions] (WARN) Version 5.6.3 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <5.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
7
7
  ts-jest[versions] (WARN) Version 5.6.3 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <5.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
8
- PASS src/configs/app-configs/__tests__/update-with-presets.tests.ts (26.835 s)
8
+ PASS src/configs/app-configs/__tests__/update-with-presets.tests.ts (28.168 s)
9
9
  PASS src/configs/util/__tests__/apply-overrides.tests.ts
10
+ PASS src/plugins/postcss-global-variables/utils/__tests__/add-global-variable.tests.ts (28.742 s)
10
11
  PASS src/configs/app-configs/__tests__/update-with-env.tests.ts
11
- PASS src/plugins/postcss-global-variables/utils/__tests__/add-global-variable.tests.ts (27.406 s)
12
12
  PASS src/configs/app-configs/__tests__/update-with-package.tests.ts
13
- PASS src/configs/util/__tests__/get-polyfills.tests.ts
14
13
  PASS src/configs/util/__tests__/compress-with-dcb.test.ts
14
+ PASS src/configs/util/__tests__/get-polyfills.tests.ts
15
15
  PASS src/plugins/postcss-global-variables/utils/__tests__/parse-variables.tests.ts
16
16
  PASS src/plugins/postcss-global-variables/utils/__tests__/get-media-query-name.tests.ts
17
17
  PASS src/configs/app-configs/__tests__/validate-settings-keys.tests.ts
18
- PASS src/configs/util/__tests__/find-plugin.tests.ts (29.7 s)
18
+ PASS src/configs/util/__tests__/find-plugin.tests.ts (30.665 s)
19
19
 
20
20
  Test Suites: 11 passed, 11 total
21
21
  Tests: 25 passed, 25 total
22
22
  Snapshots: 0 total
23
- Time: 30.729 s
23
+ Time: 31.544 s
24
24
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # [15.3.0](https://github.com/core-ds/arui-scripts/compare/v15.2.0...v15.3.0) (2023-06-30)
2
2
 
3
+ ## 20.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#372](https://github.com/core-ds/arui-scripts/pull/372) [`d9ecb07`](https://github.com/core-ds/arui-scripts/commit/d9ecb071c09ed44938491f59c690d7e75ecf3510) Thanks [@dmitrbrvsk](https://github.com/dmitrbrvsk)! - Исправлен запуск команды arui-scripts bundle-analyze
8
+
3
9
  ## 20.5.0
4
10
 
5
11
  ### Minor Changes
@@ -16,6 +16,7 @@ const app_configs_1 = require("../../configs/app-configs");
16
16
  const webpack_client_prod_1 = require("../../configs/webpack.client.prod");
17
17
  const make_tmp_dir_1 = require("../util/make-tmp-dir");
18
18
  (() => __awaiter(void 0, void 0, void 0, function* () {
19
+ console.log('Starting bundle analysis...');
19
20
  const clientWebpackConfigs = Array.isArray(webpack_client_prod_1.webpackClientConfig)
20
21
  ? webpack_client_prod_1.webpackClientConfig
21
22
  : [webpack_client_prod_1.webpackClientConfig];
@@ -28,11 +29,34 @@ const make_tmp_dir_1 = require("../util/make-tmp-dir");
28
29
  generateStatsFile: true,
29
30
  statsFilename: app_configs_1.configs.statsOutputPath,
30
31
  analyzerPort: 'auto',
32
+ analyzerMode: 'server',
33
+ openAnalyzer: true,
34
+ logLevel: 'info',
31
35
  }), // webpack-bundle-analyzer has incorrect types
32
36
  new rspack_plugin_1.RsdoctorRspackPlugin({}),
33
37
  ];
34
38
  webpackConfig.output = Object.assign(Object.assign({}, webpackConfig.output), { path: tmpDir });
35
39
  }));
36
40
  yield Promise.all(promises);
37
- (0, core_1.rspack)(clientWebpackConfigs).run(() => { });
41
+ (0, core_1.rspack)(clientWebpackConfigs).run((err, stats) => {
42
+ var _a, _b;
43
+ if (err) {
44
+ console.error('Bundle analysis failed with error: ', err);
45
+ process.exit(1);
46
+ }
47
+ if (stats) {
48
+ const hasErrors = (_a = stats.hasErrors) === null || _a === void 0 ? void 0 : _a.call(stats);
49
+ const hasWarnings = (_b = stats.hasWarnings) === null || _b === void 0 ? void 0 : _b.call(stats);
50
+ if (hasErrors || hasWarnings) {
51
+ console.log(stats.toString({
52
+ colors: true,
53
+ chunks: false,
54
+ modules: false,
55
+ children: false,
56
+ warnings: true,
57
+ errors: true,
58
+ }));
59
+ }
60
+ }
61
+ });
38
62
  }))();