Skip to content

Conversation

@scttcper
Copy link
Member

@scttcper scttcper commented Jan 9, 2026

consolidates tsconfig files that i think we left hanging around after finishing migrating to typescript. I don't think the complexity of having 3 tsconfigs is worth whatever slight speed increase we see from not typechecking a subset of files. rspack config can be setup to exclude tests if we need to exclude them there

merges root tsconfig with tsconfig.base.json and also:

  • experimentalDecorators is now false
  • allowJs and checkJs are true
  • cleanup huge comments of unused config

We shouldn't need tsconfig files, i think these are mostly from when we were moving the app to typescript
@github-actions github-actions bot added Scope: Frontend Automatically applied to PRs that change frontend components Scope: Backend Automatically applied to PRs that change backend components labels Jan 9, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

🚨 Warning: This pull request contains Frontend and Backend changes!

It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently.

Have questions? Please ask in the #discuss-dev-infra channel.

Comment on lines 47 to 48
"allowJs": true,
"checkJs": true,
Copy link
Member Author

Choose a reason for hiding this comment

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

keeping these enabled like we had before

"checkJs": true,

"esModuleInterop": true,
"experimentalDecorators": false,
Copy link
Member Author

Choose a reason for hiding this comment

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

turned off experimental decorators since i think we might have been using them at some point, but we aren't anymore

@scttcper scttcper requested a review from a team January 9, 2026 22:30
@scttcper scttcper marked this pull request as ready for review January 9, 2026 22:30
@scttcper scttcper requested review from a team as code owners January 9, 2026 22:30
scttcper added a commit that referenced this pull request Jan 9, 2026
Adds the typescript (tsgo) nightly native preview https://github.com/microsoft/typescript-go
We could continue to adopt this and run it as the typechecker in our github actions. Adds a comment in static/AGENTS.md that should point claude code to the right command

related tsconfig consolidation #106034
@scttcper scttcper merged commit b9859c1 into master Jan 12, 2026
70 checks passed
@scttcper scttcper deleted the scttcper/consolidate-tsconfigs branch January 12, 2026 17:43
scttcper added a commit that referenced this pull request Jan 13, 2026
Saves about 1gb of memory when actively typechecking. After consolidating tsconfigs in #106034 we were typechecking more files. This reverts the fork-ts-typechecker plugin to the original behavior.
scttcper added a commit that referenced this pull request Jan 13, 2026
Saves about 1gb of memory when actively typechecking. After
consolidating tsconfigs in #106034 we were typechecking more files. This
reverts the fork-ts-typechecker plugin to the original behavior.

reminder that you can always turn this off and save a bunch of
cpu/memory with `NO_TS_FORK=1`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants