@websolutespa/test 0.0.2 → 0.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.
package/CHANGELOG.md CHANGED
@@ -1,7 +1,19 @@
1
- # @websolutespa/test
2
-
3
- ## 0.0.2
4
-
5
- ### Patch Changes
6
-
7
- - Added: first release.
1
+ # @websolutespa/test
2
+
3
+ ## 0.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Added: js, jsx support.
8
+
9
+ ## 0.0.3
10
+
11
+ ### Patch Changes
12
+
13
+ - Fixing: package.json.
14
+
15
+ ## 0.0.2
16
+
17
+ ### Patch Changes
18
+
19
+ - Added: first release.
package/dist/index.js CHANGED
@@ -106,7 +106,7 @@ function getProjectConfig() {
106
106
  ],
107
107
  setupFilesAfterEnv: [`${cwd}/jest.setup.js`],
108
108
  transform: {
109
- "^.+\\.(ts|tsx)?$": ["@swc/jest", {
109
+ "^.+\\.(js|jsx|ts|tsx)?$": ["@swc/jest", {
110
110
  jsc: {
111
111
  transform: {
112
112
  react: {
@@ -143,7 +143,7 @@ function getProjectConfig() {
143
143
  function getAppConfig() {
144
144
  const config = getProjectConfig();
145
145
  config.transform = {
146
- "^.+\\.(ts|tsx)?$": ["@swc/jest", {
146
+ "^.+\\.(js|jsx|ts|tsx)?$": ["@swc/jest", {
147
147
  jsc: {
148
148
  transform: {
149
149
  react: {
@@ -177,7 +177,7 @@ function getPackageConfig() {
177
177
  "<rootDir>/src/**/*(?<!test).{js,jsx,ts,tsx}"
178
178
  ],
179
179
  transform: {
180
- "^.+\\.(ts|tsx)?$": ["@swc/jest", {
180
+ "^.+\\.(js|jsx|ts|tsx)?$": ["@swc/jest", {
181
181
  jsc: {
182
182
  transform: {
183
183
  react: {
@@ -187,7 +187,7 @@ function getPackageConfig() {
187
187
  }
188
188
  }]
189
189
  },
190
- transformIgnorePatterns: ["node_modules"]
190
+ transformIgnorePatterns: ["node_modules/(?!swiper)/"]
191
191
  });
192
192
  return config;
193
193
  }
package/dist/index.mjs CHANGED
@@ -72,7 +72,7 @@ function getProjectConfig() {
72
72
  ],
73
73
  setupFilesAfterEnv: [`${cwd}/jest.setup.js`],
74
74
  transform: {
75
- "^.+\\.(ts|tsx)?$": ["@swc/jest", {
75
+ "^.+\\.(js|jsx|ts|tsx)?$": ["@swc/jest", {
76
76
  jsc: {
77
77
  transform: {
78
78
  react: {
@@ -109,7 +109,7 @@ function getProjectConfig() {
109
109
  function getAppConfig() {
110
110
  const config = getProjectConfig();
111
111
  config.transform = {
112
- "^.+\\.(ts|tsx)?$": ["@swc/jest", {
112
+ "^.+\\.(js|jsx|ts|tsx)?$": ["@swc/jest", {
113
113
  jsc: {
114
114
  transform: {
115
115
  react: {
@@ -143,7 +143,7 @@ function getPackageConfig() {
143
143
  "<rootDir>/src/**/*(?<!test).{js,jsx,ts,tsx}"
144
144
  ],
145
145
  transform: {
146
- "^.+\\.(ts|tsx)?$": ["@swc/jest", {
146
+ "^.+\\.(js|jsx|ts|tsx)?$": ["@swc/jest", {
147
147
  jsc: {
148
148
  transform: {
149
149
  react: {
@@ -153,7 +153,7 @@ function getPackageConfig() {
153
153
  }
154
154
  }]
155
155
  },
156
- transformIgnorePatterns: ["node_modules"]
156
+ transformIgnorePatterns: ["node_modules/(?!swiper)/"]
157
157
  });
158
158
  return config;
159
159
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@websolutespa/test",
3
- "version": "0.0.2",
4
- "description": "",
3
+ "version": "0.0.4",
4
+ "description": "Test shared config of the BOM Repository",
5
5
  "keywords": [
6
6
  "bom",
7
7
  "test"
@@ -11,23 +11,11 @@
11
11
  "type": "git",
12
12
  "url": "git://github.com/websolutespa/bom.git"
13
13
  },
14
- "main": "./index.ts",
15
- "types": "./index.ts",
16
- "prepack": {
17
- "types": "./dist/index.d.ts",
18
- "main": "./dist/index.js"
19
- },
20
- "postpack": {
21
- "types": "./index.ts",
22
- "main": "./index.ts"
23
- },
24
- "sideEffects": false,
25
- "publishConfig": {
26
- "access": "public"
27
- },
28
14
  "scripts": {
29
- "build": "tsup ./index.ts --format esm,cjs --dts --external react",
30
- "lint": "eslint *.js*"
15
+ "lint": "eslint *.js*",
16
+ "compile": "tsup ./index.ts --format esm,cjs --dts",
17
+ "prepack": "bom prepack",
18
+ "postpack": "bom postpack"
31
19
  },
32
20
  "dependencies": {
33
21
  "@playwright/test": "^1.29.1",
@@ -39,16 +27,32 @@
39
27
  "jest-environment-jsdom": "^29.3.1",
40
28
  "jest-fail-on-console": "^3.0.2",
41
29
  "jest-matcher-utils": "^29.3.1",
42
- "jest": "^29.3.1",
43
- "next": "^12.3.2"
30
+ "jest-styled-components": "^7.1.1",
31
+ "jest": "^29.3.1"
32
+ },
33
+ "peerDependencies": {
34
+ "next": ">= 12.3.2"
44
35
  },
45
36
  "devDependencies": {
46
37
  "@types/jest": "^29.2.4",
47
38
  "eslint-config-websolute": "*",
48
39
  "npm-run-all": "^4.1.5",
49
- "open-cli": "^7.1.0",
50
40
  "ts-node": "^10.9.1",
51
- "tsup": "^6.6.3",
52
- "typescript": "^4.8.2"
53
- }
54
- }
41
+ "tsup": "^6.7.0",
42
+ "typescript": "^4.8.4"
43
+ },
44
+ "publishConfig": {
45
+ "access": "public"
46
+ },
47
+ "sideEffects": false,
48
+ "prepack": {
49
+ "types": "./dist/index.d.ts",
50
+ "main": "./dist/index.js"
51
+ },
52
+ "postpack": {
53
+ "types": "./index.ts",
54
+ "main": "./index.ts"
55
+ },
56
+ "types": "./dist/index.d.ts",
57
+ "main": "./dist/index.js"
58
+ }