Skip to content

Commit 8feec52

Browse files
author
Ken Howard
committed
Improved note on when to use exclude property.
1 parent 6b855d7 commit 8feec52

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

docs/tsconfig.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,14 @@ i.e. an empty JSON file at the *root* of your project :heart: This will be suffi
2727
### exclude
2828
These references are relative to the `tsconfig.json` path. This does not accept glob formatting.
2929

30-
NOTE: `files` can override the `exclude` array. It's recommended to use either `exclude` & `files` -- OR -- `filesGlob`, not both. `filesGlob` solves the exclude problem as long as your team is exclusively using atom-typescript.
30+
NOTE: `exclude` should not be used when `files` or `filesGlob` are in use. The presence of the `files` property takes presedence over the `exclude` property. [Read about it in the TypeScript wiki](https://github.com/Microsoft/TypeScript/wiki/tsconfig.json#details).
3131

3232
```json
3333
{
3434
"exclude": [
3535
"node_modules",
3636
"bower_components",
3737
"lib/libFileToExclude.d.ts"
38-
],
39-
"files": [
40-
"js/script.ts",
41-
"typings/tsd.d.ts"
4238
]
4339
}
4440
```

0 commit comments

Comments
 (0)