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

Publish with DefinitelyTyped? #13

Closed
sbking opened this issue Jun 12, 2017 · 5 comments
Closed

Publish with DefinitelyTyped? #13

sbking opened this issue Jun 12, 2017 · 5 comments

Comments

@sbking
Copy link

sbking commented Jun 12, 2017

Are there any plans of putting these typings on DefinitelyTyped? AFAIK the typings tool is outdated, and the proper way to publish types now is with DefinitelyTyped. That would allow npm install --save-dev @types/mysql2 .

@unional
Copy link

unional commented Jun 12, 2017

waiting for microsoft/types-publisher#4

@sbking
Copy link
Author

sbking commented Jun 12, 2017

@unional So is there any option that doesn't include adding typings as a dependency?

@unional
Copy link

unional commented Jun 12, 2017

One way is to change this repo to types/mysql2 and update the package.json so that consumer can do:

npm install types/mysql2

@T4cC0re
Copy link

T4cC0re commented Jul 15, 2017

Workaround: npm i -S types/npm-mysql2
Then you can use it like you would. It'll also save in package.json as "@types/mysql2": "github:types/npm-mysql2". Though, I would still prefer the @types/mysql2 install-method

@felixfbecker
Copy link
Contributor

I've made some improvements to make that easier and added it to the README

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

4 participants