Effect CommunityEC
Effect Community17mo ago
4 replies
Jérôme MARTIN

Trouble with docgen Ignoring 'srcDir' and 'outDir' Settings in docgen.json

Hi, I am trying to use docgen and must be doing something wrong but can't see what it is. I added a docgen.json file at the root of my project:

{
    "parseCompilerOptions": "./tsconfig.check.json",
    "examplesCompilerOptions": "./tsconfig.check.json",
    "srcDir": "./esm",
    "outDir": "docs/api"
}


docgen keeps trying to look for my files in 'src' and outputing the result to 'docs'. What I put in 'srcDir' and 'outDir' in docgen.json is just ignored. The 'srcDir' field of docgen.json gets read because I get a sensible error if I pass '"srcDir": 1'. Any idea what I am doing wrong?
Was this page helpful?