Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extending a typescript file's "include" without overriding original settings file

Tags:

typescript

I have the following typescript file:

tsconfig.lib.json:

{
  "extends": "../../tsconfig.json",
  "exclude": [
    "src/test.ts",
    "**/*.spec.ts",
  ],
  "include": [
    "**/*.stories.ts"
  ]
}

I'd like to also include the files inside my original tsconfig.json. How can I include more files without overriding the original "include" settings?

Thanks!

like image 318
Eliezer Berlin Avatar asked Jan 29 '26 10:01

Eliezer Berlin


1 Answers

This is not supported (at least currently)

files, include and exclude from the inheriting config file overwrite those from the base config file

Docs

like image 184
Aleksey L. Avatar answered Jan 31 '26 02:01

Aleksey L.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!