Title: package.json diagnostics in `--module nodenext` · Issue #46861 · microsoft/TypeScript · GitHub
Open Graph Title: package.json diagnostics in `--module nodenext` · Issue #46861 · microsoft/TypeScript
X Title: package.json diagnostics in `--module nodenext` · Issue #46861 · microsoft/TypeScript
Description: In #46334, it became clear that it’s very easy to mess up writing export maps that will work correctly with --module nodenext. We would like to explore issuing diagnostics in package.json files in two scenarios (only in node12 and nodene...
Open Graph Description: In #46334, it became clear that it’s very easy to mess up writing export maps that will work correctly with --module nodenext. We would like to explore issuing diagnostics in package.json files in ...
X Description: In #46334, it became clear that it’s very easy to mess up writing export maps that will work correctly with --module nodenext. We would like to explore issuing diagnostics in package.json files in ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/46861
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"package.json diagnostics in `--module nodenext`","articleBody":"In #46334, it became clear that it’s very easy to mess up writing export maps that will work correctly with `--module nodenext`. We would like to explore issuing diagnostics in package.json files in two scenarios (only in `node12` and `nodenext`):\r\n\r\n- A `types` condition is not the first condition in an export map\r\n- A `default` condition is not the last condition in an export map\r\n\r\nVS Code currently doesn’t synchronize unsaved changes to package.json files to TS Server (same as tsconfig.json files), so sending errors to the editor can only be done after a manual save. After getting the diagnostics in tsc, we’ll have to evaluate whether the experience in the editor is acceptable, or if we need to start syncing live changes to TS Server.","author":{"url":"https://github.com/andrewbranch","@type":"Person","name":"andrewbranch"},"datePublished":"2021-11-18T22:51:06Z","url":"https://github.com/microsoft/TypeScript/issues/46861"}
| 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:fbc981c7-8463-85cd-3571-d9c149e6a089 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A48E:34CAB:222BC10:2BA437A:6B0183A7 |
| html-safe-nonce | 0e25adfb327060a5d992b9f1647a6ee8c3f868dad638e8d7b292ff0064a65cf1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDhFOjM0Q0FCOjIyMkJDMTA6MkJBNDM3QTo2QjAxODNBNyIsInZpc2l0b3JfaWQiOiIzMTIxOTMyMzE5NjA3MzI1NjA4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 42d80a151380c4a97092ac7e376a2ae6b7f8a2a4aed8014258209e6dd8d0a5df |
| hovercard-subject-tag | issue:1057923024 |
| 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/46861/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3fe8423da42778602f733d0b9944eeca2367f21ec9f094df1e94987f7fdc7b6c/microsoft/TypeScript/issues/46861 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3fe8423da42778602f733d0b9944eeca2367f21ec9f094df1e94987f7fdc7b6c/microsoft/TypeScript/issues/46861 |
| og:image:alt | In #46334, it became clear that it’s very easy to mess up writing export maps that will work correctly with --module nodenext. We would like to explore issuing diagnostics in package.json files in ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andrewbranch |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width