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

Support packages entryPointStrategy in watch mode. #1772

Open
mokone91 opened this issue Oct 29, 2021 · 6 comments
Open

Support packages entryPointStrategy in watch mode. #1772

mokone91 opened this issue Oct 29, 2021 · 6 comments
Labels
enhancement Improved functionality

Comments

@mokone91
Copy link

Hi,
When i going to build docs for my lerna project using with '--watch' i getting next error:
Error: The packages option of entryPointStrategy is not supported in watch mode.
Do you have a plans to adding support for packages strategy?
Thanks!

@mokone91 mokone91 added the bug Functionality does not match expectation label Oct 29, 2021
@Gerrit0 Gerrit0 added enhancement Improved functionality and removed bug Functionality does not match expectation labels Oct 31, 2021
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Oct 31, 2021

Considering this is the first request for it I've seen packages mode was introduced 4 months ago, it's not very high on my priority list... it is something I'd like to have eventually.

@mokone91
Copy link
Author

mokone91 commented Nov 2, 2021

Thanks for reply! got it, will keep subscription and follow the news
Thanks!

@wilcoxmd
Copy link

wilcoxmd commented Mar 8, 2022

We would also be interested! This would be very helpful for working on our docs site for a lerna based monorepo.

@Gerrit0
Copy link
Collaborator

Gerrit0 commented Mar 27, 2022

I spent a bit of time looking at this today, and it's unfortunately a very thorny problem. TypeDoc already has memory issues when running in packages mode with moderately sized monorepos due to the number of ts.Programs that are concurrently created. Watch mode would make this worse, since it requires keeping two copies of each ts.Program in memory. Watch mode works by keeping track of the previous program and, when a change is detected, creating a new program from the changes and the original program.

I suspect this can be mitigated by only keeping the last program (or few) to rebuild in memory, since most of the time users will be making incremental changes to just one or two packages, but doing this means that TypeDoc needs some major architectural work to be able to rebuild parts of the project without access to a program. It's something I've wanted for a long while anyways, and it's getting closer with #1890 and others, but it's still a ways off.

@wilcoxmd
Copy link

Understood. We're not in urgent need of this or anything, but is a definite nice to have if you can work your way there over time! Appreciate you looking into it and the detailed update! 🙏

@Gerrit0 Gerrit0 changed the title Error: The packages option of entryPointStrategy is not supported in watch mode. Support packages entryPointStrategy in watch mode. Oct 23, 2022
@ziyziyziy888
Copy link

We are intersting at this feature. Hopes this day comes soon 🙏🙏🙏 Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improved functionality
Projects
None yet
Development

No branches or pull requests

4 participants