@ttoss/config 1.36.0 → 1.37.5

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/dist/esm/index.js CHANGED
@@ -149,21 +149,20 @@ var prettierConfig = configCreator(defaultConfig5);
149
149
 
150
150
  // src/syncpack.ts
151
151
  var defaultConfig6 = {
152
- dependencyTypes: ["dev", "overrides",
153
- /**
154
- * Exclude peer dependencies from the list of dependencies to check
155
- * to avoid updating peer dependencies to the latest version, as updating
156
- * React to the latest version instead >=16.8.0.
157
- */
158
- // 'peer',
159
- "pnpmOverrides", "prod", "resolutions"],
160
- filter: ".",
161
152
  indent: " ",
162
153
  semverGroups: [],
163
- semverRange: "",
164
154
  sortAz: ["contributors", "dependencies", "devDependencies", "keywords", "peerDependencies", "resolutions", "scripts"],
165
155
  sortFirst: ["name", "version", "description", "author"],
166
- versionGroups: []
156
+ versionGroups: [
157
+ /**
158
+ * Exclude peer and local dependencies from version checks to avoid
159
+ * updating peer dependencies to the latest version (e.g. React >=16.8.0).
160
+ */
161
+ {
162
+ label: "Ignore peer and local dependencies",
163
+ dependencyTypes: ["peer", "local"],
164
+ isIgnored: true
165
+ }]
167
166
  };
168
167
  var syncpackConfig = configCreator(defaultConfig6);
169
168
 
@@ -175,7 +174,7 @@ var typescriptConfig_exports = {};
175
174
  __export(typescriptConfig_exports, {
176
175
  target: () => target
177
176
  });
178
- var target = "es2023";
177
+ var target = "es2024";
179
178
 
180
179
  // src/tsup.ts
