Skip to content

Cannot extend the "typeRoots" option anymore#54515

Description

Bug Report

Adding a common "typeRoots" key on an extended configuration is not taking into account anymore. We discussed it a little bit on this PR: #51715

馃晽 Version & Regression Information

it used to work on the v 5.0.4 but it stopped working when I migrted to 5.1.3.

馃檨 Actual behavior

I have a global tsconfig json file as following:

// base.json
{
  "$schema": "https://json.schemastore.org/tsconfig",
  "compilerOptions": {
    "typeRoots": ["../../node_modules/@types"]
  }
}

And I'm using it within my monorepo on each package as following:

{
  "extends": "@slowy/config/tsconfig/base.json",
  "compilerOptions": {
    "typeRoots": [ "../../node_modules/@types"]
  },
}

However as you can see, I have to re-declare the typeRoots option which was not necessary before the library update.

馃檪 Expected behavior

Being able to extend the typeRoots configuration.

Thanks!

Metadata

Metadata

Labels

Working as IntendedThe behavior described is the intended behavior; this is not a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions