@theholocron/tsconfig 4.2.2 → 5.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/README.md +5 -5
- package/nextjs/tsconfig.json +3 -3
- package/node-next/tsconfig.json +1 -2
- package/package.json +9 -4
package/README.md
CHANGED
|
@@ -16,17 +16,17 @@ In your project `tsconfig.json`, extend one of the four base configurations:
|
|
|
16
16
|
|
|
17
17
|
```json
|
|
18
18
|
{
|
|
19
|
-
"extends": "@theholocron/tsconfig/nextjs
|
|
19
|
+
"extends": "@theholocron/tsconfig/nextjs"
|
|
20
20
|
}
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
### Node (LTS / current)
|
|
24
24
|
|
|
25
|
-
Targets the latest Node.js LTS features:
|
|
25
|
+
Targets the latest Node.js LTS features via ESNext:
|
|
26
26
|
|
|
27
27
|
```json
|
|
28
28
|
{
|
|
29
|
-
"extends": "@theholocron/tsconfig/node-next
|
|
29
|
+
"extends": "@theholocron/tsconfig/node-next"
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -36,7 +36,7 @@ For projects that must support Node 18:
|
|
|
36
36
|
|
|
37
37
|
```json
|
|
38
38
|
{
|
|
39
|
-
"extends": "@theholocron/tsconfig/node18
|
|
39
|
+
"extends": "@theholocron/tsconfig/node18"
|
|
40
40
|
}
|
|
41
41
|
```
|
|
42
42
|
|
|
@@ -46,7 +46,7 @@ For projects still on Node 14:
|
|
|
46
46
|
|
|
47
47
|
```json
|
|
48
48
|
{
|
|
49
|
-
"extends": "@theholocron/tsconfig/node14
|
|
49
|
+
"extends": "@theholocron/tsconfig/node14"
|
|
50
50
|
}
|
|
51
51
|
```
|
|
52
52
|
|
package/nextjs/tsconfig.json
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
"display": "Next.js",
|
|
4
4
|
|
|
5
5
|
"compilerOptions": {
|
|
6
|
-
"target": "
|
|
6
|
+
"target": "ES2020",
|
|
7
7
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
8
8
|
"allowJs": true,
|
|
9
9
|
"skipLibCheck": true,
|
|
10
|
-
"strict":
|
|
10
|
+
"strict": true,
|
|
11
11
|
"forceConsistentCasingInFileNames": true,
|
|
12
12
|
"noEmit": true,
|
|
13
13
|
"esModuleInterop": true,
|
|
14
14
|
"module": "esnext",
|
|
15
|
-
"moduleResolution": "
|
|
15
|
+
"moduleResolution": "bundler",
|
|
16
16
|
"resolveJsonModule": true,
|
|
17
17
|
"isolatedModules": true,
|
|
18
18
|
"jsx": "preserve",
|
package/node-next/tsconfig.json
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/tsconfig",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"homepage": "https://github.com/theholocron/configs/tree/main/packages/
|
|
3
|
+
"version": "5.1.0",
|
|
4
|
+
"description": "TypeScript base configurations for theholocron projects.",
|
|
5
|
+
"homepage": "https://github.com/theholocron/configs/tree/main/packages/tsconfig#readme",
|
|
6
6
|
"bugs": "https://github.com/theholocron/configs/issues",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
},
|
|
11
11
|
"license": "GPL-3.0",
|
|
12
12
|
"author": "Newton Koumantzelis",
|
|
13
|
+
"exports": {
|
|
14
|
+
"./nextjs": "./nextjs/tsconfig.json",
|
|
15
|
+
"./node-next": "./node-next/tsconfig.json",
|
|
16
|
+
"./node18": "./node18/tsconfig.json",
|
|
17
|
+
"./node14": "./node14/tsconfig.json"
|
|
18
|
+
},
|
|
13
19
|
"files": [
|
|
14
20
|
"nextjs/tsconfig.json",
|
|
15
21
|
"node-next/tsconfig.json",
|
|
@@ -17,7 +23,6 @@
|
|
|
17
23
|
"node18/tsconfig.json"
|
|
18
24
|
],
|
|
19
25
|
"peerDependencies": {
|
|
20
|
-
"tsc": "^2",
|
|
21
26
|
"typescript": "^5"
|
|
22
27
|
},
|
|
23
28
|
"publishConfig": {
|