@foray1010/tsconfig 14.0.0 → 16.0.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 +36 -0
- package/README.md +38 -39
- package/package.json +7 -4
- package/tsconfig.base.json +4 -9
- package/tsconfig.browser.json +2 -2
- package/tsconfig.library.json +2 -2
- package/tsconfig.react.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,42 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [16.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/tsconfig@15.0.0...@foray1010/tsconfig@16.0.0) (2026-05-17)
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
- **tsconfig:** exported tsconfig are now in jsonc format
|
|
11
|
+
- drop node v20 and v25
|
|
12
|
+
- **deps:** require typescript `^6.0.3`
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- support es2024
|
|
17
|
+
|
|
18
|
+
### Miscellaneous Chores
|
|
19
|
+
|
|
20
|
+
- **deps:** require typescript `^6.0.3`
|
|
21
|
+
- drop node v20 and v25
|
|
22
|
+
|
|
23
|
+
### Code Refactoring
|
|
24
|
+
|
|
25
|
+
- **tsconfig:** exported tsconfig are now in jsonc format
|
|
26
|
+
|
|
27
|
+
## [15.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/tsconfig@14.0.0...@foray1010/tsconfig@15.0.0) (2025-10-31)
|
|
28
|
+
|
|
29
|
+
### ⚠ BREAKING CHANGES
|
|
30
|
+
|
|
31
|
+
- **tsconfig:** based on @tsconfig/node20
|
|
32
|
+
- require nodejs `^20.19.0 || ^22.12.0 || >=24.11.0`
|
|
33
|
+
|
|
34
|
+
### Miscellaneous Chores
|
|
35
|
+
|
|
36
|
+
- require nodejs `^20.19.0 || ^22.12.0 || >=24.11.0` ([aae1835](https://github.com/foray1010/common-presets/commit/aae1835f9517621ddc0d71f31bda39e9163213a1))
|
|
37
|
+
|
|
38
|
+
### Code Refactoring
|
|
39
|
+
|
|
40
|
+
- **tsconfig:** based on @tsconfig/node20 ([d0f2598](https://github.com/foray1010/common-presets/commit/d0f2598e2738173ad85a1eea4b50ed3a64c1c995))
|
|
41
|
+
|
|
6
42
|
## [14.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/tsconfig@13.0.0...@foray1010/tsconfig@14.0.0) (2025-03-11)
|
|
7
43
|
|
|
8
44
|
### ⚠ BREAKING CHANGES
|
package/README.md
CHANGED
|
@@ -9,42 +9,41 @@ If you need to compile TypeScript, use [@foray1010/babel-preset](../babel-preset
|
|
|
9
9
|
1. `yarn add -DE @foray1010/tsconfig typescript`
|
|
10
10
|
|
|
11
11
|
2. Create an `tsconfig.json` in the project root
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
```
|
|
12
|
+
- For Node.js app (type checking only):
|
|
13
|
+
|
|
14
|
+
```jsonc
|
|
15
|
+
{
|
|
16
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
17
|
+
"extends": "@foray1010/tsconfig/tsconfig.base.json",
|
|
18
|
+
}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
- For general frontend application (type checking only):
|
|
22
|
+
|
|
23
|
+
```jsonc
|
|
24
|
+
{
|
|
25
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
26
|
+
"extends": "@foray1010/tsconfig/tsconfig.browser.json",
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
- For react.js application (type checking only):
|
|
31
|
+
|
|
32
|
+
```jsonc
|
|
33
|
+
{
|
|
34
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
35
|
+
"extends": "@foray1010/tsconfig/tsconfig.react.json",
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
- For library (type checking and generate typings):
|
|
40
|
+
|
|
41
|
+
```jsonc
|
|
42
|
+
{
|
|
43
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
44
|
+
"extends": [
|
|
45
|
+
"@foray1010/tsconfig/tsconfig.base.json",
|
|
46
|
+
"@foray1010/tsconfig/tsconfig.library.json",
|
|
47
|
+
],
|
|
48
|
+
}
|
|
49
|
+
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@foray1010/tsconfig",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "16.0.0",
|
|
5
5
|
"homepage": "https://github.com/foray1010/common-presets/tree/master/packages/tsconfig#readme",
|
|
6
6
|
"bugs": "https://github.com/foray1010/common-presets/issues",
|
|
7
7
|
"repository": {
|
|
@@ -17,14 +17,17 @@
|
|
|
17
17
|
"scripts": {
|
|
18
18
|
"type:check": "echo 'Skipped: non-ts package'"
|
|
19
19
|
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@tsconfig/node22": "^22.0.5"
|
|
22
|
+
},
|
|
20
23
|
"peerDependencies": {
|
|
21
|
-
"typescript": "^
|
|
24
|
+
"typescript": "^6.0.3"
|
|
22
25
|
},
|
|
23
26
|
"engines": {
|
|
24
|
-
"node": "^
|
|
27
|
+
"node": "^22.12.0 || ^24.11.0 || >=26"
|
|
25
28
|
},
|
|
26
29
|
"publishConfig": {
|
|
27
30
|
"access": "public"
|
|
28
31
|
},
|
|
29
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "b0dcdf4522afb97a5ee7088c20299aad17738056"
|
|
30
33
|
}
|
package/tsconfig.base.json
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"extends": "@tsconfig/node22/tsconfig.json",
|
|
3
4
|
"compilerOptions": {
|
|
4
5
|
"erasableSyntaxOnly": true,
|
|
5
|
-
"esModuleInterop": true,
|
|
6
6
|
"exactOptionalPropertyTypes": true,
|
|
7
7
|
"incremental": true,
|
|
8
|
-
"
|
|
9
|
-
"module": "Node18",
|
|
8
|
+
"module": "Node20",
|
|
10
9
|
"moduleDetection": "force",
|
|
11
|
-
"moduleResolution": "Node16",
|
|
12
10
|
"noEmit": true,
|
|
13
11
|
"noEmitOnError": true,
|
|
14
12
|
"noImplicitOverride": true,
|
|
@@ -16,10 +14,7 @@
|
|
|
16
14
|
"noUncheckedIndexedAccess": true,
|
|
17
15
|
"noUncheckedSideEffectImports": true,
|
|
18
16
|
"resolveJsonModule": true,
|
|
19
|
-
"skipLibCheck": true,
|
|
20
|
-
"strict": true,
|
|
21
|
-
"target": "ES2023",
|
|
22
17
|
"useDefineForClassFields": true,
|
|
23
|
-
"verbatimModuleSyntax": true
|
|
24
|
-
}
|
|
18
|
+
"verbatimModuleSyntax": true,
|
|
19
|
+
},
|
|
25
20
|
}
|
package/tsconfig.browser.json
CHANGED
package/tsconfig.library.json
CHANGED
package/tsconfig.react.json
CHANGED