@apitree.cz/ts-config 0.4.7 → 0.4.8
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 +9 -26
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,9 +46,7 @@ Suitable for React SPAs.
|
|
|
46
46
|
```json
|
|
47
47
|
{
|
|
48
48
|
"extends": "@apitree.cz/ts-config/app",
|
|
49
|
-
"
|
|
50
|
-
"exclude": ["build", "node_modules"],
|
|
51
|
-
"references": []
|
|
49
|
+
"exclude": ["build", "node_modules"]
|
|
52
50
|
}
|
|
53
51
|
```
|
|
54
52
|
|
|
@@ -59,9 +57,7 @@ Suitable for distributable `npm` packages (framework-agnostic).
|
|
|
59
57
|
```json
|
|
60
58
|
{
|
|
61
59
|
"extends": "@apitree.cz/ts-config/library",
|
|
62
|
-
"
|
|
63
|
-
"exclude": ["dist", "node_modules"],
|
|
64
|
-
"references": []
|
|
60
|
+
"exclude": ["dist", "node_modules"]
|
|
65
61
|
}
|
|
66
62
|
```
|
|
67
63
|
|
|
@@ -74,9 +70,7 @@ In order for WebStorm to correctly resolve paths for internal libraries in monor
|
|
|
74
70
|
```json
|
|
75
71
|
{
|
|
76
72
|
"extends": "@apitree.cz/ts-config/library",
|
|
77
|
-
"
|
|
78
|
-
"exclude": ["dist", "node_modules"],
|
|
79
|
-
"references": []
|
|
73
|
+
"exclude": ["dist", "node_modules"]
|
|
80
74
|
}
|
|
81
75
|
```
|
|
82
76
|
|
|
@@ -88,10 +82,7 @@ In order for WebStorm to correctly resolve paths for internal libraries in monor
|
|
|
88
82
|
"compilerOptions": {
|
|
89
83
|
"rootDir": "./src",
|
|
90
84
|
"outDir": "./dist"
|
|
91
|
-
}
|
|
92
|
-
"include": ["./src"],
|
|
93
|
-
"files": [],
|
|
94
|
-
"references": []
|
|
85
|
+
}
|
|
95
86
|
}
|
|
96
87
|
```
|
|
97
88
|
|
|
@@ -103,8 +94,7 @@ In order for WebStorm to correctly resolve paths for internal libraries in monor
|
|
|
103
94
|
{
|
|
104
95
|
"extends": "./tsconfig.json",
|
|
105
96
|
"compilerOptions": { "noEmit": false },
|
|
106
|
-
"
|
|
107
|
-
"references": []
|
|
97
|
+
"include": ["./src"]
|
|
108
98
|
}
|
|
109
99
|
```
|
|
110
100
|
|
|
@@ -121,8 +111,6 @@ If your package also contains other non-src directories (e.g. `tests`, `scripts`
|
|
|
121
111
|
|
|
122
112
|
This is necessary for both WebStorm and CLI `typescript-eslint` to correctly type-check and lint all files in your package.
|
|
123
113
|
|
|
124
|
-
> ⚠️ Non-src root files, such as `vitest.config.ts`, should be explicitly included in `files` array of the root `tsconfig.json`. When emitting build, omit the using `files: []` in build config (e.g. `tsconfig.build.json`).
|
|
125
|
-
|
|
126
114
|
### Node.js
|
|
127
115
|
|
|
128
116
|
Suitable for Node.js services and apps.
|
|
@@ -130,9 +118,7 @@ Suitable for Node.js services and apps.
|
|
|
130
118
|
```json
|
|
131
119
|
{
|
|
132
120
|
"extends": "@apitree.cz/ts-config/nodejs",
|
|
133
|
-
"
|
|
134
|
-
"exclude": ["build", "node_modules"],
|
|
135
|
-
"references": []
|
|
121
|
+
"exclude": ["build", "node_modules"]
|
|
136
122
|
}
|
|
137
123
|
```
|
|
138
124
|
|
|
@@ -143,9 +129,8 @@ Suitable for Next.js apps.
|
|
|
143
129
|
```json
|
|
144
130
|
{
|
|
145
131
|
"extends": "@apitree.cz/ts-config/nextjs",
|
|
146
|
-
"include": [".next/types/**/*.ts", "
|
|
147
|
-
"exclude": [".next/**/*.js", "node_modules"]
|
|
148
|
-
"references": []
|
|
132
|
+
"include": [".next/types/**/*.ts", "**/*"],
|
|
133
|
+
"exclude": [".next/**/*.js", "node_modules"]
|
|
149
134
|
}
|
|
150
135
|
```
|
|
151
136
|
|
|
@@ -156,8 +141,6 @@ Suitable for Nest.js apps.
|
|
|
156
141
|
```json
|
|
157
142
|
{
|
|
158
143
|
"extends": "@apitree.cz/ts-config/nestjs",
|
|
159
|
-
"
|
|
160
|
-
"exclude": ["build", "node_modules"],
|
|
161
|
-
"references": []
|
|
144
|
+
"exclude": ["build", "node_modules"]
|
|
162
145
|
}
|
|
163
146
|
```
|