-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Add ability to generate ambient declarations for external commonjs modules #1236
Comments
This is related to, if not a duplicate of #575 Also I completely agree with emphasis. This is by far the biggest road block when trying to make use of Typescript within our organization. |
Absolutely 👍 The dts-bundle package (an admitted kludge) is the only way I was able to find to make commonjs modules resusable across projects. It was painful enough that I just switched to internal modules and shoved all the dependency management into my build script. Would be awesome to have commonjs modules "just work". |
I believe this is a duplicate of, or very related to #17 We're using dts-bundle to get around this, it'd be great to have compiler support. |
+1. We really really really need this. |
+1. It would be really useful. |
👍
but, now we got below error message.
|
+1 |
Now that the compiler supports node module resolution this can be closed as far as I am concerned 🌹 |
If @basarat says it's good it's good with me too 😃 |
@basarat can you show how this can be done? I want to do the very thing the error is saying cannot be done. What is the alternative? |
+1 |
Badly needed for commonjs modules where you are more likely to ship JS code plus a generated
.d.ts
file.From codeplex : https://typescript.codeplex.com/workitem/2080
The text was updated successfully, but these errors were encountered: