To accomplish this task, you cannot do it directly. You must incorporate a file named tsd.json
that includes the references to the typescript definition files you wish to utilize. There are several commands available to automatically retrieve all necessary information from your tsd file (including methods to automate this process using Grunt or Gulp).
If needed, you can build up your tsd.json
file. Consult the documentation at Link to bundled definitions.
Link to bundled definitions
TSD provides support for discovery and linking of definitions from packages that have been installed using node or bower.
Execute the link command and your tsd.d.ts file will be updated with paths to the files located in the node_modules or bower_modules directories.
$ tsd link
This functionality scans the package.json and bower.json files for a typescript element. This element should contain a definition or definitions sub-element that specifies the relative paths to .d.ts files:
The documentation provided is robust with examples scattered throughout. Take a look and inform us if you encounter any missing information or encounter a specific issue while attempting to perform a task.
Edit - Typings
According to @JoeClay (refer to comments below), TSD has been deprecated. Consider using Typings as an alternative. There is a detailed section available on transitioning from TSD to Typings at this link if you have already integrated TSD into your application. Otherwise, it is recommended to skip TSD and begin using Typings from the outset.
In regard to your initial inquiry, it appears that you still require a typings.json
file that includes references to your typescript (.d.ts
) dependencies.