-
Notifications
You must be signed in to change notification settings - Fork 135
Make tsd.json go away and become a section of tsconfig.json #200
Comments
copied from #199
|
Curious what the roadmap is for this to happen? |
I'm focused on stabilizing the TSD for now. I confess, I have not started to look into this issue, but I will do it soon. All your suggestions are most welcome! :) |
We appreciate your work, thanks. I think long term it would be nice to have tsd's json become part of tsconfig.json. We have so many files these days, that it would be easier to have all of TS in one place. It's not kiling me in any way, but I think a section in tsconfig.json named tsd could just house what is in tsd.json today. perhaps a v1 breaking change // cc @jonathandturner |
I dont think thats a good idea. I write vanilla javascript, but use tsd to install definitions for frameworks I use so I get IntelliSense for them in Visual Studio Code. Since I don't write TypeScript, I don't have a tsconfig.json... |
@felixfbecker Thanks for the feedback! I've implemented the future version using As a side note, the other issue I found is that |
I don't think it would cause any other problems beside being weird. I also have a Another option would be to simply read the npm.json / bower.json and if available, installing the correct definition versions of the libraries installed (don't know if that's possible). Besides that, I really love how tsd allows me to get IntelliSense for foreign libraries, it's really great. I just wish it would work more like the other package managers, with semver, uninstall command and so on. |
@felixfbecker Thanks for the quick response. It is definitely a little weird, but it's not uncommon in the As for automatically resolving from existing packages, definitely going to exist in the near future so keep an eye out 😄 It will be as frictionless as possible and loosely based on someone else's comments here ( |
Please don't do this; a separate file is easier to work with, makes it clear that the config exists and what it's for, and is more in line with what other tools do.
DefinitelyTyped and TypeScript are separate things so it's reasonable for them to have separate configs. |
@slikts What about it makes it easier to work with? Ideally, you shouldn't be working with |
Removing or adding a file is easier than editing JSON. A separate config file's purpose is clear in all contexts; for example, there's no question about what's being changed if |
@slikts Thanks for your input, it's definitely all valid. In fact, your comment on |
2 files to manage typescript seems silly. Might be worth merging these.
The text was updated successfully, but these errors were encountered: