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

build: upgrade to TypeScript 5.3 #560

Merged
merged 4 commits into from
May 7, 2024
Merged

build: upgrade to TypeScript 5.3 #560

merged 4 commits into from
May 7, 2024

Conversation

erickzhao
Copy link
Member

@erickzhao erickzhao commented May 7, 2024

This PR migrates to TypeScript 5, which is a prerequisite for upgrading to Docusaurus 3.

  • This adds a major version bump to @tsconfig/docusaurus, which now uses the bundler module resolution strategy from TS 5.
  • @typescript-eslint was upgraded to support TS 5.
    • This is the smallest major version bump that would allow this to work.
    • Note that because this version of @typescript-eslint does not support TS 5.4, we're a bit behind in TS versions.
  • Removes Jest dependencies since we weren't using them. Can be added back at any point if we add unit tests to the code.

Future work:

  • Upgrade ESLint and @typescript-eslint
  • Upgrade to TS 5.4.5

@erickzhao erickzhao marked this pull request as ready for review May 7, 2024 18:18
@erickzhao erickzhao requested a review from a team as a code owner May 7, 2024 18:18
Comment on lines +8 to +14
"ts-node": {
// these options are overrides used only by ts-node
// same as the --compilerOptions flag and the TS_NODE_COMPILER_OPTIONS environment variable
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "Node"
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use ts-node specifically to run docusaurusConfig.ts from docusaurus.config.js.

@MarshallOfSound MarshallOfSound temporarily deployed to electronjsorg-new-pr-560 May 7, 2024 19:10 Inactive
@erickzhao erickzhao merged commit cd0a4bc into main May 7, 2024
4 checks passed
@erickzhao erickzhao deleted the typescript-5 branch May 7, 2024 19:21
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.

3 participants