Skip to content

Commit 3324521

Browse files
authored
Note that references are not inherited
microsoft/TypeScript#27098
1 parent 7825292 commit 3324521

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pages/tutorials/tsconfig.json.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ If you use an `import "foo"` statement, for instance, TypeScript may still look
143143

144144
## Configuration inheritance with `extends`
145145

146-
A `tsconfig.json` file can inherit configurations from another file using the `extends` property.
146+
A `tsconfig.json` file can inherit partial configurations from another file using the `extends` property.
147+
Currently, the only top-level property that is excluded from inheritance is `references`.
147148

148149
The `extends` is a top-level property in `tsconfig.json` (alongside `compilerOptions`, `files`, `include`, and `exclude`).
149150
`extends`' value is a string containing a path to another configuration file to inherit from.
@@ -154,7 +155,7 @@ If a circularity is encountered, we report an error.
154155

155156
`files`, `include` and `exclude` from the inheriting config file *overwrite* those from the base config file.
156157

157-
All relative paths found in the configuration file will be resolved relative to the configuration file they originated in.
158+
Properties with relative paths found in the configuration file, which aren't excluded from inheritance, will be resolved relative to the configuration file they originated in.
158159

159160
For example:
160161

0 commit comments

Comments
 (0)