-
Notifications
You must be signed in to change notification settings - Fork 1
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
Reenable typedoc with workarounds to avoid out-of-memory crash. #399
Conversation
|
Visit the preview URL for this PR (updated for commit 21e3aae): https://act-now-packages--pr399-mikelehen-more-space-c9dvt44x.web.app (expires Tue, 22 Nov 2022 19:02:49 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: ad39b6c29b2ae4e8fa7983fbf3316d2e514cb069 |
@@ -54,7 +54,7 @@ | |||
"ts-jest": "^28.0.2", | |||
"ts-node": "^10.7.0", | |||
"tsconfig-paths": "^4.0.0", | |||
"typedoc": "^0.23.10", | |||
"typedoc": "^0.23.21", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upgrading for good measure, though it wasn't actually necessary.
Typedoc has issues with monorepo support using lots of memory. See #356 and TypeStrong/typedoc#1835. This avoids the crash in two different ways: 1. I increased the node heap size to 8192 which seems to be sufficient to make the build succeed for now. 2. For now I am pointing typedoc at the source code directly rather than using the monorepo support. This uses a lot less memory and is a lot faster.
a642bbc
to
21e3aae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌🏼🙌🏼
Typedoc has issues with monorepo support using lots of memory. See #356 and TypeStrong/typedoc#1606.
This avoids the crash in two different ways:
I'm also upgrading typedoc just for good measure, though I don't think it fixes anything.
Not including a changeset, since this has no effect on our packages.
Fixes #356 for now.