181
180
  var formatjsPlugin = {
package/dist/index.d.mts CHANGED
@@ -23,13 +23,33 @@ declare const jestUnitConfig: (config?: any, deepmergeConfig?: {
23
23
  arrayMerge: "append" | "overwrite";
24
24
  } | undefined) => any;
25
25
 
26
- declare const lintstagedConfig: (config?: any, deepmergeConfig?: {
26
+ declare const lintstagedConfig: (config?: {
27
+ '*.{js,jsx,ts,tsx}': string;
28
+ '*.{md,mdx,html,json,yml,yaml}': string;
29
+ 'package.json': string;
30
+ }, deepmergeConfig?: {
27
31
  arrayMerge: "append" | "overwrite";
28
- } | undefined) => any;
32
+ } | undefined) => {
33
+ '*.{js,jsx,ts,tsx}': string;
34
+ '*.{md,mdx,html,json,yml,yaml}': string;
35
+ 'package.json': string;
36
+ };
29
37
 
30
- declare const prettierConfig: (config?: any, deepmergeConfig?: {
38
+ declare const prettierConfig: (config?: {
39
+ arrowParens: string;
40
+ printWidth: number;
41
+ semi: boolean;
42
+ singleQuote: boolean;
43
+ trailingComma: string;
44
+ }, deepmergeConfig?: {
31
45
  arrayMerge: "append" | "overwrite";
32
- } | undefined) => any;
46
+ } | undefined) => {
47
+ arrowParens: string;
48
+ printWidth: number;
49
+ semi: boolean;
50
+ singleQuote: boolean;
51
+ trailingComma: string;
52
+ };
33
53
 
34
54
  declare const syncpackConfig: (config?: any, deepmergeConfig?: {
35
55
  arrayMerge: "append" | "overwrite";
@@ -45,10 +65,11 @@ declare const tsupConfig: (config?: any, deepmergeConfig?: {
45
65
  } | undefined) => any;
46
66
 
47
67
  /**
48
- * `target` to `es2023` because Node.js 20 supports ES2023 features.
49
- * https://node.green/#ES2023
68
+ * `target` to `es2024` because Node.js 24 supports ES2024 features and
69
+ * esbuild does not yet support `es2025` as a target.
70
+ * https://node.green/#ES2024
50
71
  */
51
- declare const target = "es2023";
72
+ declare const target = "es2024";
52
73
 
53
74
  declare const typescriptConfig_target: typeof target;
54
75
  declare namespace typescriptConfig {
package/dist/index.d.ts CHANGED
@@ -23,13 +23,33 @@ declare const jestUnitConfig: (config?: any, deepmergeConfig?: {
23
23
  arrayMerge: "append" | "overwrite";
24
24
  } | undefined) => any;
25
25
 
26
- declare const lintstagedConfig: (config?: any, deepmergeConfig?: {
26
+ declare const lintstagedConfig: (config?: {
27
+ '*.{js,jsx,ts,tsx}': string;
28
+ '*.{md,mdx,html,json,yml,yaml}': string;
29
+ 'package.json': string;
30
+ }, deepmergeConfig?: {
27
31
  arrayMerge: "append" | "overwrite";
28
- } | undefined) => any;
32
+ } | undefined) => {
33
+ '*.{js,jsx,ts,tsx}': string;
34
+ '*.{md,mdx,html,json,yml,yaml}': string;
35
+ 'package.json': string;
36
+ };
29
37
 
30
- declare const prettierConfig: (config?: any, deepmergeConfig?: {
38
+ declare const prettierConfig: (config?: {
39
+ arrowParens: string;
40
+ printWidth: number;
41
+ semi: boolean;
42
+ singleQuote: boolean;
43
+ trailingComma: string;
44
+ }, deepmergeConfig?: {
31
45
  arrayMerge: "append" | "overwrite";
32
- } | undefined) => any;
46
+ } | undefined) => {
47
+ arrowParens: string;
48
+ printWidth: number;
49
+ semi: boolean;
50
+ singleQuote: boolean;
51
+ trailingComma: string;
52
+ };
33
53
 
34
54
  declare const syncpackConfig: (config?: any, deepmergeConfig?: {
35
55
  arrayMerge: "append" | "overwrite";
@@ -45,10 +65,11 @@ declare const tsupConfig: (config?: any, deepmergeConfig?: {
45
65
  } | undefined) => any;
46
66
 
47
67
  /**
48
- * `target` to `es2023` because Node.js 20 supports ES2023 features.
49
- * https://node.green/#ES2023
68
+ * `target` to `es2024` because Node.js 24 supports ES2024 features and
69
+ * esbuild does not yet support `es2025` as a target.
70
+ * https://node.green/#ES2024
50
71
  */
51
- declare const target = "es2023";
72
+ declare const target = "es2024";
52
73
 
53
74
  declare const typescriptConfig_target: typeof target;
54
75
  declare namespace typescriptConfig {
package/dist/index.js CHANGED
@@ -193,21 +193,20 @@ var prettierConfig = configCreator(defaultConfig5);
193
193
 
194
194
  // src/syncpack.ts
195
195
  var defaultConfig6 = {
196
- dependencyTypes: ["dev", "overrides",
197
- /**
198
- * Exclude peer dependencies from the list of dependencies to check
199
- * to avoid updating peer dependencies to the latest version, as updating
200
- * React to the latest version instead >=16.8.0.
201
- */
202
- // 'peer',
203
- "pnpmOverrides", "prod", "resolutions"],
204
- filter: ".",
205
196
  indent: " ",
206
197
  semverGroups: [],
207
- semverRange: "",
208
198
  sortAz: ["contributors", "dependencies", "devDependencies", "keywords", "peerDependencies", "resolutions", "scripts"],
209
199
  sortFirst: ["name", "version", "description", "author"],
210
- versionGroups: []
200
+ versionGroups: [
201
+ /**
202
+ * Exclude peer and local dependencies from version checks to avoid
203
+ * updating peer dependencies to the latest version (e.g. React >=16.8.0).
204
+ */
205
+ {
206
+ label: "Ignore peer and local dependencies",
207
+ dependencyTypes: ["peer", "local"],
208
+ isIgnored: true
209
+ }]
211
210
  };
212
211
  var syncpackConfig = configCreator(defaultConfig6);
213
212
 
@@ -219,7 +218,7 @@ var typescriptConfig_exports = {};
219
218
  __export(typescriptConfig_exports, {
220
219
  target: () => target
221
220
  });
222
- var target = "es2023";
221
+ var target = "es2024";
223
222
 
224
223
  // src/tsup.ts
225
224
  var formatjsPlugin = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/config",
3
- "version": "1.36.0",
3
+ "version": "1.37.5",
4
4
  "description": "Default configuration for packages.",
5
5
  "license": "MIT",
6
6
  "author": "ttoss",
@@ -22,25 +22,25 @@
22
22
  "sideEffects": false,
23
23
  "typings": "dist/index.d.ts",
24
24
  "dependencies": {
25
- "@babel/core": "^7.27.4",
26
- "@babel/plugin-proposal-decorators": "^7.27.1",
27
- "@babel/preset-env": "^7.27.2",
28
- "@babel/preset-react": "^7.27.1",
29
- "@babel/preset-typescript": "^7.27.1",
30
- "@commitlint/config-conventional": "^19.8.1",
31
- "@formatjs/ts-transformer": "^3.14.0",
32
- "babel-plugin-formatjs": "^10.5.39",
25
+ "@babel/core": "^7.29.0",
26
+ "@babel/plugin-proposal-decorators": "^7.29.0",
27
+ "@babel/preset-env": "^7.29.2",
28
+ "@babel/preset-react": "^7.28.5",
29
+ "@babel/preset-typescript": "^7.28.5",
30
+ "@commitlint/config-conventional": "^20.5.0",
31
+ "@formatjs/ts-transformer": "^4.4.3",
32
+ "babel-plugin-formatjs": "^11.3.2",
33
33
  "babel-plugin-transform-import-meta": "^2.3.3",
34
34
  "deepmerge": "^4.3.1",
35
35
  "identity-obj-proxy": "^3.0.0",
36
36
  "prettier-package-json": "^2.8.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@jest/types": "^30.0.1",
39
+ "@jest/types": "^30.3.0",
40
40
  "@types/jest": "^30.0.0",
41
- "@types/node": "^24.10.13",
42
- "esbuild": "^0.27.0",
43
- "jest": "^30.2.0",
41
+ "@types/node": "^24.12.0",
42
+ "esbuild": "^0.27.4",
43
+ "jest": "^30.3.0",
44
44
  "tsup": "^8.5.1"
45
45
  },
46
46
  "keywords": [],
package/tsconfig.json CHANGED
@@ -17,10 +17,15 @@
17
17
  "moduleResolution": "Bundler",
18
18
  "module": "ESNext",
19
19
  /**
20
- * `target` to `es2023` because Node.js 20 supports ES2023 features.
21
- * https://node.green/#ES2023
20
+ * Explicitly include `node` types because TypeScript 6 changed the default
21
+ * `types` to `[]`, no longer auto-including installed `@types/*` packages.
22
22
  */
23
- "target": "es2023",
23
+ "types": ["node"],
24
+ /**
25
+ * `target` to `es2024` because Node.js 24 supports ES2024 features.
26
+ * https://node.green/#ES2024
27
+ */
28
+ "target": "es2024",
24
29
  "declaration": true,
25
30
  "sourceMap": true,
26
31
  "strict": true,
@@ -49,7 +54,13 @@
49
54
  * property initializer.
50
55
  * https://chatgpt.com/share/66f55e86-c3ec-8002-bf29-ba18c3af3d0e
51
56
  */
52
- "strictPropertyInitialization": true
57
+ "strictPropertyInitialization": true,
58
+ /**
59
+ * Set `ignoreDeprecations` to suppress errors for deprecated options that
60
+ * are injected by build tools (e.g., tsup injects `baseUrl`).
61
+ * These deprecations will stop functioning in TypeScript 7.0.
62
+ */
63
+ "ignoreDeprecations": "6.0"
53
64
  },
54
65
  "exclude": ["tests"]
55
66
  }
@@ -1,3 +1,6 @@
1
1
  {
2
- "extends": "./tsconfig.json"
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "types": ["node", "jest"]
5
+ }
3
6
  }