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

Multi package mono repo with inter dependencies #847

Closed
rikbrowning opened this issue Jan 7, 2022 · 2 comments
Closed

Multi package mono repo with inter dependencies #847

rikbrowning opened this issue Jan 7, 2022 · 2 comments
Labels
question Further information is requested

Comments

@rikbrowning
Copy link

First let me say awesome job, these tools you've created are brilliant!

This is really a question, I am a bit of a n00b when it comes to typescript set up and was wondering if you could give me some advice on how to handle it.
We have a mono repo that contains multiple packages that have inter dependencies. Right now I have manually created very basic type definition files for the packages. I would however like to leverage vue-tsc declaration generation to provide better typescript support with minimal effort.

The main issue I have is that the inter dependencies might not be compiled whenever they are referenced by consumers. I see that typescript introduced the composite option which seems like it's meant for this situation. Any suggestions on how best to go about this? Right now I am thinking that I will need to order the compilation to avoid any errors.

@johnsoncodehk
Copy link
Member

johnsoncodehk commented Jan 8, 2022

Hi @rikbrowning, incremental build support requires a lot of effort, and there is no time to do it yet. See #787.

As an alternative, you can use types alias instead of project references for now.

This is a example https://github.com/johnsoncodehk/volar-starter/tree/monorepo.

@johnsoncodehk johnsoncodehk added the question Further information is requested label Jan 8, 2022
@rikbrowning
Copy link
Author

Thanks for the link, don't know how I didn't think to check these before!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants