tsd
tsd copied to clipboard
query definitions from multiple repo
I'm using tsd to manage typescript definition files across a few projects. Right now it works perfectly by changing the repo field in the tsd.json file.
However, I would like for queries to check first in my project then if nothing is found, go look in another and possibly another.
I thought the repo field could be an array (or a simple string too) like
{
"version": "v4",
"repo": ["owner1/project","owner2/project"],
"ref": "master",
"path": "typings",
"bundle": "typings/tsd.d.ts"
}
this way it would check the first repo then the next.
Finally I'm using 2 config file and I specify which one to use. Is there a better way to handle this ?
At this point pretty much everything in here assumes a single repo+ref. The idea was for private/in-progress definitions to use your own fork of DT (and use git for update management). And like you noted, using different configs is also an option if it works for you.
It has be requested a few times to have proper multiple repo support, it is definitely on the list.
+1 for multi repo support
+1 this would be very useful
+1 !!! Very useful
:+1: