Skip to content

Conversation

@Julusian
Copy link
Member

About the Contributor

This pull request is posted on behalf of Superfly

Type of Contribution

This is a: Code improvement

Current Behavior

When building the TS, we are using lerna to spawn tsc for each package individually.

This makes it rather memory hungry, and if an error is encountered typically means running it all again

New Behavior

This now utilises the typescript projects and references functionality. There is a single 'root' tsconfig inside packages, which will build and typecheck everything in one go.

This means that there is one stream of type error output, which shows everything in one go with one count of number of errors. Fixing one error will reflect that in all referencing projects instead of burying errors higher up the terminal history.

A crude memory test locally, spawning in watch mode:

  • Before: 6.3GB of memory used once it stabilises
  • After: 1.5GB once stabilised peak at 1.8GB (this is also type checking meteor, which was not done before)

I have not touched the openapi package in this, as that was commonly excluded to avoid a dependency on java.

Testing

  • I have added one or more unit tests for this PR
  • I have updated the relevant unit tests
  • No unit test changes are needed for this PR

Affected areas

Time Frame

Other Information

Status

  • PR is ready to be reviewed.
  • The functionality has been tested by the author.
  • Relevant unit tests has been added / updated.
  • Relevant documentation (code comments, system documentation) has been added / updated.

@coderabbitai
Copy link

coderabbitai bot commented Jan 14, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link

codecov bot commented Jan 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

1 participant