You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
#4913#5269#4166 and #5537 it was mentioned in #5657 that there is further movement. I think the issue is so spread out that it was an effort to consolidate it. #5537 is likely to be the central ticket that solves this meta problem.
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 totsd 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.The text was updated successfully, but these errors were encountered: