check-dts icon indicating copy to clipboard operation
check-dts copied to clipboard

`tsconfig.json` exclude not respected

Open coderaiser opened this issue 3 months ago • 3 comments

Here is my config:

{
    "compilerOptions": {
        "target": "es2015",
        "skipLibCheck": true,
        "exclude": [
            "fixture/*.ts"
        ]
    }
}

when I run check-dts test/** I see lots of errors inside fixture files:

Image

How to exclude it? I want check only test directory, could you please help me?

coderaiser avatar Sep 20 '25 10:09 coderaiser

Sorry, you need to debug and suggest solution on your own. I am busy on other project.

Here is relevant code https://github.com/ai/check-dts/blob/main/check.js

ai avatar Sep 20 '25 14:09 ai

I see fileNames property: https://github.com/ai/check-dts/blob/ac6b8eea081e55156f11af253e4b7723ce3943a9/check.js#L112

But that is not valid property name for tsconfig, maybe some additional check should be added so exclude worked properly

coderaiser avatar Sep 20 '25 15:09 coderaiser

You can open this source in your node_module add console.log or call debugger.

ai avatar Sep 20 '25 15:09 ai