@ttoss/config 1.34.1 → 1.35.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/README.md +2 -18
- package/dist/esm/index.js +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/package.json +13 -13
- package/tsconfig.json +3 -3
package/README.md
CHANGED
|
@@ -91,26 +91,10 @@ module.exports = babelConfig();
|
|
|
91
91
|
Install [Jest](https://jestjs.io/) and its types on your package:
|
|
92
92
|
|
|
93
93
|
```shell
|
|
94
|
-
pnpm add -D jest @types/jest
|
|
94
|
+
pnpm add -D jest @types/jest ts-node
|
|
95
95
|
```
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
```ts title="jest.config.ts"
|
|
100
|
-
import { jestConfig } from '@ttoss/config';
|
|
101
|
-
|
|
102
|
-
const config = jestConfig();
|
|
103
|
-
|
|
104
|
-
export default config;
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
Configure the `test` script on `package.json` of your package:
|
|
108
|
-
|
|
109
|
-
```json title="package.json"
|
|
110
|
-
"scripts": {
|
|
111
|
-
"test": "jest",
|
|
112
|
-
}
|
|
113
|
-
```
|
|
97
|
+
Follow our [tests guidelines](https://ttoss.dev/docs/engineering/guidelines/tests) to configure and run your tests.
|
|
114
98
|
|
|
115
99
|
### Tsup
|
|
116
100
|
|
package/dist/esm/index.js
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -45,10 +45,10 @@ declare const tsupConfig: (config?: any, deepmergeConfig?: {
|
|
|
45
45
|
} | undefined) => any;
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* `target` to `
|
|
49
|
-
* https://node.green/#
|
|
48
|
+
* `target` to `es2023` because Node.js 20 supports ES2023 features.
|
|
49
|
+
* https://node.green/#ES2023
|
|
50
50
|
*/
|
|
51
|
-
declare const target = "
|
|
51
|
+
declare const target = "es2023";
|
|
52
52
|
|
|
53
53
|
declare const typescriptConfig_target: typeof target;
|
|
54
54
|
declare namespace typescriptConfig {
|
package/dist/index.d.ts
CHANGED
|
@@ -45,10 +45,10 @@ declare const tsupConfig: (config?: any, deepmergeConfig?: {
|
|
|
45
45
|
} | undefined) => any;
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* `target` to `
|
|
49
|
-
* https://node.green/#
|
|
48
|
+
* `target` to `es2023` because Node.js 20 supports ES2023 features.
|
|
49
|
+
* https://node.green/#ES2023
|
|
50
50
|
*/
|
|
51
|
-
declare const target = "
|
|
51
|
+
declare const target = "es2023";
|
|
52
52
|
|
|
53
53
|
declare const typescriptConfig_target: typeof target;
|
|
54
54
|
declare namespace typescriptConfig {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.35.0",
|
|
4
4
|
"description": "Default configuration for packages.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"typings": "dist/index.d.ts",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@babel/core": "^7.
|
|
26
|
-
"@babel/plugin-proposal-decorators": "^7.
|
|
27
|
-
"@babel/preset-env": "^7.
|
|
28
|
-
"@babel/preset-react": "^7.
|
|
29
|
-
"@babel/preset-typescript": "^7.
|
|
30
|
-
"@commitlint/config-conventional": "^19.
|
|
31
|
-
"@formatjs/ts-transformer": "^3.13.
|
|
32
|
-
"babel-plugin-formatjs": "^10.5.
|
|
25
|
+
"@babel/core": "^7.26.0",
|
|
26
|
+
"@babel/plugin-proposal-decorators": "^7.25.9",
|
|
27
|
+
"@babel/preset-env": "^7.26.0",
|
|
28
|
+
"@babel/preset-react": "^7.25.9",
|
|
29
|
+
"@babel/preset-typescript": "^7.26.0",
|
|
30
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
31
|
+
"@formatjs/ts-transformer": "^3.13.23",
|
|
32
|
+
"babel-plugin-formatjs": "^10.5.26",
|
|
33
33
|
"babel-plugin-transform-import-meta": "^2.2.1",
|
|
34
34
|
"deepmerge": "^4.3.1",
|
|
35
35
|
"identity-obj-proxy": "^3.0.0",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@jest/types": "^29.6.3",
|
|
40
|
-
"@types/jest": "^29.5.
|
|
41
|
-
"@types/node": "^20.
|
|
42
|
-
"esbuild": "^0.
|
|
40
|
+
"@types/jest": "^29.5.14",
|
|
41
|
+
"@types/node": "^20.17.8",
|
|
42
|
+
"esbuild": "^0.24.0",
|
|
43
43
|
"jest": "^29.7.0",
|
|
44
|
-
"tsup": "^8.3.
|
|
44
|
+
"tsup": "^8.3.5"
|
|
45
45
|
},
|
|
46
46
|
"keywords": [],
|
|
47
47
|
"publishConfig": {
|
package/tsconfig.json
CHANGED
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"moduleResolution": "Bundler",
|
|
18
18
|
"module": "ESNext",
|
|
19
19
|
/**
|
|
20
|
-
* `target` to `
|
|
21
|
-
* https://node.green/#
|
|
20
|
+
* `target` to `es2023` because Node.js 20 supports ES2023 features.
|
|
21
|
+
* https://node.green/#ES2023
|
|
22
22
|
*/
|
|
23
|
-
"target": "
|
|
23
|
+
"target": "es2023",
|
|
24
24
|
"declaration": true,
|
|
25
25
|
"sourceMap": true,
|
|
26
26
|
"strict": true,
|