tsd icon indicating copy to clipboard operation
tsd copied to clipboard

query definitions from multiple repo

Open Cellule opened this issue 11 years ago • 6 comments
trafficstars

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.

Cellule avatar Oct 10 '14 04:10 Cellule

Finally I'm using 2 config file and I specify which one to use. Is there a better way to handle this ?

Cellule avatar Oct 12 '14 04:10 Cellule

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.

Bartvds avatar Oct 22 '14 19:10 Bartvds

+1 for multi repo support

tiriana avatar Apr 02 '15 16:04 tiriana

+1 this would be very useful

wojciak avatar Apr 02 '15 16:04 wojciak

+1 !!! Very useful

ghost avatar Jul 20 '15 20:07 ghost

:+1:

reverofevil avatar Jan 18 '16 20:01 reverofevil