arui-scripts 21.0.3 → 21.0.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.
@@ -1,21 +1,21 @@
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/configs/app-configs/__tests__/update-with-presets.tests.ts (21.5 s)
4
+ PASS src/configs/app-configs/__tests__/update-with-presets.tests.ts (24.143 s)
5
+ PASS src/plugins/postcss-global-variables/utils/__tests__/add-global-variable.tests.ts (24.05 s)
5
6
  PASS src/configs/util/__tests__/create-watch-ignore-regex.tests.ts
6
7
  PASS src/configs/util/__tests__/apply-overrides.tests.ts
7
- PASS src/plugins/postcss-global-variables/utils/__tests__/add-global-variable.tests.ts (21.853 s)
8
8
  PASS src/configs/app-configs/__tests__/update-with-env.tests.ts
9
9
  PASS src/configs/app-configs/__tests__/update-with-package.tests.ts
10
- PASS src/configs/util/__tests__/compress-with-dcb.test.ts
11
10
  PASS src/configs/util/__tests__/get-polyfills.tests.ts
12
11
  PASS src/plugins/postcss-global-variables/utils/__tests__/parse-variables.tests.ts
12
+ PASS src/configs/util/__tests__/compress-with-dcb.test.ts
13
13
  PASS src/plugins/postcss-global-variables/utils/__tests__/get-media-query-name.tests.ts
14
14
  PASS src/configs/app-configs/__tests__/validate-settings-keys.tests.ts
15
- PASS src/configs/util/__tests__/find-plugin.tests.ts (24.756 s)
15
+ PASS src/configs/util/__tests__/find-plugin.tests.ts (26.924 s)
16
16
 
17
17
  Test Suites: 12 passed, 12 total
18
18
  Tests: 30 passed, 30 total
19
19
  Snapshots: 0 total
20
- Time: 25.673 s
20
+ Time: 27.769 s
21
21
  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
+ ## 21.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#467](https://github.com/core-ds/arui-scripts/pull/467) [`e6d6a40`](https://github.com/core-ds/arui-scripts/commit/e6d6a40c5200fcb128850f44ddf0e676b144624b) Thanks [@Los-Santos1](https://github.com/Los-Santos1)! - Исправлен запуск Jest на Windows из-за абсолютных путей в import
8
+
3
9
  ## 21.0.3
4
10
 
5
11
  ### Patch Changes
@@ -26,6 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.getJestConfig = void 0;
27
27
  const fs_1 = __importDefault(require("fs"));
28
28
  const path_1 = __importDefault(require("path"));
29
+ const url_1 = require("url");
29
30
  const jest_config_1 = require("jest-config");
30
31
  const jest_resolve_1 = __importDefault(require("jest-resolve"));
31
32
  const lodash_merge_1 = __importDefault(require("lodash.merge"));
@@ -48,7 +49,7 @@ function getAppJestConfig() {
48
49
  return __awaiter(this, void 0, void 0, function* () {
49
50
  const jestConfigPath = path_1.default.resolve(process.cwd(), 'jest.config.js');
50
51
  if (fs_1.default.existsSync(jestConfigPath)) {
51
- return (yield import(jestConfigPath)).default;
52
+ return (yield import((0, url_1.pathToFileURL)(jestConfigPath).href)).default;
52
53
  }
53
54
  if (app_configs_1.configs.appPackage.jest) {
54
55
  return app_configs_1.configs.appPackage.jest;
@@ -72,7 +73,8 @@ function getPresetConfig(presetPath) {
72
73
  if (!presetModule) {
73
74
  throw new Error(`Cannot find module '${normalizedPresetPath}'`);
74
75
  }
75
- const _a = (yield import(presetModule)).default, { preset: subPreset } = _a, preset = __rest(_a, ["preset"]);
76
+ const _a = (yield import((0, url_1.pathToFileURL)(presetModule).href))
77
+ .default, { preset: subPreset } = _a, preset = __rest(_a, ["preset"]);
76
78
  if (subPreset) {
77
79
  console.warn(`Jest can't handle preset chaining. Preset "${subPreset}" will be ignored.`);
78
80
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arui-scripts",
3
- "version": "21.0.3",
3
+ "version": "21.0.4",
4
4
  "main": "./build/index.js",
5
5
  "typings": "./build/index.d.ts",
6
6
  "license": "MPL-2.0",