-
Notifications
You must be signed in to change notification settings - Fork 956
chore: update typescript to 6.0.3 #10475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
6e18656
c3c82d7
54da7a9
9aa0a55
f3c3c17
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| // `reset-css` is a pure-CSS package with no type declarations. Under TypeScript 6 | ||
| // (moduleResolution `bundler`/node10), a side-effect `import 'reset-css'` requires a | ||
| // resolvable module/types or it errors TS2882. This ambient declaration is co-located | ||
| // with the component so it travels into the capsule and is picked up by the env's | ||
| // `include: ["**/*"]` compile (the root tsconfig ambient shim doesn't reach env builds). | ||
| declare module 'reset-css' {} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| // `reset-css` is a pure-CSS package with no type declarations. Under TypeScript 6 | ||
| // (moduleResolution `bundler`/node10), a side-effect `import 'reset-css'` requires a | ||
| // resolvable module/types or it errors TS2882. This ambient declaration is co-located | ||
| // with the component so it travels into the capsule and is picked up by the env's | ||
| // `include: ["**/*"]` compile (the root tsconfig ambient shim doesn't reach env builds). | ||
| declare module 'reset-css' {} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| // Ambient declarations for side-effect-only imports whose types ship as `.d.cts` | ||
| // (exports-map / CJS-declaration only) and therefore can't be resolved by this repo's | ||
| // root `tsc --noEmit` check under classic `moduleResolution: node` (node10). The | ||
| // component builds resolve them fine via `moduleResolution: bundler`; these stubs only | ||
| // satisfy the root type-check, which imports these packages purely for their side effects. | ||
| // Empty module bodies (not bare `declare module 'x';`) keep these side-effect-only: | ||
| // `import 'reset-css'` is valid, but an accidental value import is a type error. | ||
| declare module 'reset-css' {} | ||
| declare module '@mdx-js/loader' {} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -645,7 +645,7 @@ | |
| "tippy.js": "6.2.7", | ||
| "ts-graphviz": "^2.1.6", | ||
| "type-coverage": "2.15.1", | ||
| "typescript": "5.9.2", | ||
| "typescript": "6.0.3", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1. Ts5 still installed Even after bumping the workspace dependency policy to TypeScript 6.0.3, pnpm-lock.yaml still pins scopes/harmony/bit to typescript@5.9.2, so installs keep multiple TypeScript versions and that importer can still resolve/use TS5. This can reintroduce TS5-vs-TS6 behavior differences for any tooling executed in that workspace package (or anything resolving its local typescript). Agent Prompt
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch — this is real. Note the actual CI build already compiles under TS6 (it resolves the root-hoisted |
||
| "ua-parser-js": "0.7.40", | ||
| "uid-number": "0.0.6", | ||
| "uniqid": "5.3.0", | ||
|
|
@@ -846,7 +846,7 @@ | |
| "buffer": "6.0.3", | ||
| "process": "0.11.10", | ||
| "react-router-dom": "6.3.0", | ||
| "typescript": "5.9.2", | ||
| "typescript": "6.0.3", | ||
| // @parcel/css, lightningcss, @swc/css are used by css-minimizer-webpack-plugin | ||
| // see this issue https://github.com/webpack-contrib/css-minimizer-webpack-plugin/issues/244 | ||
| "@parcel/css": "^1.8.3", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.