@foray1010/tsconfig 10.0.0 → 11.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 +17 -0
- package/README.md +43 -21
- package/package.json +4 -4
- package/{tsconfig.json → tsconfig.base.json} +4 -7
- package/tsconfig.browser.json +6 -0
- package/tsconfig.library.json +9 -0
- package/tsconfig.react.json +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
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
|
+
## [11.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/tsconfig@10.0.0...@foray1010/tsconfig@11.0.0) (2023-03-23)
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
- require node `^16.14.0 || >=18.12.0`
|
|
11
|
+
- **tsconfig:** require typescript v5
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
- support ES2021 ([40a0e28](https://github.com/foray1010/common-presets/commit/40a0e282c937825dfca1969c30ffc26e5bd2a27c))
|
|
16
|
+
- **tsconfig:** require typescript v5 ([ef8b2e7](https://github.com/foray1010/common-presets/commit/ef8b2e72d2d96be4f41ba980fa79118c9e1bff47))
|
|
17
|
+
- **tsconfig:** split tsconfig to mutliple files for different scenarios ([fcaf3ae](https://github.com/foray1010/common-presets/commit/fcaf3aee3f9f1851439d01631c2e8584bde685ba))
|
|
18
|
+
|
|
19
|
+
### Miscellaneous Chores
|
|
20
|
+
|
|
21
|
+
- require node `^16.14.0 || >=18.12.0` ([5baf6eb](https://github.com/foray1010/common-presets/commit/5baf6eba6d42958596c130724a502c59fe1a4e83))
|
|
22
|
+
|
|
6
23
|
## [10.0.0](https://github.com/foray1010/common-presets/compare/@foray1010/tsconfig@9.1.0...@foray1010/tsconfig@10.0.0) (2022-11-07)
|
|
7
24
|
|
|
8
25
|
### ⚠ BREAKING CHANGES
|
package/README.md
CHANGED
|
@@ -10,25 +10,47 @@ If you need to compile TypeScript, use [@foray1010/babel-preset](../babel-preset
|
|
|
10
10
|
|
|
11
11
|
2. Create an `tsconfig.json` in the project root
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
13
|
+
- For Node.js app (type checking only):
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
18
|
+
"extends": "@foray1010/tsconfig/tsconfig.base.json"
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
- For general frontend application (type checking only):
|
|
23
|
+
|
|
24
|
+
```json
|
|
25
|
+
{
|
|
26
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
27
|
+
"extends": [
|
|
28
|
+
"@foray1010/tsconfig/tsconfig.base.json",
|
|
29
|
+
"@foray1010/tsconfig/tsconfig.browser.json"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
- For react.js application (type checking only):
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
39
|
+
"extends": [
|
|
40
|
+
"@foray1010/tsconfig/tsconfig.base.json",
|
|
41
|
+
"@foray1010/tsconfig/tsconfig.react.json"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
- For library (type checking and generate typings):
|
|
47
|
+
|
|
48
|
+
```json
|
|
49
|
+
{
|
|
50
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
51
|
+
"extends": [
|
|
52
|
+
"@foray1010/tsconfig/tsconfig.base.json",
|
|
53
|
+
"@foray1010/tsconfig/tsconfig.library.json"
|
|
54
|
+
]
|
|
32
55
|
}
|
|
33
|
-
|
|
34
|
-
```
|
|
56
|
+
```
|
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": "11.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": {
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"type:check": "echo 'Skipped: non-ts package'"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"typescript": "^
|
|
21
|
+
"typescript": "^5.0.2"
|
|
22
22
|
},
|
|
23
23
|
"engines": {
|
|
24
|
-
"node": "^
|
|
24
|
+
"node": "^16.14.0 || >=18.12.0"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "ee22f073ee1702354310091b7c3a5ec18a930bec"
|
|
30
30
|
}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
3
|
"compilerOptions": {
|
|
4
|
-
"declaration": true,
|
|
5
4
|
"esModuleInterop": true,
|
|
6
5
|
"exactOptionalPropertyTypes": true,
|
|
7
|
-
"forceConsistentCasingInFileNames": true,
|
|
8
|
-
"importsNotUsedAsValues": "error",
|
|
9
6
|
"incremental": true,
|
|
10
7
|
"isolatedModules": true,
|
|
11
|
-
"
|
|
12
|
-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
8
|
+
"lib": ["ES2021"],
|
|
13
9
|
"module": "Node16",
|
|
14
10
|
"moduleDetection": "force",
|
|
15
11
|
"moduleResolution": "Node",
|
|
@@ -21,8 +17,9 @@
|
|
|
21
17
|
"resolveJsonModule": true,
|
|
22
18
|
"skipLibCheck": true,
|
|
23
19
|
"strict": true,
|
|
24
|
-
"target": "
|
|
25
|
-
"useDefineForClassFields": true
|
|
20
|
+
"target": "ES2021",
|
|
21
|
+
"useDefineForClassFields": true,
|
|
22
|
+
"verbatimModuleSyntax": true
|
|
26
23
|
},
|
|
27
24
|
"ts-node": {
|
|
28
25
|
"compilerOptions": {
|