@websolutespa/test 0.0.3 → 0.1.0

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,13 +1,25 @@
1
- # @websolutespa/test
2
-
3
- ## 0.0.3
4
-
5
- ### Patch Changes
6
-
7
- - Fixing: package.json.
8
-
9
- ## 0.0.2
10
-
11
- ### Patch Changes
12
-
13
- - Added: first release.
1
+ # @websolutespa/test
2
+
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Updating: next 13.
8
+
9
+ ## 0.0.4
10
+
11
+ ### Patch Changes
12
+
13
+ - Added: js, jsx support.
14
+
15
+ ## 0.0.3
16
+
17
+ ### Patch Changes
18
+
19
+ - Fixing: package.json.
20
+
21
+ ## 0.0.2
22
+
23
+ ### Patch Changes
24
+
25
+ - Added: first release.
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Config } from 'jest';
2
2
 
3
- declare const baseConfig: Config;
4
- declare function getProjectConfig(): {};
5
- declare function getAppConfig(): {};
3
+ declare const baseConfig: Config;
4
+ declare function getProjectConfig(): {};
5
+ declare function getAppConfig(): {};
6
6
  declare function getPackageConfig(): {};
7
7
 
8
8
  export { baseConfig, getAppConfig, getPackageConfig, getProjectConfig };
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: {
@@ -133,6 +133,10 @@ function getProjectConfig() {
133
133
  // '^@/components/(.*)$': '<rootDir>/components/$1',
134
134
  // '^@/pages/(.*)$': '<rootDir>/pages/$1',
135
135
  },
136
+ modulePathIgnorePatterns: [
137
+ "<rootDir>/build/",
138
+ "<rootDir>/.next/"
139
+ ],
136
140
  transformIgnorePatterns: [
137
141
  "node_modules",
138
142
  "node_modules/(?!(swiper|swiper/react|ssr-window|dom7)/)"
@@ -143,7 +147,7 @@ function getProjectConfig() {
143
147
  function getAppConfig() {
144
148
  const config = getProjectConfig();
145
149
  config.transform = {
146
- "^.+\\.(ts|tsx)?$": ["@swc/jest", {
150
+ "^.+\\.(js|jsx|ts|tsx)?$": ["@swc/jest", {
147
151
  jsc: {
148
152
  transform: {
149
153
  react: {
@@ -177,7 +181,7 @@ function getPackageConfig() {
177
181
  "<rootDir>/src/**/*(?<!test).{js,jsx,ts,tsx}"
178
182
  ],
179
183
  transform: {
180
- "^.+\\.(ts|tsx)?$": ["@swc/jest", {
184
+ "^.+\\.(js|jsx|ts|tsx)?$": ["@swc/jest", {
181
185
  jsc: {
182
186
  transform: {
183
187
  react: {
@@ -187,7 +191,10 @@ function getPackageConfig() {
187
191
  }
188
192
  }]
189
193
  },
190
- transformIgnorePatterns: ["node_modules"]
194
+ modulePathIgnorePatterns: [
195
+ "<rootDir>/build/"
196
+ ],
197
+ transformIgnorePatterns: ["node_modules/(?!swiper)/"]
191
198
  });
192
199
  return config;
193
200
  }
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: {
@@ -99,6 +99,10 @@ function getProjectConfig() {
99
99
  // '^@/components/(.*)$': '<rootDir>/components/$1',
100
100
  // '^@/pages/(.*)$': '<rootDir>/pages/$1',
101
101
  },
102
+ modulePathIgnorePatterns: [
103
+ "<rootDir>/build/",
104
+ "<rootDir>/.next/"
105
+ ],
102
106
  transformIgnorePatterns: [
103
107
  "node_modules",
104
108
  "node_modules/(?!(swiper|swiper/react|ssr-window|dom7)/)"
@@ -109,7 +113,7 @@ function getProjectConfig() {
109
113
  function getAppConfig() {
110
114
  const config = getProjectConfig();
111
115
  config.transform = {
112
- "^.+\\.(ts|tsx)?$": ["@swc/jest", {
116
+ "^.+\\.(js|jsx|ts|tsx)?$": ["@swc/jest", {
113
117
  jsc: {
114
118
  transform: {
115
119
  react: {
@@ -143,7 +147,7 @@ function getPackageConfig() {
143
147
  "<rootDir>/src/**/*(?<!test).{js,jsx,ts,tsx}"
144
148
  ],
145
149
  transform: {
146
- "^.+\\.(ts|tsx)?$": ["@swc/jest", {
150
+ "^.+\\.(js|jsx|ts|tsx)?$": ["@swc/jest", {
147
151
  jsc: {
148
152
  transform: {
149
153
  react: {
@@ -153,7 +157,10 @@ function getPackageConfig() {
153
157
  }
154
158
  }]
155
159
  },
156
- transformIgnorePatterns: ["node_modules"]
160
+ modulePathIgnorePatterns: [
161
+ "<rootDir>/build/"
162
+ ],
163
+ transformIgnorePatterns: ["node_modules/(?!swiper)/"]
157
164
  });
158
165
  return config;
159
166
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@websolutespa/test",
3
- "version": "0.0.3",
4
- "description": "",
3
+ "version": "0.1.0",
4
+ "description": "Test shared config of the BOM Repository",
5
5
  "keywords": [
6
6
  "bom",
7
7
  "test"
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "scripts": {
15
15
  "lint": "eslint *.js*",
16
- "compile": "tsup ./index.ts --format esm,cjs --dts --external react",
16
+ "compile": "tsup ./index.ts --format esm,cjs --dts",
17
17
  "prepack": "bom prepack",
18
18
  "postpack": "bom postpack"
19
19
  },
@@ -27,17 +27,19 @@
27
27
  "jest-environment-jsdom": "^29.3.1",
28
28
  "jest-fail-on-console": "^3.0.2",
29
29
  "jest-matcher-utils": "^29.3.1",
30
- "jest": "^29.3.1",
31
- "next": "^12.3.2"
30
+ "jest-styled-components": "^7.1.1",
31
+ "jest": "^29.3.1"
32
+ },
33
+ "peerDependencies": {
34
+ "next": ">= 13.4.19"
32
35
  },
33
36
  "devDependencies": {
34
37
  "@types/jest": "^29.2.4",
35
38
  "eslint-config-websolute": "*",
36
39
  "npm-run-all": "^4.1.5",
37
- "open-cli": "^7.1.0",
38
40
  "ts-node": "^10.9.1",
39
- "tsup": "^6.6.3",
40
- "typescript": "^4.8.2"
41
+ "tsup": "^6.7.0",
42
+ "typescript": "^5.1.6"
41
43
  },
42
44
  "publishConfig": {
43
45
  "access": "public"