tsdoc icon indicating copy to clipboard operation
tsdoc copied to clipboard

Make tsdoc.json visible from upper directories

Open crystalfp opened this issue 4 years ago • 1 comments

I have a single project split in various pieces, each in a subdirectory of the project top directory. Currently, to use typedoc and eslint-plugin-tsdoc, I need to copy the configuration file tsdoc.json in each subdirectory. Is it possible to have the above mentioned tools "climb" the directory hierarchy till a tsdoc.json file is found? Thanks! mario

crystalfp avatar Nov 18 '21 07:11 crystalfp

Non nice, but solved.

I put the common tsdoc.json file in the upper project directory. Then in each subdirectory I put a tsdoc.json file with this content:

{
	"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
	"extends": ["../tsdoc.json"]
}

crystalfp avatar Nov 18 '21 08:11 crystalfp