aloha-vue 1.2.73 → 1.2.74

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.
@@ -0,0 +1,20 @@
1
+ const path = require("path");
2
+
3
+ module.exports = {
4
+ presets: [
5
+ ["@babel/env"]
6
+ ],
7
+ env: {
8
+ test: {
9
+ presets: [["@babel/env"]]
10
+ }
11
+ },
12
+ plugins: [
13
+ ["module-resolver", {
14
+ root: ["./src"],
15
+ alias: {
16
+ "@": path.resolve(__dirname, "./src")
17
+ }
18
+ }]
19
+ ]
20
+ };
@@ -34,16 +34,6 @@ function resolveAlias(mode) {
34
34
  function getRules(mode) {
35
35
  const TARGET = process.env.npm_lifecycle_event;
36
36
  const RULES = [
37
- {
38
- test: /\.m?js?json/,
39
- type: "javascript/auto",
40
- },
41
- {
42
- test: /\.m?js/,
43
- resolve: {
44
- fullySpecified: false,
45
- },
46
- },
47
37
  // {
48
38
  // test: /\.js$/,
49
39
  // enforce: "pre",
package/jest.config.js ADDED
@@ -0,0 +1,16 @@
1
+ // For a detailed explanation regarding each configuration property, visit:
2
+ // https://jestjs.io/docs/en/configuration.html
3
+
4
+ module.exports = {
5
+ coverageDirectory: "coverage",
6
+ moduleNameMapper: {
7
+ "@/(.*)$": "<rootDir>/src/$1"
8
+ },
9
+ testEnvironment: "node",
10
+ transform: {
11
+ "^.+\\.jsx?$": "babel-jest"
12
+ },
13
+ transformIgnorePatterns: [
14
+ "<rootDir>/node_modules/(?!lodash-es)"
15
+ ],
16
+ };
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "Vue.js"
15
15
  ],
16
16
  "homepage": "https://github.com/ilia-brykin/aloha/#README.md",
17
- "version": "1.2.73",
17
+ "version": "1.2.74",
18
18
  "author": {
19
19
  "name": "Ilia Brykin",
20
20
  "email": "brykin.ilia@gmail.com"
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "scripts": {
40
40
  "build-icons": "node scriptsNode/iconsSvgToJs.js bootstrap3 && node scriptsNode/iconsSvgToJs.js bootstrap-1-9-1",
41
- "test": "node --trace-warnings --experimental-vm-modules node_modules/jest/bin/jest.js"
41
+ "test": "jest"
42
42
  },
43
43
  "dependencies": {
44
44
  "@floating-ui/vue": "1.0.2",
@@ -55,10 +55,12 @@
55
55
  "@vue/test-utils": "^2.4.3",
56
56
  "eslint-plugin-jest": "^27.6.1",
57
57
  "jest": "^29.7.0",
58
- "lodash": "^4.17.21"
59
- },
60
- "jest": {
61
- "transform": {}
62
- },
63
- "type": "module"
58
+ "lodash": "^4.17.21",
59
+ "@babel/cli": "^7.23.4",
60
+ "@babel/core": "^7.23.7",
61
+ "@babel/preset-env": "^7.23.8",
62
+ "babel-core": "^7.0.0-bridge.0",
63
+ "babel-jest": "29.7.0",
64
+ "babel-plugin-module-resolver": "5.0.0"
65
+ }
64
66
  }