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

Make the module compatible with TypeScript 2 / npm #2

Open
DKroot opened this issue Jun 26, 2017 · 4 comments
Open

Make the module compatible with TypeScript 2 / npm #2

DKroot opened this issue Jun 26, 2017 · 4 comments

Comments

@DKroot
Copy link

DKroot commented Jun 26, 2017

I'd very much like to use this module for client-side development, but I'm using the latest TypeScript and npm and am hesitant to introduce typings just for this.

@blakeembrey
Copy link

Welcome to our life - see microsoft/types-publisher#4.

@blakeembrey
Copy link

The hack we have been doing is adding a name and version to package.json so people can install from GitHub - feel free to submit a PR for that. For anything else, I'm not 100% sure what we can do.

There's also the issue that TypeScript didn't really have the use case where a module is both global and module (e.g. not on NPM and has the same name). I'm not really familiar with this library, but that might also be the case here if it's not the same as https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/http-status-codes/index.d.ts.

@DKroot
Copy link
Author

DKroot commented Jun 28, 2017

OK, installing in npm from GitHub could be definitely a workaround if you find it problematic to publish to npm registry. I can do a package.json update for this.

@blakeembrey
Copy link

It's not really that it's problematic, it's that it's impossible. Only Microsoft has permission and we don't. See the linked thread for more context. Feel free to update the package.json for now, but I don't see a good solution anyway since the name appears to conflict. This is just a lib function from Typings, so maybe you're after a different library?

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

2 participants