You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/ts-config/README.md
+4-20Lines changed: 4 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,9 +46,7 @@ Suitable for React SPAs.
46
46
```json
47
47
{
48
48
"extends": "@apitree.cz/ts-config/app",
49
-
"include": ["**/*.js", "**/*.ts", "**/*.tsx"],
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
-
"include": ["**/*.js", "**/*.ts", "**/*.tsx"],
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
-
"include": ["**/*.js", "**/*.ts", "**/*.tsx"],
78
-
"exclude": ["dist", "node_modules"],
79
-
"references": []
73
+
"exclude": ["dist", "node_modules"]
80
74
}
81
75
```
82
76
@@ -89,9 +83,6 @@ In order for WebStorm to correctly resolve paths for internal libraries in monor
89
83
"rootDir": "./src",
90
84
"outDir": "./dist"
91
85
},
92
-
"include": ["./src"],
93
-
"files": [],
94
-
"references": []
95
86
}
96
87
```
97
88
@@ -103,8 +94,6 @@ 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
-
"files": [],
107
-
"references": []
108
97
}
109
98
```
110
99
@@ -121,18 +110,14 @@ If your package also contains other non-src directories (e.g. `tests`, `scripts`
121
110
122
111
This is necessary for both WebStorm and CLI `typescript-eslint` to correctly type-check and lint all files in your package.
123
112
124
-
> ⚠️ Non-src root files, such as `vitest.config.ts`, should be explicitly included in `files` array of `tsconfig.json`. When emitting build, omit them using `files: []` in `tsconfig.build.json`.
0 commit comments