Description
Trying to generate documentation for my project I have faced with the problem that typedoc tried to generate documentation for spec.ts
files I excluded in the typedoc command in my package.json
script section:
{
"docs": "typedoc --out docs --exclude **/*.spec.ts src",
}
It worked even when I moved my tests from src
to the separate test
directory. So I assume that specifying a directory as an argument of typedoc
command does not work too.
I googled a lot, but found nothing except an old issue that did not help me at all despite I tried all of examples from there.
So I decided to look at the code, and after some investigation found that it might be a problem at this line. When I added an exclude
check from here, it compiled as it should, only for non-spec files.
I use the typedoc@0.5.5
, typescript@2.2.0-dev
.