I am using bower
to manage my third-party JavaScript library dependencies for a project. For example, I am using AngularJS, thus I've had to add a dependency on this in bower.json
.
I am writing my library in TypeScript. Therefore, it is necessary to have access to the typescript definitions too. Thus, I find myself having to use the tsd
package manager.
This means that the same dependency on AngularJS has to be duplicated in tsd.json
too.
This is becoming hard to manage as the number of third-party dependencies grows. It is particularly challenging to ensure that the exact same version of the dependencies are imported in bower
and tsd
, to ensure the TypeScript definitions accurately match the JavaScript files.
I'm finding this really hard to scale on a hobby project. I am assuming there's a neater solution to sovle this on an enterprise-grade project?