Skip to content

Discovering .ts files under node_modules resulting in them being compiled (2) #22228

Closed
@evil-shrike

Description

@evil-shrike

There's the issue #6964. It's closed and "fixed".
But I still have this problem in TS 2.7.1

There's an app with the following tsconfig.json which has a dependency to a lib. The lib is installed via npm into node_modules. When the app is being compiled then lib is compiled as well.
It's undesirable.

{
    "extends": "./node_modules/@croc/webclient/tsconfig",
    "include": [
        "src/**/*.ts",
        "src/**/.*.ts"
    ]
}

As you can see the tsconfig includes all app files but no lib's files. So I don't want the lib in node_modules was compiled.

Expected behavior:
No compilation happen for lib files inside node_modules.

Actual behavior:
Compilation does happen.

Metadata

Metadata

Assignees

No one assigned

    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