arui-scripts 23.9.2 → 23.9.3

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.
@@ -1,28 +1,28 @@
1
1
  ts-jest[versions] (WARN) Version 6.0.2 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <6.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
2
2
  ts-jest[versions] (WARN) Version 6.0.2 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <6.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
3
3
  ts-jest[versions] (WARN) Version 6.0.2 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <6.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
4
- PASS src/plugins/postcss-global-variables/utils/__tests__/add-global-variable.tests.ts (18.254 s)
4
+ PASS src/commands/util/__tests__/run-compilers.tests.ts (19.192 s)
5
+ PASS src/plugins/postcss-global-variables/utils/__tests__/add-global-variable.tests.ts
5
6
  PASS src/bin/__tests__/create-cli.tests.ts
6
7
  PASS src/configs/app-configs/__tests__/update-with-presets.tests.ts
7
8
  PASS src/configs/util/__tests__/create-watch-ignore-regex.tests.ts
8
9
  PASS src/configs/util/__tests__/apply-overrides.tests.ts
9
10
  PASS src/commands/util/__tests__/artifacts-deprecations.tests.ts
10
- PASS src/plugins/__tests__/attribute-module-css.tests.ts (28.778 s)
11
+ PASS src/plugins/__tests__/attribute-module-css.tests.ts (38.033 s)
11
12
  PASS src/configs/app-configs/__tests__/update-with-env.tests.ts
12
- PASS src/configs/__tests__/webpack-client-modules.tests.ts (8.298 s)
13
+ PASS src/configs/util/__tests__/find-plugin.tests.ts (40.904 s)
14
+ PASS src/configs/__tests__/rspack-client-assets.tests.ts (18.834 s)
13
15
  PASS src/configs/app-configs/__tests__/update-with-package.tests.ts
14
- PASS src/configs/__tests__/rspack-client-assets.tests.ts (18.268 s)
15
16
  PASS src/configs/util/__tests__/get-polyfills.tests.ts
16
- PASS src/configs/util/__tests__/find-plugin.tests.ts (38.766 s)
17
+ PASS src/configs/__tests__/webpack-client-modules.tests.ts
17
18
  PASS src/plugins/postcss-global-variables/utils/__tests__/parse-variables.tests.ts
18
19
  PASS src/configs/util/__tests__/compress-with-dcb.test.ts
19
- PASS src/plugins/postcss-global-variables/utils/__tests__/get-media-query-name.tests.ts
20
20
  PASS src/configs/app-configs/__tests__/validate-settings-keys.tests.ts
21
+ PASS src/plugins/postcss-global-variables/utils/__tests__/get-media-query-name.tests.ts
21
22
  PASS src/commands/util/__tests__/client-assets-sizes.tests.ts
22
- A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --detectOpenHandles to find leaks. Active timers can also cause this, ensure that .unref() was called on them.
23
23
 
24
- Test Suites: 18 passed, 18 total
25
- Tests: 49 passed, 49 total
24
+ Test Suites: 19 passed, 19 total
25
+ Tests: 54 passed, 54 total
26
26
  Snapshots: 0 total
27
- Time: 40.88 s
27
+ Time: 42.588 s
28
28
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # arui-scripts
2
2
 
3
+ ## 23.9.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#605](https://github.com/core-ds/arui-scripts/pull/605) [`94ce42aa`](https://github.com/core-ds/arui-scripts/commit/94ce42aa67e8fa3e8c4f1f883c5aac179de9413e) Thanks [@dmitrbrvsk](https://github.com/dmitrbrvsk)! - Сборка больше не завершается успешно, если компилятор упал. Раньше при падении по сигналу (например, из-за нехватки памяти) `arui-scripts build` выходил с кодом 0 и CI/CD считал такую сборку успешной, хотя ассеты собраны не полностью.
8
+
3
9
  ## 23.9.2
4
10
 
5
11
  ### Patch Changes
@@ -12,26 +12,27 @@ function runCompilers(pathToCompilers) {
12
12
  fs_extra_1.default.removeSync(app_configs_1.configs.serverOutputPath);
13
13
  }
14
14
  const compilers = pathToCompilers.map((pathToCompiler) => {
15
- if (Array.isArray(pathToCompiler)) {
16
- const compiler = (0, child_process_1.spawn)('node', pathToCompiler, {
17
- stdio: 'inherit',
18
- cwd: app_configs_1.configs.cwd,
19
- });
20
- compiler.on('error', onProcessExit);
21
- compiler.on('close', onProcessExit);
22
- return compiler;
23
- }
24
- const compiler = (0, child_process_1.spawn)('node', [pathToCompiler], {
15
+ const compiler = (0, child_process_1.spawn)('node', Array.isArray(pathToCompiler) ? pathToCompiler : [pathToCompiler], {
25
16
  stdio: 'inherit',
17
+ cwd: app_configs_1.configs.cwd,
26
18
  });
27
- compiler.on('error', onProcessExit);
28
- compiler.on('close', onProcessExit);
19
+ compiler.on('error', onProcessError);
20
+ compiler.on('close', onProcessClose);
29
21
  return compiler;
30
22
  });
31
- function onProcessExit(code) {
23
+ function stopCompilers(exitCode) {
24
+ compilers.forEach((compiler) => compiler.kill());
25
+ process.exit(exitCode);
26
+ }
27
+ // в error приходит объект ошибки, а не код для выхода
28
+ function onProcessError(error) {
29
+ console.error(error.message);
30
+ stopCompilers(1);
31
+ }
32
+ function onProcessClose(code) {
32
33
  if (code !== 0) {
33
- compilers.forEach((compiler) => compiler.kill());
34
- process.exit(code);
34
+ // code === null означает, что процесс убит сигналом
35
+ stopCompilers(code !== null && code !== void 0 ? code : 1);
35
36
  }
36
37
  }
37
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arui-scripts",
3
- "version": "23.9.2",
3
+ "version": "23.9.3",
4
4
  "main": "./build/index.js",
5
5
  "typings": "./build/index.d.ts",
6
6
  "exports": {