Title: Types for typescript are not correctly referenced · Issue #143 · WebReflection/uhtml · GitHub
Open Graph Title: Types for typescript are not correctly referenced · Issue #143 · WebReflection/uhtml
X Title: Types for typescript are not correctly referenced · Issue #143 · WebReflection/uhtml
Description: Hi there, I've just migrated to uHtml 4.7.0, and it seems that the package.json has a wrong exports for types definition (for usage with typescript). "exports": { ".": { "import": "./esm/index.js", "types": { "require": "./types/index.d....
Open Graph Description: Hi there, I've just migrated to uHtml 4.7.0, and it seems that the package.json has a wrong exports for types definition (for usage with typescript). "exports": { ".": { "import": "./esm/index.js",...
X Description: Hi there, I've just migrated to uHtml 4.7.0, and it seems that the package.json has a wrong exports for types definition (for usage with typescript). "exports": { ".": { &qu...
Opengraph URL: https://github.com/WebReflection/uhtml/issues/143
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Types for typescript are not correctly referenced","articleBody":"Hi there,\r\n\r\nI've just migrated to uHtml 4.7.0, and it seems that the package.json has a wrong exports for types definition (for usage with typescript).\r\n```\r\n\"exports\": {\r\n \".\": {\r\n \"import\": \"./esm/index.js\",\r\n \"types\": {\r\n \"require\": \"./types/index.d.cts\",\r\n \"default\": \"./types/index.d.mts\"\r\n },\r\n \"default\": \"./cjs/index.js\"\r\n },\r\n...\r\n...\r\n```\r\n\r\nActually there is no mts of cts file. I think this should be repalced with \r\n\r\n```\r\n \".\": {\r\n \"import\": \"./esm/index.js\",\r\n \"types\": \"./types/index.d.ts\",\r\n \"default\": \"./cjs/index.js\"\r\n },\r\n...\r\n...\r\n```\r\n\r\nIs it ok for you if I open a PR for this?\r\nThanks.","author":{"url":"https://github.com/remyguillaume","@type":"Person","name":"remyguillaume"},"datePublished":"2025-01-09T09:49:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/143/uhtml/issues/143"}
| 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:f351af9b-71d8-076c-bdd7-ef3b0cfb55d2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E492:5C4F6:1348BDA:193727D:696D7179 |
| html-safe-nonce | 41afad2ecc093dd83b146023b121efb86b5b47ccff2d47db8c5fb450cf986fe9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDkyOjVDNEY2OjEzNDhCREE6MTkzNzI3RDo2OTZENzE3OSIsInZpc2l0b3JfaWQiOiI4NTk1OTQzNTAyMTIzOTg3MzIxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a95886cae99a73ce97c8fb51e52c5af5f07c2bfd24df33b5629e9a492f2cbea1 |
| hovercard-subject-tag | issue:2777339821 |
| 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/WebReflection/uhtml/143/issue_layout |
| twitter:image | https://opengraph.githubassets.com/43ebc1b9d8bbc4779b6f9184bc7d02a5104d4e230e80785a604777920800a516/WebReflection/uhtml/issues/143 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/43ebc1b9d8bbc4779b6f9184bc7d02a5104d4e230e80785a604777920800a516/WebReflection/uhtml/issues/143 |
| og:image:alt | Hi there, I've just migrated to uHtml 4.7.0, and it seems that the package.json has a wrong exports for types definition (for usage with typescript). "exports": { ".": { "import": "./esm/index.js",... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | remyguillaume |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064 |
| turbo-cache-control | no-preview |
| go-import | github.com/WebReflection/uhtml git https://github.com/WebReflection/uhtml.git |
| octolytics-dimension-user_id | 85749 |
| octolytics-dimension-user_login | WebReflection |
| octolytics-dimension-repository_id | 240760595 |
| octolytics-dimension-repository_nwo | WebReflection/uhtml |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 240760595 |
| octolytics-dimension-repository_network_root_nwo | WebReflection/uhtml |
| 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 | 7e5ae23c70136152637ceee8d6faceb35596ec46 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width