Skip to content
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

Upgrade typescript from 4.7.4 to 5.3.3 #8643

Merged
merged 14 commits into from
Mar 8, 2024
Merged

Conversation

davidfirst
Copy link
Member

@davidfirst davidfirst commented Mar 7, 2024

  • update typescript package to 5.3.3
  • fix lots of errors from "tsc" due to breaking changes introduced in version 5.
  • update eslint packages to support the new version of typescript.
  • update prettier to support the new syntax of "import type".
  • fix new lint errors due to the upgrade of the eslint and some eslint plugins.
  • increate the memory of CircleCI for "lint" job. It's now reaches around 2.5GB.

I ran the eslint with DEBUG=* to understand why it gets OOM with the default 2GB limit.
I noticed that it happens in this step: typescript-eslint:typescript-estree:createSourceFile Getting AST without type information in TSX mode for: /private/tmp/bit2/node_modules/typescript/lib/typescript.js.
It's unclear to me why it tries to build AST for the typescript.js which is in the node_modules and is ignored. If it's needed to calculate the exported map it could use the d.ts.

@davidfirst davidfirst marked this pull request as ready for review March 8, 2024 02:59
@davidfirst davidfirst changed the title wip, upgrade typescript from 4.7.4 to 5.3.3 Upgrade typescript from 4.7.4 to 5.3.3 Mar 8, 2024
@davidfirst davidfirst requested a review from luvkapur March 8, 2024 15:32
@davidfirst davidfirst enabled auto-merge (squash) March 8, 2024 20:02
@davidfirst davidfirst merged commit b138a60 into master Mar 8, 2024
11 checks passed
@davidfirst davidfirst deleted the upgrade-typescript-5.3.3 branch March 8, 2024 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants