-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Description
I'm using the new 1.6 module loading for typings from #2338
I distribute my library with NPM and clients pick up the typings for my code magically from the path indicated by the "typings" field in the package.json
. So great! The version of the typings will always match the version of the runtime code.
But, one of my files might try to import from a namespace like 'es6-collections'. What version will I pick up, and from where? There is no "typings" in https://github.com/WebReflection/es6-collections/blob/master/package.json so I will have to have this file presented to the compiler from the command line, or in the 'files' of my user's tsconfig.json, or a tripleslash ref in the user's code.
That means I can tell users to npm install
my package, but then all my dependencies leak out when I tell them "now you need to tsd install es6-collections/es6-collections.correct-version.d.ts
" and that is not so nice.
Is there already a way to do without that extra step? I could re-distribute the es6-collections-correct-version.d.ts
in my NPM package but I don't see a way to depend on it.