Title: Can I package my dependencies typings in a way that snapshots the version? · Issue #5097 · microsoft/TypeScript · GitHub
Open Graph Title: Can I package my dependencies typings in a way that snapshots the version? · Issue #5097 · microsoft/TypeScript
X Title: Can I package my dependencies typings in a way that snapshots the version? · Issue #5097 · microsoft/TypeScript
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 ...
Open Graph 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 ...
X 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&q...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/5097
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Can I package my dependencies typings in a way that snapshots the version?","articleBody":"I'm using the new 1.6 module loading for typings from https://github.com/Microsoft/TypeScript/issues/2338\n\nI 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.\n\nBut, 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.\n\nThat 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.\n\nIs 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.\n","author":{"url":"https://github.com/alexeagle","@type":"Person","name":"alexeagle"},"datePublished":"2015-10-03T19:11:48Z","url":"https://github.com/microsoft/TypeScript/issues/5097"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:04b1cf59-8e49-1f7f-139f-d7580a7112d5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A1C6:26ECEB:1378C5B:18E48DF:6B01129E |
| html-safe-nonce | 8bea8fe1e0e524da3bd2cf4788adfd8caa5b2f76ebe61e8959fb0f85425100c1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUM2OjI2RUNFQjoxMzc4QzVCOjE4RTQ4REY6NkIwMTEyOUUiLCJ2aXNpdG9yX2lkIjoiNDQxMTYzMDQyOTMwNDU5MTAwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d63fe239a81ffee0fb5fe56f0485335ed6733e244e67b4af08dbb2a6bbc39e21 |
| hovercard-subject-tag | issue:109640119 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/5097/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bb582d216c9dc48e916f6b1a86e6c742df44a33f8358d75bb76bc61f37947dcb/microsoft/TypeScript/issues/5097 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bb582d216c9dc48e916f6b1a86e6c742df44a33f8358d75bb76bc61f37947dcb/microsoft/TypeScript/issues/5097 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alexeagle |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width