Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include "typings" field in package.json #913

Open
rolandjitsu opened this issue Nov 30, 2015 · 2 comments
Open

include "typings" field in package.json #913

rolandjitsu opened this issue Nov 30, 2015 · 2 comments

Comments

@rolandjitsu
Copy link

Now that the TS compiler supports module resolution via node, it would be nice not to use TSD to install the typing but instead have them included with the npm package.

@shakyShane
Copy link
Contributor

Can you explain what I need to do to support this? I'm more than happy to :)

@dsebastien
Copy link

The typings file should be in the npm package and the package.json file should contain a "typings" property pointing to the .d.ts file: https://github.com/Microsoft/TypeScript/wiki/Typings-for-npm-packages

With that, TypeScript is now capable of finding its way to the type information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants